-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (55 loc) · 1.86 KB
/
index.html
File metadata and controls
63 lines (55 loc) · 1.86 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
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Library App</title>
<link rel="stylesheet" href="./normalize.css">
<link rel="stylesheet" href="./styles.css">
<script src="app.js" defer></script>
</head>
<body>
<div class="wrapper">
<header>
<h1>My Library</h1>
</header>
<main>
<div class="container">
<div class="library"></div>
<div class="btn-container">
<button class="new-book-btn">Add New Book</button>
</div>
</div>
</main>
<!-- Modal to add new book to library -->
<dialog id="modal" class="modal">
<div class="modal-content">
<span class="close-btn">×</span>
<h2>Add New Book</h2>
<form class="new-book-form">
<label for="title">Title:</label>
<input type="text" id="title" name="title" required>
<label for="author">Author:</label>
<input type="text" id="author" name="author" required>
<label for="pages">Pages:</label>
<input type="number" id="pages" name="pages" required>
<label for="read-check">Read?</label>
<input type="checkbox" id="read-check" name="read">
<button type="submit" class="add-book-btn">Add Book</button>
</form>
</div>
</dialog>
<!-- Dialog to confirm removal of book from library -->
<dialog id="remove-dialog" class="remove-dialog">
<h1>Are You Sure You Want To Remove This Book?</h1>
<div class="remove-actions">
<button class="confirm-remove-btn">Yes, I'm Sure</button>
<button class="cancel-remove-btn">Cancel</button>
</div>
</dialog>
<footer>
<p>Copyright © <a href="https://github.com/ComfyClicks">ComfyClicks</a> 2024</p>
</footer>
</div>
</body>
</html>