-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
234 lines (199 loc) · 9.04 KB
/
Copy pathindex.html
File metadata and controls
234 lines (199 loc) · 9.04 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
227
228
229
230
231
232
233
234
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Abolfazl Shadrouh</title>
<!-- Stylesheets -->
<link rel="stylesheet" href="style.css">
<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=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
<link rel="icon" type="image/png" href="logo.png">
<!-- Favicon -->
<link rel="icon" type="image/png" href="assets/logo.png">
</head>
<body>
<div class="container">
<!-- =======================
Product View Section
======================== -->
<div class="product-view">
<!-- Header / Navigation -->
<header>
<div class="logo">
<img src="logo.png" alt="Abolfazl Shadrouh Logo">
<span>megastore</span>
</div>
<nav>
<ul>
<li><a href="#" class="active">Home</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</nav>
<div class="header-actions">
<!-- Search Bar -->
<div class="search-bar">
<input type="text" placeholder="Search...">
<i class="fas fa-search"></i>
</div>
<!-- Cart Icon -->
<div class="cart-icon">
<i class="fas fa-shopping-bag"></i>
<span class="cart-count">0</span>
</div>
</div>
</header>
<!-- Main Content Area -->
<main class="content-area">
<!-- Sidebar Filters -->
<aside class="filters">
<h3>Filters</h3>
<!-- Brand Filter -->
<div class="filter-group">
<h4>Brand</h4>
<label><input type="checkbox" data-filter="brand" value="TechLord"> TechLord</label>
<label><input type="checkbox" data-filter="brand" value="NovaBook"> NovaBook</label>
<label><input type="checkbox" data-filter="brand" value="Quantum"> Quantum</label>
<label><input type="checkbox" data-filter="brand" value="Fusion"> Fusion</label>
</div>
<!-- Price Range Filter -->
<div class="filter-group">
<h4>Price Range</h4>
<input type="range" id="price-range" min="500" max="3000" value="3000">
<div class="price-range-labels">
<span>$500</span>
<span id="price-range-value">$3000</span>
</div>
</div>
<!-- Processor Filter -->
<div class="filter-group">
<h4>Processor</h4>
<label><input type="checkbox" data-filter="processor" value="Core i5"> Core i5</label>
<label><input type="checkbox" data-filter="processor" value="Core i7"> Core i7</label>
<label><input type="checkbox" data-filter="processor" value="Core i9"> Core i9</label>
</div>
<!-- RAM Filter -->
<div class="filter-group">
<h4>RAM</h4>
<label><input type="checkbox" data-filter="ram" value="8"> 8GB</label>
<label><input type="checkbox" data-filter="ram" value="16"> 16GB</label>
<label><input type="checkbox" data-filter="ram" value="32"> 32GB</label>
</div>
<!-- Clear Filters Button -->
<button class="clear-filters-btn">Clear All Filters</button>
</aside>
<!-- Product Grid -->
<section class="product-grid-container">
<!-- Header for Product List -->
<div class="product-list-header">
<h2>All Laptops</h2>
<!-- Sort Options -->
<div class="sort-options">
<label for="sort-by">Sort by:</label>
<select id="sort-by">
<option value="default">Default</option>
<option value="price-asc">Price: Low to High</option>
<option value="price-desc">Price: High to Low</option>
<option value="name-asc">Name: A to Z</option>
<option value="name-desc">Name: Z to A</option>
</select>
</div>
</div>
<!-- Product Grid Container -->
<div class="product-grid">
<!-- Products will be dynamically injected via JavaScript -->
</div>
</section>
</main>
</div>
<!-- =======================
Cart View Section
======================== -->
<div class="cart-view">
<!-- Close Cart Button -->
<button class="close-cart-btn">×</button>
<div class="cart-content">
<h3>Shopping Cart</h3>
<!-- Cart Items Container -->
<div id="cart-items-container">
<div class="empty-cart-message">
<i class="fas fa-shopping-cart"></i>
<p>Your cart is empty.</p>
</div>
<!-- Cart items will be dynamically injected here -->
</div>
<!-- Cart Summary -->
<div class="cart-summary hidden">
<div class="summary-line">
<span>Subtotal</span>
<span id="subtotal-price">$0.00</span>
</div>
<div class="summary-line">
<span>Shipping</span>
<span>FREE</span>
</div>
<div class="summary-line total">
<span>Total</span>
<span id="total-price">$0.00</span>
</div>
<button class="checkout-btn">Proceed to Checkout</button>
</div>
</div>
<!-- Cart Footer -->
<footer>
<div class="contact-info">
<h4>Contact Us</h4>
<p><i class="fas fa-phone"></i> +1 (555) 123-4567</p>
<p><i class="fas fa-envelope"></i> support@megastore.com</p>
</div>
<div class="newsletter">
<h4>Subscribe to our Newsletter</h4>
<div class="subscribe-box">
<input type="email" placeholder="Enter your email">
<button>Subscribe</button>
</div>
</div>
</footer>
</div>
</div>
<!-- Copyright -->
<p class="copyright">
© 2025 <a href="https://abolfazl-shadrouh.netlify.app" class="animated-name">Abolfazl Shadrouh</a>. All Rights Reserved.
</p>
<!-- =======================
Product Modal
======================== -->
<div id="product-modal" class="modal-overlay hidden">
<div class="modal-content">
<!-- Close Modal Button -->
<button class="close-modal">×</button>
<!-- Modal Image -->
<div class="modal-image-container">
<img src="" alt="" id="modal-img">
</div>
<!-- Modal Info -->
<div class="modal-info">
<h2 id="modal-name"></h2>
<p class="modal-brand" id="modal-brand"></p>
<p class="modal-price" id="modal-price"></p>
<p class="modal-desc" id="modal-desc"></p>
<!-- Modal Specifications -->
<div class="modal-specs">
<h4>Specifications</h4>
<ul id="modal-specs-list">
<!-- Specs will be dynamically injected via JS -->
</ul>
</div>
<!-- Add to Cart Button -->
<button class="add-to-cart-btn" data-id="">Add to Cart</button>
</div>
</div>
</div>
<!-- Scripts -->
<script src="script.js"></script>
</body>
</html>