-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct.html
147 lines (135 loc) · 5.25 KB
/
product.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="#" />
<!-- Bootstrap css link -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>
<title>jk furniture!</title>
<!-- import the webpage's stylesheet -->
<link rel="stylesheet" href="/style.css" />
<!-- import the webpage's javascript file -->
<script src="/script.js" defer></script>
</head>
<body> <!-- Body of code -->
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<!-- bootstrap navbar styling, size of screen, colour manipulation of nav-->
<!-- Navbar spacing, put nav links together and logo,name separted -->
<div class="w-100 nav">
<a class="navbar-brand d-flex align-items-center" href="index.html">
<img src="https://cdn.glitch.global/ffe4e1f2-0bf1-46b5-95d9-ba85b77cec59/jk-furniture-high-resolution-logo-grayscale.png?v=1731413502414" alt="JK Furniture Logo" class="logo me-2" />
JK FURNITURE
</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<!-- Helps me space out the Nav bar w-100(full length of navbar), mb-2(controls margin for smaller screen), mb-lg-100 (margin for bigger screens)-->
<li class="nav-item">
<a class="nav-link " aria-current="page" href="index.html"
>Home</a
>
</li>
<li class="nav-item">
<a class="nav-link active" href="product.html">Product</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
<main>
<div class="container my-5">
<!-- Header with Filters and Back Button -->
<header class="text-center mb-4">
<h1>Our Products</h1>
<div class="btn-group mb-3" role="group" aria-label="Product Categories">
<button class="btn btn-secondary" onclick="filterProducts('Sofa')">Sofas</button>
<button class="btn btn-secondary" onclick="filterProducts('Chair')">Chairs</button>
<button class="btn btn-secondary" onclick="filterProducts('Beds')">Beds</button>
<button class="btn btn-secondary" onclick="fetchProducts()">All</button>
</div>
<input
id="search-input"
type="text"
class="form-control my-3"
placeholder="Search for products..."
oninput="searchProducts(this.value)"
/>
<button id="back-button" class="btn btn-primary hidden">Back to List</button>
</header>
<!-- Loader for Fetching Products -->
<div id="loader" class="text-center hidden my-3">
<p>Loading...</p>
</div>
<!-- Product List Section -->
<section id="product-list" class="row gy-4">
<!-- List view will dynamically load here -->
</section>
<!-- Product Detail Section -->
<section id="product-detail" class="hidden">
<!-- Detail view will dynamically load here -->
</section>
<!-- Pagination Controls -->
<div id="pagination-controls" class="text-center my-4"></div>
</div>
</main>
<div class="container footer bg-body-tertiary">
<div class="container text-center row align-items-start">
<div class="col-md-4">
<h5>About Us</h5>
<p>
JK furniture is a minimalist oasis, locally made, sustainably
produced, and designed for simplicity, style, and convenience!
Discover more collection and enhance your space.
</p>
</div>
<div class="col-md-4">
<h5>Shop</h5>
<ul>
<li><a href="#">Sofas</a></li>
<li><a href="#">Consoles</a></li>
<li><a href="#">Tables</a></li>
<li><a href="#">Coffee Tables</a></li>
<li><a href="#">Chairs</a></li>
<li><a href="#">Beds</a></li>
</ul>
</div>
<div class="col-md-4">
<h5>Information</h5>
<p>
Have a question? Give us a call. We will love to hear from you.
</p>
<p>
<strong>Address:</strong> 118,Jk Furniture memorial plaza,opp Adonai Nur/Pry School, Basiri, Ado-Ekiti, Ekiti State, Nigeria.<br />
<strong>Phone:</strong> 07039434809,08032473143<br />
<strong>Email:</strong> [email protected]
</p>
</div>
</div>
</div>
<!-- Bootstrap JS script-->
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"
></script>
</body>
</html>