-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponents.html
More file actions
317 lines (262 loc) · 11.7 KB
/
Copy pathcomponents.html
File metadata and controls
317 lines (262 loc) · 11.7 KB
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=Muli|Work+Sans:700&display=swap" rel="stylesheet">
<link href="style.css" rel="stylesheet">
<title>Components | Dependable Design</title>
</head>
<body>
<header>
<a href="index.html" class="logo">Dependable Design</a>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="style.html">Style</a></li>
<li><a href="components.html" class="page-current">Components</a></li>
<li><a href="layouts.html">Layout</a></li>
</ul>
</nav>
</header>
<main>
<h1>Dependable Design Components</h1>
<section>
<h2>Link Buttons</h2>
<figure>
<h3>Link Buttons:</h3>
<a href="" class="link-button-hero">Hero Button</a>
<a href="" class="link-button-normal">Normal Button</a>
<a href="" class="link-button-tertiary">Tertiary Button</a>
</figure>
<figure>
<h3>Link Buttons Inverted:</h3>
<a href="" class="link-button-hero-inverted">Hero Button</a>
<a href="" class="link-button-normal-inverted">Normal Button</a>
<a href="" class="link-button-tertiary-inverted">Tertiary Button</a>
</figure>
</section>
<section>
<h2>Accordions</h2>
<figure>
<details>
<summary><span>What do you call a bagel that can fly?</span></summary>
<div>
<p><em>Answer:</em></p>
<p>A plane bagel!</p>
</div>
</details>
<details>
<summary><span>What do you call a tree you can hold in your hand?</span></summary>
<div>
<p><em>Answer:</em></p>
<p>A palm tree!</p>
</div>
</details>
<details>
<summary><span>What is green and fuzzy and would hurt if it fell out of a tree?</span></summary>
<div>
<p><em>Answer:</em></p>
<p>A pool table!</p>
</div>
</details>
</figure>
</section>
<section>
<h2>Modal Dialog</h2>
<figure>
<button id="open-modal" type="button">Open Modal</button>
<dialog id="modal-demo">
<h3>Modal Title</h3>
<p>This is a demo of a modal.</p>
<p>Click around modal to dismiss</p>
</dialog>
</figure>
</section>
<section>
<h2>Form Inputs</h2>
<form action="">
<figure>
<h3>Text Example</h3>
<div>
<label for="text-example">Text Example:</label>
<input type="text" id="text-example" name="example1" placeholder="Write something here!">
<label for="text-example2">Required Text Example:</label>
<input type="text" id="text-example2" name="example1" required placeholder="This field is required.">
<label for="text-example3">Disabled Text Example:</label>
<input type="text" id="text-example3" name="example1" disabled placeholder="This field is not required">
<label for="text-example4">Text Example Error:</label>
<input type="text" id="text-example4" name="example1" class="input-error" placeholder="Oops! try again.">
</div>
</figure>
<figure>
<h3>Textarea Example</h3>
<div>
<label for="message">Textarea Example:</label>
<textarea id="message" name="example2" placeholder="This is some placeholder text."></textarea>
</div>
</figure>
<figure>
<h3>Select Example</h3>
<div>
<label for="select">Select Example:</label>
<select id="select" name="example3">
<option disabled hidden selected>Please Select</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
<option>Option 5</option>
</select>
</div>
</figure>
<figure>
<h3>Submit Example</h3>
<div>
<input type="submit" class="button-submit">
</div>
</figure>
</form>
</section>
<section>
<h2>Navigation</h2>
<figure>
<h3>Primary navigation</h3>
<header>
<a href="index.html" class="logo">Dependable Design</a>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="style.html">Style</a></li>
<li><a href="components.html" class="page-current">Components</a></li>
<li><a href="layouts.html">Layout</a></li>
</ul>
</nav>
</header>
</figure>
<figure>
<h3>Secondary navigation</h3>
<nav class="nav-secondary">
<ul>
<li><a href="" class="page-current-secondary">Current Page</a>
<ul>
<li><a href="">Subpage 1</a></li>
<li><a href="">Subpage 2</a></li>
<li><a href="">Subpage 3</a></li>
</ul>
</li>
<li><a href="">Page 2</a></li>
<li><a href="">Page 3</a>
<ul>
<li><a href="">Subpage 1</a></li>
<li><a href="">Subpage 2</a></li>
<li><a href="">Subpage 3</a></li>
</ul>
</li>
</ul>
</nav>
</figure>
</section>
<section>
<h2>Notifications</h2>
<figure>
<div class="error">
<img src="images/error-24px.svg"
width="50" height="50" alt="error">
<h4>Error:</h4>
<p>This text provides further detail.</p>
</div>
<div class="warning">
<img src="images/report_problem-24px.svg"
width="50px" height="50px" alt="warning">
<h4>Warning:</h4>
<p>This text provides further detail.</p>
</div>
<div class="neutral">
<img src="images/notifications-24px.svg"
width="50px" height="50px" alt="neutral">
<h4>Neutral:</h4>
<p>This text provides further detail.</p>
</div>
<div class="success">
<img src="images/check_circle-24px.svg"
width="50px" height="50px" alt="success">
<h4>Success:</h4>
<p>This text provides further detail.</p>
</div>
</figure>
</section>
<section>
<h2>Hero Block Example</h2>
<figure>
<a href="hero-block.html"><img src="images/hero-block-screenshot.png" alt="hero block example"></a>
</figure>
</section>
<section>
<h2>Information Card</h2>
<figure>
<h3>Article / Post</h3>
<div class="info-card-article">
<a href="">
<img src="images/drill.jpg" alt="picture of drill">
<h4>New Pruducts</h4>
<p>Lo-fi hoodie edison bulb XOXO locavore four dollar toast YOLO food truck dreamcatcher meditation vaporware. Mixtape microdosing sartorial, tumeric 8-bit swag tbh locavore tofu single-origin coffee.</p>
<p class="publish-date">Published: 2/20/2020</p>
</a>
</div>
</figure>
<figure>
<h3>Person / Profile</h3>
<div class="info-card-profile">
<a href="">
<div>
<img src="images/lumberjack.png" alt="profile picture">
</div>
<div class="contact-info">
<h4>Jason Nash</h4>
<a href="">Phone #: (123) 321-4567</a>
<a href="">Email:joshn@gmail.com</a>
</div>
</a>
</div>
</figure>
<figure>
<h3>Call to Action</h3>
<div class="info-card-action">
<a href="">
<h4>Register For An Account Today</h4>
<p>Drinking vinegar mlkshk wayfarers hashtag brooklyn tilde retro distillery health goth pinterest kombucha vice 8-bit thundercats. Tote bag farm-to-table disrupt VHS pour-over man bun pitchfork fixie dreamcatcher.</p>
<a href="" class="link-button-normal-inverted">Register</a>
</a>
</div>
</figure>
</section>
</main>
<footer>
<p>Dependable Design</p>
<nav>
<ul>
<li><a href="https://www.google.com">Google</a></li>
<li><a href="https://www.google.com">Google</a></li>
<li><a href="https://www.google.com">Google</a></li>
</ul>
</nav>
<p>©2020 Alec Hudson</p>
</footer>
<script>
document.addEventListener('DOMContentLoaded', function(){
const modal = document.querySelector('dialog');
const open = document.getElementById('open-modal');
open.addEventListener('click', () => {
modal.showModal();
});
modal.addEventListener('click', event => {
if (event.target === modal) {
modal.close('cancelled');
}
});
});
</script>
</body>
</html>