Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
226 lines (205 loc) · 10.2 KB
/
Copy pathindex.html
File metadata and controls
226 lines (205 loc) · 10.2 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
225
226
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ChaatBazar 🍴 | Authentic Indian Street Food Delivered Hot</title>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Header & Navigation -->
<header>
<div class="header-inner container" role="banner">
<a href="#" class="logo" aria-label="ChaatBazar Home">ChaatBazar 🍴</a>
<nav role="navigation" aria-label="Primary Navigation">
<a href="#hero" class="nav-link active" tabindex="0">Home</a>
<div class="dropdown" tabindex="0" aria-haspopup="true" aria-expanded="false">
<a href="#menu" class="dropdown-toggle nav-link">Menu</a>
<div class="dropdown-menu" role="menu" aria-label="Menu Categories">
<a href="#specials" role="menuitem" tabindex="-1" class="menu-filter" data-filter="Specials">Specials</a>
<a href="#menu" role="menuitem" tabindex="-1" class="menu-filter" data-filter="Snacks">Snacks</a>
<a href="#menu" role="menuitem" tabindex="-1" class="menu-filter" data-filter="Chaat">Chaat</a>
<a href="#menu" role="menuitem" tabindex="-1" class="menu-filter" data-filter="Beverages">Beverages</a>
<a href="#menu" role="menuitem" tabindex="-1" class="menu-filter" data-filter="All">All</a>
</div>
</div>
<a href="#about" class="nav-link">About</a>
<a href="orders.html" class="nav-link">Orders</a>
<a href="#cart-sidebar" class="nav-link" id="cart-open-btn" aria-label="Open Cart">Cart (<span id="cart-count">0</span>)</a>
<div class="search-bar" role="search">
<input type="search" placeholder="Search menu..." aria-label="Search menu" id="search-input" autocomplete="off" />
<button aria-label="Search" id="search-btn"></button>
<div class="search-suggestions" id="search-suggestions" style="display: none;"></div>
</div>
</nav>
</div>
</header>
<!-- Hero Section -->
<section id="hero" class="hero" role="region" aria-label="Hero Section">
<div class="hero-content">
<h1>Authentic Indian Street Food Delivered Hot!</h1>
<p>Delicious Samosa, Kachori, Pani Puri and more, right to your doorstep within 5 km.</p>
<button class="btn-primary" id="order-now-btn" aria-haspopup="true" aria-controls="menu">Order Now</button>
</div>
<div class="hero-image" aria-hidden="true">
<img src="img/chaat.png" alt="Colorful Indian street food platter" />
</div>
</section>
<!-- Specials Section -->
<section id="specials" class="specials" role="region" aria-label="Today's Specials">
<h2 class="section-title">Today's Specials</h2>
<div class="cards" id="specials-cards">
<!-- Special cards will be injected here -->
</div>
</section>
<!-- Menu Section -->
<section id="menu" class="menu" role="region" aria-label="Full Menu">
<h2 class="section-title">Explore Our Menu</h2>
<div class="filter-buttons" role="toolbar" aria-label="Filter menu categories">
<button class="filter-btn active" data-filter="All" aria-pressed="true">All</button>
<button class="filter-btn" data-filter="Snacks" aria-pressed="false">Snacks</button>
<button class="filter-btn" data-filter="Chaat" aria-pressed="false">Chaat</button>
<button class="filter-btn" data-filter="Beverages" aria-pressed="false">Beverages</button>
</div>
<div class="filter-toggle-container">
<button class="btn-filter-toggle" id="filter-toggle-btn" aria-expanded="false" aria-controls="advanced-filters">
<span>⚙️ Advanced Filters</span>
</button>
</div>
<div class="advanced-filters" id="advanced-filters" style="display: none;">
<div class="filter-grid">
<!-- Price Range Slider -->
<div class="filter-group">
<label for="price-range-slider">Max Price: <span id="price-slider-val">₹100</span></label>
<input type="range" id="price-range-slider" min="10" max="100" step="5" value="100" aria-valuemin="10" aria-valuemax="100" aria-valuenow="100" />
</div>
<!-- Spice Level Selector -->
<div class="filter-group">
<label for="spice-level-select">Spice Level</label>
<select id="spice-level-select">
<option value="All">All Spice Levels</option>
<option value="Low">🌶️ Low</option>
<option value="Medium">🌶️🌶️ Medium</option>
<option value="High">🌶️🌶️🌶️ High</option>
</select>
</div>
<!-- Rating Selector -->
<div class="filter-group">
<label for="rating-select">Minimum Rating</label>
<select id="rating-select">
<option value="All">All Ratings</option>
<option value="4.6">⭐ 4.6+ Stars</option>
<option value="4.8">⭐⭐ 4.8+ Stars</option>
<option value="4.9">⭐⭐⭐ 4.9+ Stars</option>
</select>
</div>
<!-- Dietary Preferences -->
<div class="filter-group dietary-group">
<label>Dietary Preferences</label>
<div class="checkbox-container">
<label class="custom-checkbox">
<input type="checkbox" id="dietary-vegan" />
<span class="checkbox-label">🌱 Vegan</span>
</label>
<label class="custom-checkbox">
<input type="checkbox" id="dietary-gf" />
<span class="checkbox-label">🌾 Gluten-Free</span>
</label>
</div>
</div>
</div>
<!-- Reset Filters Button -->
<div class="filter-actions">
<button class="btn-reset-filters" id="reset-filters-btn">Reset All Filters</button>
</div>
</div>
<div class="cards" id="menu-cards" aria-live="polite" aria-relevant="additions removals">
<!-- Menu cards injected here -->
</div>
</section>
<!-- About Section -->
<section id="about" class="about" role="region" aria-label="About ChaatBazar">
<div class="container">
<h2>About Us</h2>
<p>At <strong>ChaatBazar</strong>, we bring you the authentic flavors of India's vibrant street food culture, freshly prepared and delivered hot right to your door. Our passion is to share the love of chaat, snacks, and beverages made from time-tested recipes.</p>
<div class="team" aria-label="Meet our team">
<article class="team-member" tabindex="0">
<img src="https://randomuser.me/api/portraits/women/68.jpg" alt="Priya Sharma - Founder & Head Chef" />
<h4>Priya Sharma</h4>
<p>Founder & Head Chef - Crafting every dish with love and authenticity.</p>
</article>
<article class="team-member" tabindex="0">
<img src="https://randomuser.me/api/portraits/women/45.jpg" alt="Anjali Verma - Customer Support" />
<h4>Anjali Verma</h4>
<p>Customer Support - Always here to assist you with your orders.</p>
</article>
</div>
<!-- Contact Form -->
<h2>Contact Us</h2>
<form class="contact-form" id="contact-form" novalidate aria-label="Contact Form">
<label for="name">Name <span class="required">*</span></label>
<input type="text" id="name" name="name" required aria-required="true" minlength="2" />
<div class="error-msg" id="error-name" aria-live="assertive"></div>
<label for="email">Email <span class="required">*</span></label>
<input type="email" id="email" name="email" required aria-required="true" />
<div class="error-msg" id="error-email" aria-live="assertive"></div>
<label for="message">Message <span class="required">*</span></label>
<textarea id="message" name="message" required aria-required="true" minlength="10"></textarea>
<div class="error-msg" id="error-message" aria-live="assertive"></div>
<div class="form-success-msg" id="form-success" role="alert" aria-live="polite" style="display:none;">
Your message has been sent. We'll get back to you soon.
</div>
<button type="submit" class="btn-submit">Send Message</button>
</form>
</div>
</section>
<!-- Testimonials -->
<section class="testimonials" role="region" aria-label="Customer Testimonials">
<h2 class="section-title">What Our Customers Say</h2>
<div class="testimonial-cards">
<blockquote class="testimonial" tabindex="0">
<p>The Samosas were crispy and flavorful, delivered piping hot! Amazing service and quality.</p>
<cite class="author">- Meera K.</cite>
</blockquote>
<blockquote class="testimonial" tabindex="0">
<p>Love the variety and authentic taste. The Pani Puri is the best I've had outside India!</p>
<cite class="author">- Arjun P.</cite>
</blockquote>
<blockquote class="testimonial" tabindex="0">
<p>Quick delivery and very friendly staff. The Kachoris are my go-to snack now. Highly recommended!</p>
<cite class="author">- Sneha M.</cite>
</blockquote>
</div>
</section>
<!-- Newsletter Signup -->
<section class="newsletter" role="region" aria-label="Newsletter Signup">
<h2>Subscribe to Our Newsletter</h2>
<p>Get the latest deals, menu updates, and exclusive offers delivered to your inbox.</p>
<form class="newsletter-form" id="newsletter-form" aria-label="Newsletter subscription form">
<input type="email" id="newsletter-email" name="newsletter-email" placeholder="Enter your email" required aria-required="true" />
<button type="submit" aria-label="Subscribe to newsletter">Subscribe</button>
</form>
</section>
<!-- Cart Sidebar -->
<aside id="cart-sidebar" role="region" aria-label="Shopping Cart" aria-hidden="true">
<div id="cart-header">
Your Cart
<button id="cart-close" aria-label="Close Cart">×</button>
</div>
<div id="cart-items" tabindex="0" aria-live="polite" aria-relevant="additions removals">
<!-- Cart items injected here -->
</div>
<div id="cart-footer">
<span id="cart-total">Total: ₹0</span>
<button id="checkout-btn" disabled>Checkout</button>
</div>
</aside>
<!-- Footer -->
<footer>
<p>© 2026 ChaatBazar. All rights reserved.</p>
</footer>
<script src="js/main.js"></script>
</body>
</html>