-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (71 loc) · 1.95 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
<!DOCTYPE html>
<html>
<head>
<script src="library.js" defer></script>
<link rel="stylesheet" href="library.css" />
</head>
<body>
<h1 class="title__primary">📚 MyLibrary</h1>
<div class="toolbar">
Total: <span id="books-total"></span> | Read:
<span id="books-read"></span>
</div>
<form class="form__container" id="form">
<label for="book-title">
<input
type="text"
class="form__input"
name="book-title"
id="book-title"
placeholder="Book title"
required
/></label>
<label for="book-author">
<input
type="text"
class="form__input"
name="book-author"
id="book-author"
placeholder="Book author"
required
/></label>
<label for="book-pages">
<input
type="number"
class="form__input"
name="book-pages"
id="book-pages"
placeholder="Number of pages"
required
/></label>
<label for="book-read-status">
<select
type="dropdown"
class="form__dropdown"
name="book-read-status"
id="book-read-status"
required
>
<option value="Read">Read</option>
<option value="Unread" selected>Unread</option>
</select></label
>
<button type="submit" id="btn-submit" class="btn__submit">
Add book
</button>
</form>
<table class="table__container">
<tr class="table__header">
<th class="table__row-item">Title</th>
<th class="table__row-item">Author</th>
<th class="table__row-item">Pages</th>
<th class="table__row-item">Status</th>
</tr>
<tr>
<td class="table__cell--empty table__cell--hidden" colspan="5">
Your library is empty.<br />Add a new book and it will show up here.
</td>
</tr>
</table>
</body>
</html>