-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
213 lines (183 loc) · 6.96 KB
/
index.html
File metadata and controls
213 lines (183 loc) · 6.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Bakersyde — Artisan Bakery</title>
<meta name="description" content="Bakersyde — Freshly baked every morning" />
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js"></script>
</head>
<body>
<!-- NAVBAR -->
<nav class="navbar">
<div class="container navbar-inner">
<a class="logo" href="#">Bakersyde</a>
<div class="nav-actions">
<button id="cartButton" class="cart-btn" aria-label="Open cart">
<i class="fas fa-shopping-cart"></i>
<span id="cartCount" class="cart-count">0</span>
</button>
</div>
</div>
</nav>
<!-- HERO (A: full width banner with overlay) -->
<header class="hero" id="home">
<div class="hero-bg" id="heroBg" role="img" aria-hidden="true"></div>
<div class="hero-inner container">
<h1 id="heroTitle" class="hero-title">Freshly Baked Every Morning</h1>
<p id="heroSubtitle" class="hero-sub">Taste the warmth & sweetness of Bakersyde</p>
<div class="hero-cta">
<a href="#products" class="btn btn-primary">Explore Menu</a>
</div>
</div>
</header>
<!-- ABOUT / STORY -->
<section id="about" class="section about">
<div class="container">
<div class="about-box">
<h2>Bakersyde</h2>
<p>Bakersyde is a homegrown venture dedicated to creating exceptional baked goods.
What began as a small hobby has grown through dedication, creativity, and a
commitment to quality.</p>
<p>Starting with modest beginnings and a handful of orders, Bakersyde has expanded
one cake, one cookie, and one satisfied customer at a time. Every treat is crafted
from scratch with care, attention to detail, and a touch of creativity.</p>
<p>At Bakersyde, baking is more than a craft—it’s a commitment to quality, family
values, and spreading joy through delightful, handcrafted treats.</p>
</div>
</div>
</section>
<!-- PRODUCTS -->
<section id="products" class="section products">
<div class="container">
<h2 class="section-title">Our Menu</h2>
<!-- Filter Dropdown - MOVED BEFORE products grid -->
<div class="product-filter-bar">
<select id="categoryFilter" class="category-filter">
<option value="all">All Products</option>
<option value="Brownies">Brownies</option>
<option value="Blondies">Blondies</option>
<option value="NYC Cookies">NYC Cookies</option>
<option value="Butter Cookies">Butter Cookies</option>
<option value="Bombolini">Bombolini</option>
<option value="Donuts">Donuts</option>
<option value="Cakes">Cakes</option>
<option value="Tea Cakes">Tea Cakes</option>
</select>
</div>
<!-- Product Grid -->
<div id="productsGrid" class="products-grid"></div>
</div>
</section>
<!-- GALLERY -->
<section id="gallery" class="section gallery">
<div class="container">
<h2 class="section-title">Gallery</h2>
<div id="galleryGrid" class="gallery-grid">
<div class="gallery-item">
<img src="assets/img (1).jpg" alt="Gallery Image 1">
</div>
<div class="gallery-item">
<img src="assets/img (2).jpg" alt="Gallery Image 2">
</div>
<div class="gallery-item">
<img src="assets/img (3).jpg" alt="Gallery Image 3">
</div>
<div class="gallery-item">
<img src="assets/img (5).jpg" alt="Gallery Image 4">
</div>
<div class="gallery-item">
<img src="assets/img (6).jpg" alt="Gallery Image 4">
</div>
<div class="gallery-item">
<img src="assets/img (7).jpg" alt="Gallery Image 4">
</div>
<div class="gallery-item">
<img src="assets/img (8).jpg" alt="Gallery Image 4">
</div>
<div class="gallery-item">
<img src="assets/img (9).jpg" alt="Gallery Image 4">
</div>
<div class="gallery-item">
<img src="assets/img (10).jpg" alt="Gallery Image 4">
</div>
<div class="gallery-item">
<img src="assets/img (11).jpg" alt="Gallery Image 4">
</div>
<div class="gallery-item">
<img src="assets/img (12).jpg" alt="Gallery Image 4">
</div>
<div class="gallery-item">
<img src="assets/img (13).jpg" alt="Gallery Image 4">
</div>
<div class="gallery-item">
<img src="assets/img (14).jpg" alt="Gallery Image 4">
</div>
<div class="gallery-item">
<img src="assets/img (15).jpg" alt="Gallery Image 4">
</div>
<div class="gallery-item">
<img src="assets/img (16).jpg" alt="Gallery Image 4">
</div>
<div class="gallery-item">
<img src="assets/img (17).jpg" alt="Gallery Image 4">
</div>
<div class="gallery-item">
<img src="assets/img (18).jpg" alt="Gallery Image 4">
</div>
</div>
</div>
</section>
<!-- CART DRAWER (slide-in right) -->
<aside id="cartDrawer" class="cart-drawer" aria-hidden="true">
<div class="cart-header">
<h3>My Cart</h3>
<button id="closeCartDrawer" class="cart-close" aria-label="Close cart">×</button>
</div>
<div id="cartList" class="cart-list">
<!-- cart items injected here -->
</div>
<div class="cart-summary">
<div class="subtotal">
<span>Subtotal</span>
<span id="cartSubtotal">₹0.00</span>
</div>
<button id="checkoutModern" class="btn btn-checkout">Checkout via WhatsApp</button>
</div>
</aside>
<!-- OPTIONAL: If you really want modal fallback, keep this.
If NOT needed, DELETE this whole block.
Keeping both drawer + modal can cause the "cart opening always" bug -->
<div id="cartModal" class="cart-modal" aria-hidden="true" style="display:none;">
<div class="cart-content">
<button id="closeCart" class="cart-close small">×</button>
<h2>Your Cart</h2>
<div id="cartItems"></div>
<div class="cart-footer">
<div class="cart-total">Total: ₹<span id="cartTotal">0</span></div>
<button id="checkoutBtn" class="btn btn-primary">Checkout via WhatsApp</button>
</div>
</div>
</div>
<!-- Toast container (script will create if missing) -->
<div id="toastContainer" class="toast-container" aria-live="polite"></div>
<!-- Footer -->
<footer class="footer">
<div class="container footer-inner">
<div class="footer-left">
<div class="footer-logo">Bakersyde</div>
<p class="small muted">Crafting delicious baked goods with passion.</p>
</div>
<div class="footer-right small muted">© <span id="year"></span> Bakersyde</div>
</div>
</footer>
<!-- Scripts: supabase + site script -->
<script type="module">
import { supabase } from './supabase.js';
import { initPublic } from './script.js';
initPublic({ supabase });
</script>
</body>
</html>