-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
151 lines (139 loc) · 6.98 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
<!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">
<script src="./app.js" defer></script>
<!-- <script src="'./node_modules/reset-css/reset.css'"></script> -->
<link rel="stylesheet" href="./style.css">
<title>nook</title>
</head>
<body>
<header>
<div class="title-container">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 55 100" x="0" y="0" fill="white">
<title>Library</title>
<g>
<path
d="M2,63H30a1,1,0,0,0,1-1V11.29L47.59,62.34a1,1,0,0,0,.5.58.88.88,0,0,0,.45.11.81.81,0,0,0,.31-.05l13.32-4.32a1,1,0,0,0,.64-1.26l-3-9.18h0L46.53,7.29h0L44.72,1.72a1,1,0,0,0-1.26-.64L31,5.13V2a1,1,0,0,0-1-1H2A1,1,0,0,0,1,2V62A1,1,0,0,0,2,63ZM3,12.92H15V51.14H3Zm14,0H29V51.14H17ZM15,53.14V55H3V53.14Zm2,0H29V55H17ZM29,10.92H17V9H29Zm-14,0H3V9H15ZM3,57H15v4H3Zm14,4V57H29v4ZM57.61,47.89,46.2,51.59,34.69,16.18l11.42-3.71Zm1.18,3.61L47.37,55.2l-.55-1.7,11.41-3.71ZM45.49,10.57,34.08,14.28l-.56-1.71L44.93,8.86Zm3.69,50.2L48,57.11,59.4,53.4l1.2,3.66ZM43.12,3.29,44.32,7,32.9,10.67,31.71,7ZM29,7H17V3H29ZM15,3V7H3V3Z" />
<path d="M8.53,20.53a1,1,0,0,0-1,1v21a1,1,0,0,0,2,0v-21A1,1,0,0,0,8.53,20.53Z" />
<path d="M22.53,20.53a1,1,0,0,0-1,1v21a1,1,0,0,0,2,0v-21A1,1,0,0,0,22.53,20.53Z" />
<path
d="M41.59,22.74l6.33,19.49a1,1,0,0,0,1,.69.87.87,0,0,0,.31-.05,1,1,0,0,0,.64-1.26L43.5,22.12a1,1,0,0,0-1.91.62Z" />
</g>
</svg>
<h1>nook</h1>
</div>
<div class="btn-container">
<button id="newBookButton" type="button">
<svg width="50px" height="50px" viewBox="0 0 1024 1024" class="icon" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<path d="M473.6 473.6V64h76.8v409.6H960v76.8H550.4V960H473.6V550.4H64V473.6h409.6z"
fill="#000000" />
</svg>
<div class="overlay-A"></div>
</button>
</div>
</header>
<div class="app-container">
<div id="nook"></div>
</div>
<footer>
a tem production 
<a href="https://github.com/toduyemi/nook" target="_blank" rel="noopener noreferrer">
<img src="./assets/icons/github-mark-white.png" alt="Github icon outline of a cat">
</a>
</footer>
<dialog id="newBookModal" class="modalBookForm">
<div class="form-container">
<div class="row-container">
<h2 class="dialogHeader">add new book</h2>
<button id="closeDialog" type="button">x</button>
</div>
<form method="dialog" id="newBookForm" class="bookForm">
<div>
<label for="bookTitle"></label>
<input id="bookTitle" type="text" name="bookTitle" placeholder="title" required autofocus>
</div>
<div>
<label for="bookAuthor"></label>
<input id="bookAuthor" type="text" name="bookAuthor" placeholder="author" required>
</div>
<div>
<label for="bookPages"></label>
<input id="bookPages" type="number" name="bookPages" placeholder="###">
</div>
<fieldset>
<legend>book status:</legend>
<label for="wantToRead" class="radioControl">
<input id="wantToRead" type="radio" name="bookRead" value="want to read" required>
want to read
</label>
<label for="inProgress" class="radioControl">
<input id="inProgress" type="radio" name="bookRead" value="in progress" required>
in progress
</label>
<label for="bookRead" class="radioControl">
<input id="bookRead" type="radio" name="bookRead" value="read" required>
read
</label>
</fieldset>
<button id="shelveBook" class="form-btn" type="submit">shelve</button>
<button id="reviewButton" class="form-btn" type="button" disabled>review?</button>
</form>
</div>
</dialog>
<dialog id="editBookModal" class="modalBookForm">
<div class="form-container">
<div class="row-container">
<h2 class="dialogHeader">edit book</h2>
<button id="closeDialog" type="button">x</button>
</div>
<form method="dialog" id="editBookForm" class="bookForm">
<div>
<label for="bookTitle"></label>
<input id="bookTitle" type="text" name="bookTitle" placeholder="title" required>
</div>
<div>
<label for="bookAuthor"></label>
<input id="bookAuthor" type="text" name="bookAuthor" placeholder="author" required>
</div>
<div>
<label for="bookPages"></label>
<input id="bookPages" type="number" name="bookPages" placeholder="###">
</div>
<fieldset>
<legend>book status:</legend>
<label for="wantToRead" class="radioControl">
<input id="wantToRead" type="radio" name="bookRead" value="want to read" required>
want to read
</label>
<label for="inProgress" class="radioControl">
<input id="inProgress" type="radio" name="bookRead" value="in progress" required>
in progress
</label>
<label for="bookRead" class="radioControl">
<input id="bookRead" type="radio" name="bookRead" value="read" required>
read
</label>
</fieldset>
<button id="shelveBook" class="form-btn" type="submit" autofocus>shelve</button>
<button id="reviewButton" class="form-btn" type="button" disabled>review?</button>
</form>
</div>
</dialog>
<dialog id="bookReviewModal">
<button id="closeDialog" type="button">x</button>
<form method="dialog" id="reviewForm" name="reviewForm">
<label for="reviewTextAre"></label>
<textarea id="reviewTextArea" rows="28vh" cols="50vw" name="reviewForm" placeholder="share your thoughts..."
autofocus></textarea>
<button id="logReviewButton" class="form-btn" type="submit">log</button>
</form>
</dialog>
<dialog id="fullBookCardModal">
<button id="closeDialog" type="button">x</button>
</dialog>
</body>
</html>