-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (54 loc) · 2.36 KB
/
Copy pathindex.html
File metadata and controls
54 lines (54 loc) · 2.36 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="./logo.svg" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<title>JavaScript Library</title>
</head>
<body>
<div class="modal__overlay"></div>
<div class="add-book__modal">
<form action="submit" class="add-book__form" id="add-book-form">
<h2>Add a new book!</h2>
<div class="input__group">
<input type="text" required placeholder="Title" maxlength="100" id="add-book-title">
</div>
<div class="input__group">
<input type="text" required placeholder="Author" maxlength="100" id="add-book-author">
</div>
<div class="input__group">
<input type="number" min="1" max="30000" required placeholder="Number of pages" id="add-book-pages">
</div>
<div class="checkbox__group">
<label for="add-book-read">Did you read this book?</label>
<div class="checkbox-wrapper-22">
<label class="switch" for="checkbox">
<input type="checkbox" id="checkbox" class="add-book-read" />
<div class="slider round"></div>
</label>
</div>
</div>
<button type="submit" id="submit-book">Submit</button>
</form>
</div>
<header>
<div class="header__branding container">
<svg class="branding__logo" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h480q33 0 56.5 23.5T800-800v640q0 33-23.5 56.5T720-80H240Zm0-80h480v-640h-80v280l-100-60-100 60v-280H240v640Zm0 0v-640 640Zm200-360 100-60 100 60-100-60-100 60Z"/></svg>
<h1 class="branding__text"><span>JS</span>Library</h1>
</div>
</header>
<main class="container">
<button class="add-btn action-btn" id="add-book">Add book</button>
<section class="books__section">
</section>
</main>
<footer>
<div class="attribution">
<p>Made by <a href="https://github.com/Daviddp96">David</a></p>
</div>
</footer>
<script src="./index.js"></script>
</body>
</html>