-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
107 lines (105 loc) · 5.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Eco-Reads</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bona+Nova+SC&display=swap" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/userhome.css" rel="stylesheet" />
<script defer src="js/bootstrap.bundle.min.js"></script>
<script defer type="module" src="js/index.js"></script> <!-- Ensure index.js is executed after DOM is ready -->
</head>
<body>
<!-- Responsive navbar -->
<nav class="navbar navbar-expand-lg">
<div class="container px-5">
<a class="navbar-brand fs-2 text-muted d-flex align-items-center" href="#" id="logo">
Eco-Reads
<img src="images/logo.png" alt="Eco-Reads Logo" class="ms-2" style="width: 50px; height: auto;">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0 d-flex align-items-center">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.html">Booksfeed</a>
</li>
<!-- Genre Dropdown -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Genre
</a>
<ul class="dropdown-menu" id="genreDropdown">
<li><a class="dropdown-item" href="#" data-genre="Action">Action</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#" data-genre="Romance">Romance</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#" data-genre="Horror">Horror</a></li>
</ul>
</li>
<li class="nav-item">
<button class="btn btn-outline-success custom-hover-btn" type="submit" id="signinbutton" style="color: black;">Sign In</button>
</li>
</ul>
</div>
</div>
</nav>
<!-- Page Content -->
<div class="container px-4 px-lg-5 mt-5">
<!-- Heading Row -->
<div class="row gx-4 gx-lg-5 align-items-center mb-5">
<div class="col-lg-7">
<img class="img-fluid rounded mb-4 mb-lg-0" src="images/dandadan.jpg" alt="dandadan" style="width: 900px; height: 400px;" />
</div>
<div class="col-lg-5">
<h1 class="display-4 fw-light text-muted mb-5">Book of the Day</h1>
<p class="h5 text-decoration-underline">Dandadan!</p>
<p>A ghost-believing girl and an alien-believing boy are thrown into a wild adventure following a supernatural encounter that confirms the existence of both ghosts and aliens.</p>
</div>
</div>
<!-- Heading for books section -->
<div class="text-center my-5">
<h2 class="display-6">Recently Listed Books</h2>
</div>
<!-- Books Grid -->
<div id="bookListContainer" class="row gx-4 gx-lg-5">
<!-- Book cards will be dynamically injected here -->
</div>
</div>
<!-- More Info Modal -->
<div class="modal fade" id="moreInfoModal" tabindex="-1" aria-labelledby="moreInfoModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="moreInfoModalLabel">Book Details</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="d-flex justify-content-center mb-3">
<img id="moreInfoBookImage" src="" alt="Book Image" class="img-fluid" style="max-width: 300px; max-height: 300px; border-radius: 8px;">
</div>
<ul class="list-group">
<li class="list-group-item">Title: <span id="moreInfoBookTitle"></span></li>
<li class="list-group-item">Author: <span id="moreInfoAuthor"></span></li>
<li class="list-group-item">Genre: <span id="moreInfoGenre"></span></li>
<li class="list-group-item">Condition: <span id="moreInfoCondition"></span></li>
<li class="list-group-item">Description: <span id="moreInfoDescription"></span></li>
<li class="list-group-item">Price: ₱<span id="moreInfoPrice"></span></li>
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="py-3" style="background-color: #e0dccf; ">
<p class="text-center p-0 m-0">© 2024 Eco-Reads, Inc. All rights reserved.</p>
</footer>
</body>
</html>