-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
181 lines (181 loc) · 6.23 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://unpkg.com/boxicons@2.1.2/css/boxicons.min.css"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="normalize.css" />
<link rel="stylesheet" href="styles.css" />
<script src="main.js" defer></script>
<title>Bookshelf</title>
</head>
<body>
<header>
<div class="header-title">
<i class="bx bx-library"></i>
<h1>Bookshelf</h1>
</div>
<div class="header-buttons">
<button class="open-book-modal" id="open-book-modal">
<i class="bx bx-book-add"></i>
</button>
<button class="darkmode" id="darkmode-toggle">
<i class="bx bx-sun" id="darkmode-icon"></i>
</button>
</div>
</header>
<main class="booklist">
<div class="booklist-wrapper">
<!-- <div class="book-card">
<h2 class="book-card-title">Under Heaven</h2>
<p class="book-card-author">Guy Gavriel Kay</p>
<p class="book-card-pages">567</p>
<p class="book-card-description">
In Under Heaven, Kay tells a story of honor and power, this time in
a setting that evokes the dazzling Tang Dynasty of eighth-century
China. In recognition of his service to the Emperor of Kitai, Shen
Tai has been sent a mysterious and dangerous gift: 250 Sardian
horses. Wisely the gift comes with the stipulation that the horses
must be claimed in person. Otherwise, he would probably be dead
already.
</p>
<div class="book-card-interactive">
<div class="book-card-checkboxes">
<p class="book-card-rating">5</p>
<div class="book-card-read">
<label for="book-card-read">Read</label>
<input
type="checkbox"
id="book-card-read"
name="book-card-read"
/>
</div>
</div>
<div class="book-card-buttons">
<button type="button" class="book-card-button" id="edit-button">
<i class="bx bx-edit-alt"></i>
</button>
<button type="button" class="book-card-button" id="delete-button">
<i class="bx bx-trash"></i>
</button>
</div>
</div>
</div> -->
</div>
</main>
<div class="modal" id="modal">
<form action="#" class="book-form" id="book-form">
<div class="book-form-element">
<label for="book-form-title">Title</label>
<input
type="text"
name="book-form-title"
id="book-form-title"
placeholder="The Tale of Scrotie McBoogerballs"
required
/>
</div>
<div class="book-form-element">
<label for="book-form-author">Author</label>
<input
type="text"
name="book-form-author"
id="book-form-author"
placeholder="Butters Stotch"
required
/>
</div>
<div class="book-form-element">
<label for="book-form-pages">No. of pages</label>
<input
type="number"
name="book-form-pages"
id="book-form-pages"
max="99999"
placeholder="465"
required
/>
</div>
<div class="book-form-element">
<label for="book-form-description">Description</label>
<textarea
name="book-form-description"
id="book-form-description"
rows="5"
placeholder="It was a warm summer morning when Scrotie McBoogerballs awoke to find his..."
></textarea>
</div>
<div class="book-form-element">
<fieldset class="book-form-rating">
<legend>Rating</legend>
<input
type="radio"
id="rating1"
name="rating"
class="book-rating"
value="1"
/>
<label for="rating1">1<i class='bx bxs-star'></i></label>
<input
type="radio"
id="rating2"
name="rating"
class="book-rating"
value="2"
/>
<label for="rating2">2<i class='bx bxs-star'></i></label>
<input
type="radio"
id="rating3"
name="rating"
class="book-rating"
value="3"
/>
<label for="rating3">3<i class='bx bxs-star'></i></label>
<input
type="radio"
id="rating4"
name="rating"
class="book-rating"
value="4"
/>
<label for="rating4">4<i class='bx bxs-star'></i></label>
<input
type="radio"
id="rating5"
name="rating"
class="book-rating"
value="5"
/>
<label for="rating5">5<i class='bx bxs-star'></i></label>
</fieldset>
</div>
<div class="book-form-element">
<label for="book-form-read">Read?</label>
<input type="checkbox" name="book-form-read" id="book-form-read" />
</div>
<div class="book-form-element form-buttons">
<button type="submit" id="book-form-submit" class="book-form-submit">
Add<i class="bx bxs-book-add"></i>
</button>
<button type="button" id="book-form-update" class="book-form-update">
Update<i class='bx bx-edit'></i>
</button>
<button type="button" class="book-form-close" id="book-form-close">
Close <i class="bx bxs-x-circle"></i>
</button>
</div>
</form>
</div>
</body>
</html>