-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
130 lines (94 loc) · 4.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./public/deadChannelFavicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="main.js" defer></script>
<link rel="stylesheet" href="style.css">
<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=Playfair+Display:ital,wght@0,400;1,500&family=Raleway:wght@300;400;700&display=swap" rel="stylesheet">
<title>Library App</title>
</head>
<body>
<div id="app">
<section id="header">
<div class="app-title">Summer Reading</div>
</section>
<section id="checkout-area">
<div class="section-title">Current Read</div>
<div id="current-read-area">
</div>
</section>
<section id="library-area">
<div class="section-title">Stack</div>
<div id="stack-area">
</div>
</section>
<section id="completed-area">
<div class="section-title">Shelf</div>
<div id="shelf-area">
</div>
</section>
<button id="add-book-btn">+</button>
<section id="footer">
<div class="credits">Mike Charpin - DeadChannelDice 2023</div>
</section>
<dialog class="modal" id="add-book-modal">
<form action="https://httpbin.org/post" method="post" id="add-book-form">
<div class="input-group">
<input type="button" class="exit-btn" id="add-modal-exit-btn" value="X">
<div class="input-field" id="book-title-input">
<input type="text" name="book_title" id="book_title" placeholder="Title" required>
</div>
<div class="input-field" id="book-author-input">
<input type="text" name="book_author" id="book_author" placeholder="Author">
</div>
<div class="input-field" id="book-series-input">
<input type="text" name="book_series" id="book_series" placeholder="Series">
</div>
<div class="radio-toolbar">
<input type="radio" id="current-btn" name="location" value="current-read-area" >
<label for="current-btn">Current</label>
<input type="radio" id="stack-btn" name="location" value="stack-area" checked>
<label for="stack-btn">Stack</label>
<input type="radio" id="shelf-btn" name="location" value="shelf-area">
<label for="shelf-btn">Shelf</label>
</div>
<div id="modal-add-remove">
<button type="submit" class="modal-btn" id="modal-add-btn" value="Add">Add</button>
</div>
</div>
</form>
</dialog>
<dialog class="modal" id="edit-book-modal">
<form action="https://httpbin.org/post" method="post" id="edit-book-form">
<div class="input-group">
<input type="button" class="exit-btn" id="edit-modal-exit-btn" value="X">
<div class="input-field" id="book-title-input">
<input type="text" name="book_title_edit" id="book_title_edit" placeholder="Title" required>
</div>
<div class="input-field" id="book-author-input">
<input type="text" name="book_author_edit" id="book_author_edit" placeholder="Author">
</div>
<div class="input-field" id="book-series-input">
<input type="text" name="book_series_edit" id="book_series_edit" placeholder="Series">
</div>
<div class="radio-toolbar-edit">
<input type="radio" id="current-btn-edit" name="edit-location" value="current-read-area" >
<label for="current-btn-edit">Current</label>
<input type="radio" id="stack-btn-edit" name="edit-location" value="stack-area">
<label for="stack-btn-edit">Stack</label>
<input type="radio" id="shelf-btn-edit" name="edit-location" value="shelf-area">
<label for="shelf-btn-edit">Shelf</label>
</div>
<div id="modal-add-remove-edit">
<button type="submit" class="modal-btn" id="modal-save-btn" value="Save">Save</button>
</div>
</div>
</form>
</dialog>
</div>
</body>
</html>