-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathindex.html
More file actions
170 lines (156 loc) · 7.96 KB
/
index.html
File metadata and controls
170 lines (156 loc) · 7.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>E-commerce Website</title>
<link rel="stylesheet" href="index.css">
<style>
</style>
</head>
<body>
<header>
<h1>SHOP LUXURY</h1>
<nav>
<a href="index.html" onclick="showSection('hero')">Home</a>
<a href="javascript:void(0)" onclick="showSection('products')">Products</a>
<a href="#" onclick="showSection('cart')">Cart (<span id="cartCount">0</span>)</a>
<a href="contact.html">Contact</a>
</nav>
<div class="search-bar">
<input type="text" id="searchInput" placeholder="Search for products..." oninput="filterProducts()" />
<button onclick="performSearch()">Search</button>
</div>
</header>
<section id="hero" class="hero">
<h2>WELCOME TO SHOP LUXURY</h2>
<p>Your one-stop shop for the best deals and Quality online</p>
<button>Shop Now</button>
</section>
<section id="products" class="products">
<div class="product">
<a href="product 1.html">
<img src="https://www.pilotpen.co.in/images/bg/pen111.png" alt="Product 1">
</a>
<h3>Pilot V7 Black Pen</h3>
<p>₹599.00</p>
<button onclick="addToCart('Pilot V7 Black Pen', 599.00)">Add to Cart</button>
<button onclick="addToCart('Pilot V7 Black Pen', 599.00)">Buy Now</button>
</div>
<div class="product">
<img src="https://luxor.in/media/catalog/product/cache/1d33a401d7d4f49c41930c20a2e836a7/9/0/9000016330_000.png" alt="Product 2" height="200">
<h3>Parker</h3>
<h4 style="font-family: cursive;">Silver Ball Pen</h4>
<p>₹553.00</p>
<button onclick="addToCart('Parker Silver Ball Pen', 553.00)">Add to Cart</button>
<button onclick="addToCart('Parker Silver Ball Pen', 553.00)">Buy Now</button>
</div>
<div class="product">
<img src="https://png.pngtree.com/png-vector/20241203/ourmid/pngtree-blank-spiral-bound-kraft-notebook-png-image_13305369.png" alt="Product 3">
<h3>Paperkraft</h3>
<h4 style="font-family: cursive;">A5 Designer Wiro Hard Bound Notebook</h4>
<p>₹340.00</p>
<button onclick="addToCart('Paperkraft Notebook', 340.00)">Add to Cart</button>
<button onclick="addToCart('Paperkraft Notebook', 340.00)">Buy Now</button>
</div>
<div class="product">
<img src="https://images.dailyobjects.com/marche/product-images/1702/cirque-phone-and-pen-stand-ivory-images/Cirque-Phone-and-Pen-Stand-Ivory-v.png?tr=cm-pad_resize,v-3" alt="Product 4">
<h3>Wooden penstand – Large</h3>
<p>₹1,399.00</p>
<button onclick="addToCart('Wooden penstand - Large', 1399.00)">Add to Cart</button>
<button onclick="addToCart('Wooden penstand - Large', 1399.00)">Buy Now</button>
</div>
<div class="product">
<img src="https://www.pilotpen.co.in/images/bg/pen111.png" alt="Product 1" height="200">
<h3>Pilot V7 Black Pen</h3>
<p>₹599.00</p>
<button onclick="addToCart('Pilot V7 Black Pen', 599.00)">Add to Cart</button>
<button onclick="addToCart('Pilot V7 Black Pen', 599.00)">Buy Now</button>
</div>
<div class="product">
<img src="https://luxor.in/media/catalog/product/cache/1d33a401d7d4f49c41930c20a2e836a7/9/0/9000016330_000.png" alt="Product 2" height="200">
<h3>Parker</h3>
<h4 style="font-family: cursive;">Silver Ball Pen</h4>
<p>₹553.00</p>
<button onclick="addToCart('Parker Silver Ball Pen', 553.00)">Add to Cart</button>
<button onclick="addToCart('Parker Silver Ball Pen', 553.00)">Buy Now</button>
</div>
<div class="product">
<img src="https://timeplan.lk/Images/retail/29.png" alt="Product 3">
<h3>Paperkraft</h3>
<h4 style="font-family: cursive;">A5 Designer Wiro Hard Bound Notebook</h4>
<p>₹340.00</p>
<button onclick="addToCart('Paperkraft', 340.00)">Add to Cart</button>
<button onclick="addToCart('Paperkraft', 340.00)">Buy Now</button>
</div>
<div class="product">
<img src="https://images.dailyobjects.com/marche/product-images/1702/cirque-phone-and-pen-stand-ivory-images/Cirque-Phone-and-Pen-Stand-Ivory-v.png?tr=cm-pad_resize,v-3" alt="Product 4">
<h3>Wooden penstand – Large</h3>
<p>₹1,399.00</p>
<button onclick="addToCart('Wooden penstand - Large', 1399.00)">Add to Cart</button>
<button onclick="addToCart('Wooden penstand - Large', 1399.00)">Buy Now</button>
</div>
<div class="product">
<img src="https://www.pilotpen.co.in/images/bg/pen111.png" alt="Product 5" height="200">
<h3>Pilot V7 Black Pen</h3>
<p>₹599.00</p>
<button onclick="addToCart('Pilot V7 Black Pen', 599.00)">Add to Cart</button>
<button onclick="addToCart('Pilot V7 Black Pen', 599.00)">Buy Now</button>
</div>
<div class="product">
<img src="https://luxor.in/media/catalog/product/cache/1d33a401d7d4f49c41930c20a2e836a7/9/0/9000016330_000.png" alt="Product 6" height="200">
<h3>Parker</h3>
<h4 style="font-family: cursive;">Silver Ball Pen</h4>
<p>₹553.00</p>
<button onclick="addToCart('Parker Silver Ball Pen', 553.00)">Add to Cart</button>
<button onclick="addToCart('Parker Silver Ball Pen', 553.00)">Buy Now</button>
</div>
<div class="product">
<img src="https://timeplan.lk/Images/retail/29.png" alt="Product 7">
<h3>Paperkraft</h3>
<h4 style="font-family: cursive;">A5 Designer Wiro Hard Bound Notebook</h4>
<p>₹340.00</p>
<button onclick="addToCart('Product 7', 340.00)">Add to Cart</button>
<button onclick="addToCart('Product 7', 340.00)">Buy Now</button>
</div>
<div class="product">
<img src="https://images.dailyobjects.com/marche/product-images/1702/cirque-phone-and-pen-stand-ivory-images/Cirque-Phone-and-Pen-Stand-Ivory-v.png?tr=cm-pad_resize,v-3" alt="Product 8">
<h3>Wooden penstand – Large</h3>
<p>₹1,399.00</p>
<button onclick="addToCart('Product 8', 1399.00)">Add to Cart</button>
<button onclick="addToCart('Product 8', 1399.00)">Buy Now</button>
</div>
</section>
<section id="cart" class="cart-page" style="display: none;">
<h2>Your Cart</h2>
<table>
<thead>
<tr>
<th>Product</th>
<th>Price</th>
<th>Quantity</th>
<th>Total</th>
<th>Remove</th>
</tr>
</thead>
<tbody id="cartItems">
<!-- Cart items will be dynamically inserted here -->
</tbody>
</table>
<div style="text-align: right; margin-top: 20px;">
<strong>Total: ₹<span id="cartTotal">0.00</span></strong>
</div>
<button onclick="clearCart()" class="cut-btn">Remove all products</button>
<button>Proceed to Checkout</button>
</section>
<footer>
<p>© 2024 ShopLuxury. All Rights Reserved.</p>
<div class="social-icons">
<a href="#" title="Facebook"></a>
<a href="#" title="Twitter"></a>
<a href="#" title="Instagram"></a>
</div>
</footer>
<script src="index.js"></script>
</body>
</html>