-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (67 loc) · 3.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title>Your library</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header class="btn-container">
<h1>Your library</h1>
<button class="new-book-btn" id="new-book-btn">Add a new book</button>
</header>
<div class="form-modal" id="form-modal">
<form class="book-form" id="book-form" action="/">
<span class="form-close" id="form-close">×</span>
<label for="form-book-author">Author:</label>
<input id="form-book-author" name="book-author" type="text" required></input>
<label for="form-book-title">Title:</label>
<input id="form-book-title" name="book-title" type="text" required></input>
<label for="form-book-pages">Number of pages:</label>
<input id="form-book-pages" name="number-of-pages" type="tel" required></input>
<fieldset>
<legend>Have you read this book yet?</legend>
<div class="radio-container" id="radio-container">
<label>
<input id="form-book-status" name="read-status" type="radio" value="Read" checked></input>
Read</label>
<label>
<input id="form-book-status" name="read-status" type="radio" value="Not read yet"></input>
Not read yet</label>
<label>
<input id="form-book-status" name="read-status" type="radio" value="Currently reading"></input>
Currently reading</label>
</div>
</fieldset>
<button type="submit" id="submit-btn">Submit</button>
</form>
</div>
<div class="status-form-modal" id="status-form-modal">
<form class="status-form" id="status-form" action="/">
<span class="status-form-close" id="status-form-close">×</span>
<fieldset>
<legend>Have you read this book yet?</legend>
<div class="radio-container" id="radio-container">
<label>
<input id="change-book-status" name="read-status" type="radio" value="Read" checked></input>
Read</label>
<label>
<input id="change-book-status" name="read-status" type="radio" value="Not read yet"></input>
Not read yet</label>
<label>
<input id="change-book-status" name="read-status" type="radio" value="Currently reading"></input>
Currently reading</label>
</div>
</fieldset>
<button type="submit" id="save-changes-btn">Save</button>
</form>
</div>
<main class="book-container" id="book-container">
<div class="no-books-yet" id="no-books-yet">
<h2>No books added yet!</h2>
</div>
</main>
<script src="script.js"></script>
</body>
</html>