Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit 9a5f9ab

Browse files
committed
Tweak demo page and bump version
1 parent 5272072 commit 9a5f9ab

File tree

4 files changed

+16
-35
lines changed

4 files changed

+16
-35
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-image-lightbox",
3-
"version": "3.0.3",
3+
"version": "3.1.0",
44
"description": "A lightbox component for React.js",
55
"scripts": {
66
"build": "npm run lint && npm run build:demo && npm run build:umd",

src/examples/cats/app.js

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -93,39 +93,12 @@ const App = React.createClass({
9393
</h1>
9494

9595
<h2 className={styles['project-tagline']}>
96-
Lightbox component for React.js
96+
Flexible lightbox component for displaying images with React
9797
</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>
11998
</section>
12099

121100
<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>
129102

130103
<div>
131104
<button
@@ -139,7 +112,7 @@ const App = React.createClass({
139112
{lightbox}
140113
</div>
141114

142-
<p>Features</p>
115+
<h2>Features</h2>
143116
<ul>
144117
<li>Keyboard shortcuts (with rate limiting)</li>
145118
<li>Image Zoom</li>
@@ -161,6 +134,15 @@ const App = React.createClass({
161134
</span>
162135
</footer>
163136
</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>
164146
</div>
165147
);
166148
}

src/examples/cats/stylesheets/app.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
@import "./vendor/stylesheet";
33
@import "./vendor/github-light";
44

5-
65
.demoButton {
76
border-radius: 5px;
87
background-color: #303030;

src/examples/cats/stylesheets/vendor/stylesheet.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ a {
6161

6262
@media screen and (min-width: 64em) {
6363
.page-header {
64-
padding: 5rem 6rem; } }
64+
padding: 1rem 6rem; } }
6565

6666
@media screen and (min-width: 42em) and (max-width: 64em) {
6767
.page-header {
68-
padding: 3rem 4rem; } }
68+
padding: 1rem 4rem; } }
6969

7070
@media screen and (max-width: 42em) {
7171
.page-header {
72-
padding: 2rem 1rem; } }
72+
padding: 1rem 1rem; } }
7373

7474
.project-name {
7575
margin-top: 0;

0 commit comments

Comments
 (0)