Skip to content

Commit 3595cac

Browse files
author
Marek Rozmus
authored
Merge pull request #75 from sandstreamdev/add_footer_to_example
Add footer to example
2 parents 64c20d6 + 6eddc8c commit 3595cac

File tree

4 files changed

+57
-4
lines changed

4 files changed

+57
-4
lines changed

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
[![Greenkeeper badge](https://badges.greenkeeper.io/sandstreamdev/react-swipeable-list.svg)](https://greenkeeper.io/)
1818
[![codecov](https://codecov.io/gh/sandstreamdev/react-swipeable-list/branch/master/graph/badge.svg)](https://codecov.io/gh/sandstreamdev/react-swipeable-list)
1919
![GitHub Release Date](https://img.shields.io/github/release-date/sandstreamdev/react-swipeable-list)
20-
[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors)
20+
[![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors)
2121

2222
## React Swipeable List component
2323

@@ -59,8 +59,6 @@ import '@sandstreamdev/react-swipeable-list/dist/styles.css';
5959
</SwipeableList>
6060
```
6161

62-
NOTE: `SwipeableListItem` can be used without `SwipeableList` but swipe blocking on scroll needs to be handled.
63-
6462
## SwipeableList Props
6563

6664
### scrollStartThreshold

examples/src/App.js

-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ function App() {
188188
</SwipeableListItem>
189189
</SwipeableList>
190190
</div>
191-
<div>THE END</div>
192191
</div>
193192
);
194193
}

examples/src/app.module.css

+36
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,42 @@ h5 {
1212
margin: 0;
1313
}
1414

15+
body {
16+
/* stylelint-disable */
17+
font-family:
18+
system,
19+
-apple-system,
20+
'.SFNSText-Regular',
21+
'San Francisco',
22+
'Roboto',
23+
'Segoe UI',
24+
'Helvetica Neue',
25+
'Lucida Grande',
26+
sans-serif;
27+
/* stylelint-enable */
28+
}
29+
30+
footer {
31+
display: flex;
32+
flex-direction: column;
33+
align-items: center;
34+
padding: 56px 0;
35+
}
36+
37+
a {
38+
text-decoration: none;
39+
}
40+
41+
footer a,
42+
footer a:visited {
43+
color: #0275d8;
44+
}
45+
46+
footer a:hover {
47+
color: #0275d8;
48+
text-decoration: underline;
49+
}
50+
1551
.testApp {
1652
display: flex;
1753
flex-direction: column;

examples/src/index.js

+20
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,26 @@ ReactDOM.render(
1111
<App />
1212
</div>
1313
</div>
14+
<footer>
15+
<span>
16+
{`Made with ❤️ by `}
17+
<a href="https://sandstream.pl/">Sandstream Development</a>
18+
</span>
19+
<div>
20+
<span>
21+
<a href="https://github.com/sandstreamdev/react-swipeable-list">
22+
GitHub
23+
</a>
24+
</span>
25+
{` • `}
26+
<span>
27+
{`License: `}
28+
<a href="https://github.com/sandstreamdev/react-swipeable-list/blob/master/LICENSE">
29+
MIT
30+
</a>
31+
</span>
32+
</div>
33+
</footer>
1434
</div>,
1535
document.getElementById('root')
1636
);

0 commit comments

Comments
 (0)