-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (78 loc) · 4.03 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Library App | The Odin Project</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Fjalla+One&family=Lato&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<script defer src="https://use.fontawesome.com/releases/v5.14.0/js/all.js"></script>
</head>
<body>
<main>
<header class="hero is-small is-primary">
<div class="hero-body">
<h1 class="title is-1"><span>My</span> Library</h1>
</div>
</header>
<section id="library" class="section">
<article id="empty-msg" class="message is-dark">
<div class="message-body">
<h4>Your library is empty!</h4>
<p>Use the button below to add books to the library.</p>
</div>
</article>
</section>
<section id="user-form" class="section">
<button class="button is-primary mb-4 modal-button" data-target="modal" aria-haspopup="true">New Book</button>
<div class="modal">
<div class="modal-background"></div>
<div class="modal-content">
<form id="new-book-form" class="box">
<p id="req-fields-label"><em>* Required fields</em></p>
<h4 class="title is-4">What book would you like to add?</h4>
<div class="field">
<label class="label">Title<sup>*</sup></label>
<div class="control">
<input required class="input" type="text" placeholder="IT" id="titleInput">
<span></span>
</div>
</div>
<div class="field">
<label class="label">Author<sup>*</sup></label>
<div class="control">
<input required class="input" type="text" placeholder="Stephen King" id="authorInput">
<span></span>
</div>
</div>
<div class="field">
<label class="label">Number of Pages</label>
<div class="control">
<input class="input" type="number" placeholder="1138" id="pagesInput">
</div>
</div>
<div class="field">
<label class="label">Read?</label>
<div class="control">
<label class="radio">
<input type="radio" name="question" id="readYesInput">
Yes
</label>
<label class="radio">
<input type="radio" name="question" id="readNoInput">
No
</label>
</div>
</div>
<button id="add-book-btn" class="button is-primary mt-4 mb-4">Add book to library</button>
</form>
</div>
<button class="modal-close is-large" aria-label="close"></button>
</div>
</section>
</main>
<script src="scripts.js"></script>
</body>
</html>