Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
217 lines (206 loc) · 7.09 KB
/
Copy pathindex.html
File metadata and controls
217 lines (206 loc) · 7.09 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0">
<meta name="robots" content="follow, index">
<meta name="apple-mobile-web-app-title" content="ML">
<meta name="description" content="This is a solution to the 'Project: Library' on The Odin Project">
<meta name="twitter:title" content="My Library">
<meta name="twitter:description" content="This is a solution to the 'Project: Library' on The Odin Project">
<meta name="twitter:image" content="https://ik.imagekit.io/2p6x3rqkj/preview_zkkKnP1Py.png">
<meta name="twitter:card" content="summary_large_image">
<meta property="og:title" content="My Library">
<meta property="og:description" content="This is a solution to the 'Project: Library' on The Odin Project">
<meta property="og:image" content="https://ik.imagekit.io/2p6x3rqkj/preview_zkkKnP1Py.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="600">
<meta property="og:type" content="website">
<meta property="og:url" content="book.url">
<link rel="preload" href="assets/img/other/boy-flying.png" as="image">
<link rel="preload" href="assets/img/other/boy-up.png" as="image">
<link rel="preload" href="assets/img/icon/star-check-black.svg" as="image">
<link rel="preload" href="assets/img/icon/star-plus-black.svg" as="image">
<link rel="preload" href="assets/img/icon/star-check-black.svg" as="image">
<link rel="preload" href="assets/img/icon/star-plus-white.svg" as="image">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="icon" type="image/png" href="assets/img/favicon/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/svg+xml" href="assets/img/favicon/favicon.svg">
<link rel="shortcut icon" href="assets/img/favicon/favicon.svg">
<link rel="apple-touch-icon" sizes="180x180" href="assets/img/favicon/apple-touch-icon.png">
<link rel="manifest" href="assets/img/favicon/site.webmanifest">
<script src="assets/js/script.js" defer></script>
<title>My Library</title>
</head>
<body>
<header class="header">
<div class="added hidden" id="added">
<p>Book has been added to your library.</p>
</div>
<h1 class="__title">My Library</h1>
</header>
<main class="main">
<search class="search-container">
<form class="search" action="#" method="get">
<input
class="__input __search"
name="search"
type="search"
inputmode="search"
maxlength="500"
placeholder="Toilet-bound Hanako-Kun"
>
<button class="__clear hidden" type="button" aria-label="clear">
<svg
class="__img"
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
height="24px"
viewBox="0 -960 960 960"
width="24px"
fill="#000000"
>
<path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z" />
</svg>
</button>
<button class="__search-btn" type="submit" aria-label="Search button.">
<svg
class="__img"
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
height="24px"
viewBox="0 -960 960 960"
width="24px"
fill="#000"
>
<path d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/>
</svg>
</button>
</form>
</search>
<div class="button-container">
<button
class="btn add"
type="button"
commandfor="add-book-dialog"
command="show-modal"
>
Add A New Book
</button>
<button class="btn update" type="button">Update</button>
<button class="btn remove hidden" type="button" disabled>Remove</button>
<button class="btn check-all hidden" type="button">Check all</button>
<button class="btn uncheck-all hidden" type="button" disabled>Uncheck All</button>
<button class="btn confirm hidden" type="button" disabled>Confirm</button>
<button class="btn cancel hidden" type="button">Cancel</button>
</div>
<ul class="book-container"></ul>
<button class="btn show-more hidden" type="button">Show More</button>
<button class="btn up hidden" type="button" aria-description="Click to go up">
<img class="__icon" src="assets/img/other/boy-normal.png" alt="a boy is standing">
</button>
</main>
<footer class="footer-container">
<p class="footer">
<img
class="profile"
src="https://avatars.githubusercontent.com/u/143481447?v=4"
alt="Azam Azis's github profile"
loading="lazy"
>
<small class="__text">Created By
<a
class="__link"
href="https://github.com/AzamAzis"
rel="noopener noreferrer"
target="_blank"
>
Azam Azis
</a>
</small>
</p>
</footer>
<dialog class="add-book-modal" id="add-book-dialog">
<button
class="__close"
type="button"
aria-description="Click to close the modal"
commandfor="add-book-dialog"
command="close"
>
<svg
class="__img"
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
height="24px"
viewBox="0 -960 960 960"
width="24px"
fill="#000000"
>
<path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z" />
</svg>
</button>
<form class="__form" action="#" method="dialog" novalidate>
<h3 class="__form-title">Add My Book</h3>
<label class="__text" for="cover">Cover:</label>
<input class="__cover __input-img hidden" id="cover" name="cover" type="file" accept="image/*">
<div class="__preview">
<p class="__preview-text">Preview</p>
</div>
<label class="btn __upload" for="cover" tabindex="0">Upload a cover</label>
<label class="__text" for="title">Title:</label>
<input
class="__input __title"
id="title"
name="title"
type="text"
aria-describedby="required-title"
inputmode="text"
maxlength="500"
placeholder="Toilet-bound Hanako-Kun"
autofocus
required
>
<p class="__required hidden" id="required-title">The book's title is required</p>
<label class="__text" for="vol">Vol:</label>
<input
class="__input __vol"
id="vol"
name="volume"
type="number"
inputmode="decimal"
placeholder="1"
step="1"
>
<label class="__text" for="author">Author:</label>
<input
class="__input __author"
id="author"
name="author"
type="text"
inputmode="text"
maxlength="500"
placeholder="AidaIro"
>
<label class="__text" for="link">Link:</label>
<input
class="__input __link"
id="link"
name="link"
type="url"
aria-describedby="required-correct-link"
inputmode="url"
placeholder="https://example-book.com"
>
<p class="__incorrect-link hidden" id="required-correct-link">
Please add the correct link e.g., https://www.google.com
</p>
<div class="__mark">
<input class="__read-check" id="read-00" type="checkbox">
<label class="__text __mark" for="read-00">Mark as read.</label>
</div>
<button class="btn __save" type="submit" value="save">Save</button>
</form>
</dialog>
</body>
</html>