Skip to content

Commit cb10bb3

Browse files
add description to demo
1 parent 3e3d4bb commit cb10bb3

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

example/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<style>
3838
body {
3939
margin: 0;
40-
font-family: Helvetica;
40+
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
4141
}
4242

4343
p {

example/src/Demo.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,22 @@ const styles = {
1717
},
1818
pageTitle: {
1919
textAlign: 'center',
20-
fontSize: 30,
21-
margin: '110px 0 10px',
20+
fontSize: 22,
21+
margin: '90px 0 10px',
22+
visibility: 'hidden',
23+
},
24+
description: {
25+
maxWidth: 600,
26+
margin: '10px auto 30px',
27+
fontSize: 22,
28+
lineHeight: '28px',
29+
'& a': {
30+
color: 'black',
31+
},
2232
},
2333
pageSubtitle: {
2434
textAlign: 'center',
25-
fontSize: '24px',
35+
fontSize: 22,
2636
color: '#888',
2737
},
2838
graphicContainer: {
@@ -100,7 +110,12 @@ class Demo extends PureComponent {
100110
<a href="https://github.com/jsonkao/react-scrollama">
101111
React Scrollama
102112
</a>{' '}
103-
Example
113+
Demo
114+
</p>
115+
<p className={classes.description}>
116+
<b>React Scrollama</b> is a lightweight and simple interface for
117+
scrollytelling in React that uses IntersectionObserver in favor of
118+
scroll events. Our <a href="https://github.com/jsonkao/react-scrollama">GitHub</a> contains tutorial code and documentation.
104119
</p>
105120
<p className={classes.pageSubtitle}>Scroll ↓</p>
106121
<div className={classes.graphicContainer}>

0 commit comments

Comments
 (0)