-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
115 lines (114 loc) · 3.39 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Library</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" href="images/favicon.png" />
<link
href="https://fonts.googleapis.com/icon?family=Material+Symbols+Rounded"
rel="stylesheet"
/>
<link href="style.css" rel="stylesheet" />
<script src="script.js" defer></script>
</head>
<body>
<div class="overlay"></div>
<header>
<h1>Library</h1>
<label class="switch" title="Toggle dark theme">
<input type="checkbox" checked="unchecked" />
<span class="slider"></span>
</label>
</header>
<main>
<div class="new-book-modal">
<form class="new-book-form" onsubmit="addBookToGrid(); return false;">
<h2>Add a new book</h2>
<div>
<label for="book-title">Title</label>
<input
type="text"
id="book-title"
name="book_title"
maxlength="60"
autocomplete="off"
required
/>
</div>
<div>
<label for="book-author">Author</label>
<input
type="text"
id="book-author"
name="book_author"
maxlength="50"
autocomplete="off"
required
/>
</div>
<div>
<label for="book-pages">Number of Pages</label>
<input
type="number"
id="book-pages"
name="book_pages"
min="1"
max="10000"
autocomplete="off"
required
/>
</div>
<div>
<input
type="checkbox"
id="book-is-read"
name="is_book_read"
value="yes"
/>
<label for="book-is-read">I have read this book.</label>
</div>
<div class="modal-buttons">
<button id="new-book-form-submit" type="submit">Add book</button>
<button id="new-book-close-modal" type="button">Cancel</button>
</div>
</form>
</div>
<div class="books">
<div class="add-book-buttons">
<button class="add-book add-book-button" title="Add a new book">
<span class="material-symbols-rounded"> add </span>
<span>Add book</span>
</button>
<button class="add-demo-books add-book-button" title="Add demo books">
<span class="material-symbols-rounded"> book </span>
<span>Add demo books</span>
</button>
</div>
<h1>Your Books</h1>
<div class="empty-library">
<h2>There are no books in your library!</h2>
<p>
Click the "Add book" button to add a book, or the "Add demo books"
button to add four demo books.
</p>
</div>
<div class="book-grid"></div>
</div>
</main>
<footer>
<p>
Made with ❤️ by
<a href="https://github.com/emuel-vassallo/" target="_blank">
Emuel Vassallo
</a>
|
<span id="year">© </span>
|
<a href="https://github.com/emuel-vassallo/library/" target="_blank">
View source code
</a>
</p>
</footer>
</body>
</html>