-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (68 loc) · 2.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<script src="script.js" defer></script>
<link rel="shortcut icon" href="img/logo.png" type="image/x-icon" />
<title>Odin Library</title>
<!-- Google fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,500&display=swap"
rel="stylesheet"
/>
</head>
<body>
<header>
<h1>Odin Library</h1>
<button type="button" id="newBookBtn" title="Add a book">+</button>
</header>
<dialog>
<form method="post" id="form">
<h2>New Book</h2>
<button type="button" id="closeDialogBtn">X</button>
<div class="form-content">
<label for="title" class="d-block">Title:</label>
<input
type="text"
name="title"
id="title"
class="d-block"
placeholder="Ex: Nineteen Eighty-four"
maxlength="20"
required
/>
<label for="author" class="d-block">Author:</label>
<input
type="text"
name="Author"
id="author"
class="d-block"
placeholder="Ex: George Orwell "
maxlength="20"
required
/>
<label for="pages" class="d-block">Pages:</label>
<input
type="number"
name="pages"
id="pages"
placeholder="308"
min="1"
max="9999"
/>
<label for="status" class="d-block">Status:</label>
<select name="Read" id="status">
<option value="0">Read</option>
<option value="1" selected>Unread</option>
</select>
</div>
<input type="submit" id="addBookBtn" value="Add" />
</form>
</dialog>
<div class="container"></div>
</body>
</html>