This repository was archived by the owner on Jan 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +16
-35
lines changed Expand file tree Collapse file tree 4 files changed +16
-35
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-image-lightbox" ,
3
- "version" : " 3.0.3 " ,
3
+ "version" : " 3.1.0 " ,
4
4
"description" : " A lightbox component for React.js" ,
5
5
"scripts" : {
6
6
"build" : " npm run lint && npm run build:demo && npm run build:umd" ,
Original file line number Diff line number Diff line change @@ -93,39 +93,12 @@ const App = React.createClass({
93
93
</ h1 >
94
94
95
95
< h2 className = { styles [ 'project-tagline' ] } >
96
- Lightbox component for React.js
96
+ Flexible lightbox component for displaying images with React
97
97
</ h2 >
98
-
99
- < a
100
- href = "https://github.com/fritz-c/react-image-lightbox"
101
- className = { styles . btn }
102
- >
103
- View on GitHub
104
- </ a >
105
-
106
- < a
107
- href = "https://github.com/fritz-c/react-image-lightbox/zipball/master"
108
- className = { styles . btn }
109
- >
110
- Download .zip
111
- </ a >
112
-
113
- < a
114
- href = "https://github.com/fritz-c/react-image-lightbox/tarball/master"
115
- className = { styles . btn }
116
- >
117
- Download .tar.gz
118
- </ a >
119
98
</ section >
120
99
121
100
< section className = { styles [ 'main-content' ] } >
122
- < h1 >
123
- React Image Lightbox
124
- </ h1 >
125
-
126
- < p > A flexible lightbox component for displaying images in a React project.</ p >
127
-
128
- < h3 > Demo</ h3 >
101
+ < h2 > Demo</ h2 >
129
102
130
103
< div >
131
104
< button
@@ -139,7 +112,7 @@ const App = React.createClass({
139
112
{ lightbox }
140
113
</ div >
141
114
142
- < p > Features</ p >
115
+ < h2 > Features</ h2 >
143
116
< ul >
144
117
< li > Keyboard shortcuts (with rate limiting)</ li >
145
118
< li > Image Zoom</ li >
@@ -161,6 +134,15 @@ const App = React.createClass({
161
134
</ span >
162
135
</ footer >
163
136
</ section >
137
+
138
+ < a href = "https://github.com/fritz-c/react-image-lightbox" >
139
+ < img
140
+ style = { { position : 'absolute' , top : 0 , right : 0 , border : 0 } }
141
+ src = "https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67"
142
+ alt = "Fork me on GitHub"
143
+ data-canonical-src = "https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"
144
+ />
145
+ </ a >
164
146
</ div >
165
147
) ;
166
148
}
Original file line number Diff line number Diff line change 2
2
@import " ./vendor/stylesheet" ;
3
3
@import " ./vendor/github-light" ;
4
4
5
-
6
5
.demoButton {
7
6
border-radius : 5px ;
8
7
background-color : #303030 ;
Original file line number Diff line number Diff line change 61
61
62
62
@media screen and (min-width : 64em ) {
63
63
.page-header {
64
- padding : 5 rem 6rem ; } }
64
+ padding : 1 rem 6rem ; } }
65
65
66
66
@media screen and (min-width : 42em ) and (max-width : 64em ) {
67
67
.page-header {
68
- padding : 3 rem 4rem ; } }
68
+ padding : 1 rem 4rem ; } }
69
69
70
70
@media screen and (max-width : 42em ) {
71
71
.page-header {
72
- padding : 2 rem 1rem ; } }
72
+ padding : 1 rem 1rem ; } }
73
73
74
74
.project-name {
75
75
margin-top : 0 ;
You can’t perform that action at this time.
0 commit comments