-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (52 loc) · 1.37 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Library</title>
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/style.css" />
<script src="script.js" defer></script>
</head>
<body>
<div class="main-container">
<div class="header">
<h1>Library</h1>
<button type="button" data-new-book>New Book</button>
</div>
<dialog data-modal>
<div class="form-container">
<form action="" id="add-book-form">
<div>
<label for="title">Title:</label>
<input type="text" id="title" name="title" required />
</div>
<div>
<label for="author">Author:</label>
<input type="text" id="author" name="author" required />
</div>
<div>
<label for="pages">Pages:</label>
<input type="number" id="pages" name="pages" required min="1" />
</div>
<div>
<label for="read">Read:</label>
<input
type="checkbox"
id="read"
name="read"
value="read"
checked
/>
</div>
<button type="button" data-cancel>Cancel</button>
<button type="submit" form="add-book-form" data-add>
Add Book
</button>
</form>
</div>
</dialog>
<div class="book-container"></div>
</div>
</body>
</html>