-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (66 loc) · 2.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Basic HTML Dialog Component</title>
</head>
<body>
<main>
<h1>Basic HTML <dialog> component</h1>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellendus
cupiditate sit error vero animi, sequi a iste nostrum consequatur non.
</p>
<p>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Eius atque
<a class="color-secondary" href="#">open from link</a>
veritatis nihil blanditiis, nulla doloribus aut sunt perferendis itaque.
Iusto expedita aliquam, minima quaerat at.
</p>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Optio possimus,
temporibus expedita nisi corporis atque dolorem, odio esse veniam
tempore odit, rerum nihil illum at.
</p>
<p>
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Eveniet
placeat porro autem rem ut eos, iusto ex sequi!
</p>
<button class="button-primary" data-role="open-dialog">Open Modal</button>
<dialog
class="modal"
aria-labelledby="dialog-title"
aria-describedby="dialog-description"
>
<button
class="close-button button-secondary"
data-role="close-dialog"
aria-label="close modal"
>
x
</button>
<div class="description">
<h2 id="dialog-title">Don't miss out!</h2>
<p id="dialog-description">
# for our newsletter to stay in the loop
</p>
</div>
<form action="/">
<input
type="email"
name="email"
id="email"
placeholder="email address"
autofocus
required
/>
<button class="button-primary">Subscribe</button>
</form>
</dialog>
</main>
<script src="app.js"></script>
</body>
</html>