forked from leandrowd/react-easy-swipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
122 lines (104 loc) · 3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>React easy swipe demo</title>
<style>
body {
font-family: 'Roboto', sans-serif;
font-size: 16px;
font-weight: 400;
color: #333; }
h1, h2, h3, h4 {
font-weight: 700;
margin: 20px 0; }
h1 {
font-weight: 700;
font-size: 2.5em; }
h2 {
border-top: 1px solid #999;
padding-top: 40px;
margin-top: 40px;
font-size: 2em; }
h3 {
font-size: 1.4em; }
h4 {
font-size: 1.1em;
margin-bottom: 10px; }
code {
border-radius: 20px;
background: #f5f5f5;
padding: 20px;
text-indent: 0;
color: #333;
display: block;
margin: auto;
overflow: scroll;
width: 100%; }
.wrapper {
padding: 30px; }
.wrapper .demo {
display: block;
margin: 30px 0;
padding-bottom: 30px;
border-bottom: 1px solid #333; }
.wrapper .demo:last-child {
border-bottom: 0; }
.list-items, .summary {
margin-left: 50px; }
.list-items li, .summary li {
line-height: 2;
list-style-type: circle; }
.list-items li ul, .summary li ul {
margin-left: 30px; }
footer {
text-align: center;
}
</style>
</head>
<body>
<a href="https://github.com/leandrowd/react-responsive-carousel"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
<div class="wrapper">
<h1>React Easy Swipe (WIP)</h1>
<h2>Summary</h2>
<ul class="summary">
<li><a href="#install">Installing</a></li>
<li><a href="#demo">Demo</a></li>
<li><a href="#usage">Usage</a></li>
<li><a href="#props">Properties</a></li>
<li><a href="#contribute">Contributing</a></li>
</ul>
<h2 id="install">Installing</h2>
<code>
npm install react-easy-swipe --save
</code>
<h2 id="demo">Demo</h2>
<div id="root"></div>
<h2 id="usage">Usage</h2>
<script src="https://gist.github.com/leandrowd/e9074b19b8dc23a8b471.js"></script>
<h2 id="props">Properties</h2>
<pre>
<code>
{
tagName: PropTypes.string,
className: PropTypes.string,
style: PropTypes.object,
children: PropTypes.node,
onSwipeUp: PropTypes.func,
onSwipeDown: PropTypes.func,
onSwipeLeft: PropTypes.func,
onSwipeRight: PropTypes.func,
onSwipeStart: PropTypes.func,
onSwipeMove: PropTypes.func,
onSwipeEnd: PropTypes.func
}
</code>
</pre>
<h2 id="contribute">Contributing</h2>
<p>Please, feel free to contribute. You may open a bug, request a feature, submit a pull request or whatever you want!</p>
</div>
<script src="./demo/vendor.bundle.js"></script>
<script src="./demo/demo.js"></script>
</body>
</html>