-
Notifications
You must be signed in to change notification settings - Fork 27
/
index.html
207 lines (198 loc) Β· 4.61 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta
name="description"
content="A React Native TextInput with material style. Get it on Github and try the demo with Expo."
/>
<link rel="canonical" href="https://reinput.sospedra.me" />
<title>Reinput β A React Native TextInput with material style π</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@exampledev/[email protected]/new.min.css"
/>
<style type="text/css">
.inset-0 {
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
z-index: -1;
}
.granimate {
background-color: #2ecc71;
width: 100vw;
height: 100vh;
animation: hue 11s linear 0s infinite reverse;
}
.granimate::before {
background: linear-gradient(105deg, rgba(255, 190, 0, 0), #ffbe00);
animation: hue 12s linear 1s infinite;
}
.full::before {
content: "";
position: absolute;
width: 100vw;
height: 100vh;
}
@keyframes hue {
to {
filter: hue-rotate(1turn);
}
}
</style>
<style type="text/css">
.device {
overflow: hidden;
position: relative;
display: flex;
min-width: 18rem;
min-height: 34.6rem;
max-width: 20rem;
max-height: 38.5rem;
}
.frame {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 2;
width: 100%;
height: 100%;
}
.bg {
flex: 1;
margin: 0.5rem;
background-color: white;
border-radius: 2rem;
}
.video {
position: absolute;
top: 0;
right: 0;
bottom: 0;
height: 100%;
left: 0;
width: 100%;
box-sizing: border-box;
z-index: 1;
}
</style>
<style type="text/css">
body {
min-height: calc(100vh - 4rem);
display: flex;
flex-direction: column;
}
h1,
h2 {
border-bottom: 0;
text-align: center;
line-height: 2.5rem;
}
code {
font-size: inherit;
opacity: 0.75;
}
.claim {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.container {
display: flex;
flex-direction: row;
text-decoration: none;
flex: 1;
justify-content: center;
align-items: center;
width: 100%;
}
.cta {
border-radius: 0.2rem;
padding: 1rem;
text-align: center;
text-decoration: none;
background-color: #1a202c;
display: inline-block;
color: white;
}
.cta:hover {
opacity: 0.8;
color: white;
}
.demo {
background-color: #5a67d8;
}
.row {
display: flex;
margin-top: 1rem;
}
.row a:first-child {
margin-right: 1rem;
}
.footer {
padding-top: 2rem;
font-size: small;
font-style: italic;
text-align: center;
}
@media (max-width: 44rem) {
.container {
flex-direction: column-reverse;
}
.device {
margin-top: 2rem;
}
}
</style>
</head>
<body>
<div class="container">
<div class="device">
<div class="bg"></div>
<img class="frame" src="https://i.imgur.com/tlGEoE2.png" />
<video
class="video"
preload="auto"
autoplay="autoplay"
muted="muted"
loop="loop"
>
<source src="//i.imgur.com/SOcaUo0.mp4" type="video/mp4" />
</video>
</div>
<main class="claim">
<h1>REINPUT</h1>
<h2>
A React Native
<code>TextInput</code>
with material style π
</h2>
<div class="row">
<a class="cta" href="https://github.com/sospedra/reinput">
View on GitHub
</a>
<a
class="cta demo"
href="https://snack.expo.io/@git/github.com/sospedra/reinput:example"
>
Try demo
</a>
</div>
</main>
</div>
<div class="granimate full inset-0"></div>
<p class="footer">
hand-crafted with βΌ by
<a href="https://sospedra.me" target="_blank" rel="noopener noreferrer"
>@sospedra</a
>
</p>
</body>
</html>