-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
224 lines (193 loc) · 7.3 KB
/
index.html
File metadata and controls
224 lines (193 loc) · 7.3 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MAXIMALL</title>
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="css/all.min.css" />
</head>
<body>
<!-- ===== HEADER ===== -->
<header>
<nav class="navbar">
<div class="logo">
<img src="img/logo.png" alt="Maximall Logo">
</div>
<div id="bill">
<ul id="naf">
<li><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact-info">Contact</a></li>
</ul>
</div>
<div><a href="cart.html" class="cart-link">Cart <span id="cart-logo">🛒</span> <span id="cart-count" class="cart-count">0</span></a></div>
<div class="auth-buttons">
<button id="loginBtnHome"><a href="login.html">Login</a></button>
<button id="signupBtnHome"><a href="signup.html">Signup</a></button>
<button id="dashboardBtn" style="display:none;"><a href="dashboard.html">My Acount</a></button>
</div>
</nav>
<hr>
<marquee behavior="scroll" direction="left">YOUR CAMPUS. YOUR PEOPLE. YOUR MARKETPLACE</marquee>
</header>
<!-- ===== HERO SECTION ===== -->
<section class="hero">
<h1>WELCOME TO MAXIMALL</h1><br>
<h2>Join thousands of customers in finding quality gadgets that last long.</h2><br>
<div class="hero-buttons">
<button onclick="showAlert()">Start Now →</button>
<button><a href="electronics.html">What's Trending</a></button>
</div>
<hr>
<br>
<p><b>These are some of the main product categories available on our platform.</b></p>
</section>
<!-- ===== CATEGORY SECTION ===== -->
<section class="categories">
<div class="category-card">
<img src="img/printer.jpeg" alt="Electronics">
<h2>Electronics</h2>
<p>High-quality laptops, smartwatches, printers and more.</p><br>
<a href="electronics.html"><button class="buy-btn">Explore</button></a>
</div>
<div class="category-card">
<img src="img/bed.jpeg" alt="Bedding">
<h2>Bedding</h2>
<p>Comfortable beds, mattresses, and stylish bedroom sets.</p><br>
<a href="Bedroom_layout.html"><button class="buy-btn">Explore</button></a>
</div>
<div class="category-card">
<img src="img/Sufurias and lids.jpeg" alt="Kitchen">
<h2>Kitchen</h2>
<p>Utensils, blenders, and cooking essentials for every kitchen.</p><br>
<a href="kitchen.html"><button class="buy-btn">Explore</button></a>
</div>
<div class="category-card">
<img src="img/cars.jpeg" alt="Motor Vehicles">
<h2>Motor Vehicles</h2>
<p>Cars, bikes, and trucks at great prices for your needs.</p><br>
<a href="motorvehicle.html"><button class="buy-btn">Explore</button></a>
</div>
<div class="category-card">
<img src="img/Decoration.jpeg" alt="House Decoration">
<h2>House Decorators</h2>
<p>High-quality pictures, models,photos labs and more.</p><br>
<a href="#" target="_blank">Explore</a>
</div>
<div class="category-card">
<img src="img/food.jpeg" alt="Delicacy">
<h2>Delicacy</h2>
<p>High-quality laptops, smartwatches, printers and more.</p><br>
<a href="#" target="_blank">Explore</a>
</div>
<div class="category-card">
<img src="img/Wallpapers.jpeg" alt="Decorators">
<h2>Wallpapers</h2>
<p>High-quality pictures, models and more.</p><br>
<a href="#" target="_blank">Explore</a>
</div>
<div class="category-card">
<img src="img/wrist royalty.jpeg" alt="Watch">
<h2>Watches</h2>
<p>High-quality watches, smartwatches and more.</p><br>
<a href="#" target="_blank">Explore</a>
</div>
<div class="category-card">
<img src="img/headphone.jpeg" alt="Headphones">
<h2>Electronics</h2>
<p>High-quality headphones and earphones.</p><br>
<a href="#" target="_blank">Explore</a>
</div>
</section>
<section class="section">
<section class="section1">
<div id="about">
<h2>ABOUT US</h2>
<li><p>Maxima is a platfoam for people to do shopping and good gadget that last long.
Welcome to our store! We’re here to make your shopping easy and enjoyable
From home essentials like utensils and furniture to the latest electronics, we offer a wide range of quality products to suit your needs.
Our goal is to provide great value, reliable service, and items you’ll love—all in one convenient place.
</p></li>
</div>
</section>
<section class="section1">
<div id="quick-links">
<h2>QUICK LINKS </h2>
<ul>
<li><a href="#"><i class="fa-solid fa-location-dot"></i>Location</a></li>
<li><a href="#"><i class="fa-solid fa-calendar-days"></i>Event</a></li>
<li><a href="#"><i class="fa-solid fa-link"></i>More</a></li>
</ul>
</div>
</section>
<section class="section1">
<div id="contact-info">
<b><b><h2>CONTACT US</h2></b></b>
<ol>
<p><i class="fa-solid fa-location-dot"></i>Kisumu, City</p>
<p><i class="fa-solid fa-phone"></i>(254) 117345789</p>
<p><i class="fa-solid fa-envelope"></i>info@maximall.com</p>
<p><i class="fa-solid fa-calendar-days"></i>Mon - Sat, 8am - 6pm</p>
</ol>
</div>
</section>
</section>
<hr>
<!-- ===== FOOTER ===== -->
<footer>
<p>© 2025 Maximall. All rights reserved. | Designed with 💙 by Billy & White Wizard.</p>
</footer>
<script>
function showAlert() {
alert("Please login first to start!!");
}
</script>
<script src="Cart.js"></script>
<script type="module">
import { initializeApp } from "https://www.gstatic.com/firebasejs/12.6.0/firebase-app.js";
import { getAuth, onAuthStateChanged }
from "https://www.gstatic.com/firebasejs/12.6.0/firebase-auth.js";
const firebaseConfig = {
apiKey: "AIzaSyBYrk0pA2n36c-fk9NvpwJYw2mcTBYsAnc",
authDomain: "maxima-6f4dc.firebaseapp.com",
projectId: "maxima-6f4dc",
storageBucket: "maxima-6f4dc.firebasestorage.app",
messagingSenderId: "294387008300",
appId: "1:294387008300:web:6b276d0689742576432289",
measurementId: "G-D6W9MKN7PD"
};
const app = initializeApp(firebaseConfig);
const auth = getAuth(app);
let isUserLoggedIn = false;
// Check user login status
onAuthStateChanged(auth, (user) => {
isUserLoggedIn = !!user;
const loginBtn = document.getElementById("loginBtnHome");
const signupBtn = document.getElementById("signupBtnHome");
const dashboardBtn = document.getElementById("dashboardBtn");
if (user) {
loginBtn.style.display = "none";
signupBtn.style.display = "none";
dashboardBtn.style.display = "inline-block";
} else {
loginBtn.style.display = "inline-block";
signupBtn.style.display = "inline-block";
dashboardBtn.style.display = "none";
}
});
// Updated Start Now function
function showAlert() {
if (isUserLoggedIn) {
window.location.href = "dashboard.html"; // redirect to dashboard
} else {
alert("Please login first to start!!");
}
}
// Make sure this function is globally accessible for your button
window.showAlert = showAlert;
</script>
</script>
</body>
</html>