forked from wiredjs/www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
238 lines (214 loc) · 7.67 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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
<title>Wired Elements</title>
<meta name="description" content="Common UI Elements with a sketchy hand-drawn look.">
<link rel="icon" href="images/fav.png" type="image/png">
<link rel="canonical" href="https://wiredjs.com/">
<meta property="og:title" content="Wired Elements">
<meta property="og:description" content="Common UI Elements with a sketchy hand-drawn look.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://wiredjs.com/">
<meta property="og:image" content="https://wiredjs.com/images/wired-social.png">
<meta property="og:image:width" content="1280">
<meta property="og:image:height" content="670">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Wired Elements">
<meta name="twitter:description" content="Common UI Elements with a sketchy hand-drawn look.">
<meta name="twitter:image" content="https://wiredjs.com/images/wired-social.png">
<meta name="twitter:image:width" content="1280">
<meta name="twitter:image:height" content="670">
<link rel="preload" href="fonts/font.woff2" as="font">
<style>
@font-face {
font-family: 'Gloria Hallelujah';
font-style: normal;
font-weight: 400;
font-display: fallback;
src: local('Gloria Hallelujah'), local('GloriaHallelujah'), url(fonts/font.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body {
margin: 0;
font-family: 'Gloria Hallelujah', sans-serif;
font-size: 22px;
font-display: fallback;
letter-spacing: 0.05em;
line-height: 2;
}
article {
padding: 15px 20px 40px;
max-width: 800px;
margin: 0 auto;
}
#logo {
float: left;
width: 100px;
height: 100px;
border-radius: 50%;
padding: 10px;
margin-right: 10px;
}
a,
a:hover,
a:visited {
color: inherit;
text-decoration: none;
outline: none;
}
a.textlink {
box-shadow: 0 -6px #f0e6f4 inset;
}
wired-button {
margin: 5px 10px;
font-size: 16px;
text-transform: uppercase;
letter-spacing: 0.03em;
background: #f0e6f4;
}
wired-card {
display: block;
width: 100%;
box-sizing: border-box;
}
h1 {
font-size: 1.8em;
margin: 0;
}
h2 {
font-size: 1.3em;
}
@media (max-width: 600px) {
body {
font-size: 19px;
letter-spacing: 0.05em;
}
article {
padding: 5px 16px 40px;
}
}
</style>
<!-- <script type="module" src="bin/main.js"></script> -->
<script async src="dist/main.min.js"></script>
</head>
<body>
<article>
<header>
<img alt="Logo" id="logo" src="images/logo_400.png">
<h1>Wired Elements</h1>
</header>
<section>
<p>
A set of common UI elements with a hand-drawn, sketchy look. These can be used for wireframes, mockups, or just
the fun hand-drawn
look.
</p>
<p>
The elements are drawn with enough randomness that no two renderings will be exactly the same — just like
two separate
hand-drawn shapes.
</p>
<p>
<a href="/showcase.html">
<wired-button elevation="1">Component Showcase</wired-button>
</a>
<a href="https://github.com/rough-stuff/wired-elements">
<wired-button elevation="1">View on Github</wired-button>
</a>
<a target="_blank" href="https://opencollective.com/rough" rel="noopener">
<wired-button elevation="1">Sponsor this project</wired-button>
</a>
</p>
</section>
<section style="margin-top: 60px;">
<h3 style="margin-bottom: 0;">Here's a simple demo:</h3>
<p>Using wired-element controls to change a sketchy circle drawn using
<a class="textlink" href="https://roughjs.com" rel="noopener" target="_blank">rough.js</a>.
</p>
<wired-card elevation="4">
<rough-demo></rough-demo>
</wired-card>
</section>
<section style="margin-top: 50px;">
<h3 style="margin-bottom: 0;">Try It Now</h3>
<p>Play with wired-elements live in Sandbox:</p>
<p>
<a class="textlink" target="_blank" rel="noopener"
href="https://codesandbox.io/s/wired-elements-vanilla-4bpny">Wired
Elements Vanilla</a>
</p>
<p>
Try it with a framework:
</p>
<p>
<a class="textlink" target="_blank" rel="noopener" href="https://codesandbox.io/s/vj389y9375">Wired
Elements in Vue</a>
<br>
<a class="textlink" target="_blank" rel="noopener"
href="https://codesandbox.io/s/wired-elements-svelte-4hfkb">Wired
Elements in Svelte</a>
<br>
<a class="textlink" target="_blank" rel="noopener"
href="https://codesandbox.io/s/react-wrapper-for-wired-elements-vid1j">Wired
Elements in React</a>
(using React <a class="textlink" target="_blank" rel="noopener"
href="https://github.com/rough-stuff/wired-elements-react">wrapper components</a>)
</p>
</section>
<section style="margin-top: 40px;">
<h3 style="margin-bottom: 0;">Documentation</h3>
<p>Instructions on how to use wired-elements can be found on
<a class="textlink" href="https://github.com/rough-stuff/wired-elements">wired-elements GitHub page</a>.
</p>
<p>
API of specific elements can be found on their respective page in the Docs.
<a class="textlink" href="https://github.com/rough-stuff/wired-elements/tree/master/docs">Here's the list.</a>
</p>
</section>
<section style="margin-top: 40px;">
<h3 style="margin-bottom: 0;">Components</h3>
<p>
<a class="textlink" href="/showcase.html">Component showcase</a> of all the wired elements.
</p>
</section>
<section style="margin-top: 40px;">
<h3 style="margin-bottom: 0;">Credits</h3>
<p>
wired-elements was built using
<a class="textlink" target="_blank" rel="noopener" href="https://roughjs.com/">RoughJS</a>
and
<a class="textlink" target="_blank" rel="noopener" href="https://lit.dev/">Lit</a>.
</p>
</section>
<section style="margin-top: 40px;">
<h3 style="margin-bottom: 0;">Support this project</h3>
<p>
Support development of this project by sponsoring on
<a class="textlink" target="_blank" rel="noopener" href="https://opencollective.com/rough">Open Collective</a>
or
<a class="textlink" target="_blank" rel="noopener" href="https://github.com/sponsors/pshihn">Github</a>.
</p>
</section>
<section style="margin-top: 40px;">
<h3 style="margin-bottom: 0;">License</h3>
<p>
<a class="textlink" target="_blank" rel="noopener"
href="https://github.com/rough-stuff/wired-elements/blob/master/LICENSE">MIT
License</a> (c)
<a class="textlink" target="_blank" rel="noopener" href="https://twitter.com/preetster">Preet Shihn</a>.
</p>
</section>
</article>
<script>
window.ga = window.ga || ((...args) => (ga.q = ga.q || []).push(args));
ga("create", "UA-134693493-4", "auto");
ga("set", "transport", "beacon");
ga("send", "pageview");
const s = document.createElement("script");
s.src = "https://www.google-analytics.com/analytics.js";
document.head.appendChild(s);
</script>
</body>
</html>