-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
269 lines (192 loc) · 8.7 KB
/
index.html
File metadata and controls
269 lines (192 loc) · 8.7 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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<!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" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="style.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Leaftech</title>
</head>
<body>
<div class="home">
<header>
<nav>
<a href="index.html">
<img src="images\leaf tech logo.PNG" alt="" />
</a>
<ul class="right">
<li><a href="index.html">Acceuil</a></li>
<li><a href="detail.html">Produit</a></li>
<li><a href="ajout.html">Ajouter</a></li>
<li><span><a href="panier.html"> Panier</a></span></li>
<li>
<input type="checkbox" class="checkbox" id="checkbox">
<label for="checkbox" class="label">
<div class='ball'>
</label>
</li>
</ul>
</ul>
</nav>
</header>
<section class="presentation " id="section1">
<div class="product-presentation">
<h1> Bienvenue chez <span>Leaftech</span></h1>
<p>Découvrez notre gamme de produits informatiques d'une qualité reconnue à l'échelle mondiale. </p>
<a href="#section2"> <span class="button1"> Commander</span></a>
</div>
<div class="image-presentation">
<img src="images\photo description.png.jpg" alt="">
</div>
</section>
<section id="section2">
<nav role="navigation" class="primary-navigation">
<ul>
<li><a >Catégories ▾</a>
<ul id="list" class="dropdown" >
<li><a href="#airpods" id="a">Airpods </a></li>
<li><a href="#carte" id="b">Carte mémoire</a></li>
<li><a href="#casque" id="c">Casque</a></li>
<li><a href="#clavier">Clavier</a></li>
<li><a href="#usb">Clé USB</a></li>
<li><a href="#disque">Disque dur</a></li>
<li><a href="#ecouteurs">Ecouteurs</a></li>
<li><a href="#pc">PC portable</a></li>
<li><a href="#routeur">Routeur</a></li>
<li><a href="#souris">Souris</a></li>
</ul>
</li>
<li><a >Disponibilité ▾</a>
<ul class="dropdown">
<li><a href="#ecouteurs">En stock</a></li>
<li><a href="#pc">Stock limité</a></li>
</ul>
</li>
</ul>
</nav>
</section>
<section class="products" id="products">
<p id="demo"></p>
<div class="productcont">
<div id="alerts"></div>
<div class="box-container">
<div class="item" id="ecouteurs">
<a href="detail.html"><img src="images\ecouteur.jpg" alt="" ></a>
<h3 class="productname">Ecouteurs</h3>
<span class="price">$99.99</span>
<a class="btn">Ajouter au panier</a>
</div>
<div class="item" id="souris">
<a href="detail.html"><img src="images\Souris.jpg" alt=""></a>
<h3 class="productname">Souris</h3>
<span class="price">$80.99</span>
<a class="btn">Ajouter au panier</a>
</div>
<div class="item" id="clavier">
<a href="detail.html"><img src="images\Clavier.jpg" alt=""></a>
<h3 class="productname">Clavier</h3>
<span class="price">$150.99</span>
<a class="btn">Ajouter au panier</a>
</div>
<div class="item" id="pc">
<a href="detail.html"><img src="images\Pc portable.jpg" alt=""></a>
<h3 class="productname">PC portable</h3>
<span class="price">$1399.99</span>
<a class="btn">Ajouter au panier</a>
</div>
<div class="item" id="casque">
<a href="detail.html"> <img src="images\Casque.jpg" alt=""></a>
<h3 class="productname">Casque</h3>
<span class="price">$150.99</span>
<a class="btn">Ajouter au panier</a>
</div>
<div class="item" id="airpods">
<a href="detail.html"> <img src="images\Airpods.jpg" alt=""></a>
<h3 class="productname">Airpods</h3>
<span class="price">$400.99</span>
<a class="btn">Ajouter au panier</a>
</div>
<div class="item" id="disque">
<a href="detail.html"> <img src="images\Disque dur.jpg" alt=""></a>
<h3 class="productname">Disque dur</h3>
<span class="price">$599.99</span>
<a class="btn">Ajouter au panier</a>
</div>
<div class="item" id="routeur">
<a href="detail.html"><img src="images\Routeur.jpeg" alt=""></a>
<h3 class="productname">Routeur</h3>
<span class="price">$299.99</span>
<a class="btn">Ajouter au panier</a>
</div>
<div class="item" id="usb">
<a href="detail.html"> <img src="images\Clé USB.jpg" alt=""></a>
<h3 class="productname">Clé USB</h3>
<span class="price">$78.99</span>
<a class="btn">Ajouter au panier</a>
</div>
<div class="item" id="carte">
<a href="detail.html"> <img src="images\Carte mémoire.jpg" alt=""></a>
<h3 class="productname">Carte mémoire</h3>
<span class="price">$60.99</span>
<a class="btn">Ajouter au panier</a>
</div>
</div>
</div>
<div class="cart-container">
<h2>Panier</h2>
<table>
<thead>
<tr>
<th><strong>Produits</strong></th>
<th><strong>Prix</strong></th>
</tr>
</thead>
<tbody id="carttable">
</tbody>
</table>
<hr>
<table id="carttotals">
<tr>
<td><strong>Quantité</strong></td>
<td><strong>Total</strong></td>
</tr>
<tr>
<td>x <span id="itemsquantity">0</span></td>
<td>$<span id="total">0</span></td>
</tr></table>
<div class="cart-buttons">
<button id="emptycart" onclick="alertVider()">Vider panier</button>
<button id="emptycart" onclick="" >Imprimer facture</button>
</div>
</div>
</div>
</section>
<script src="./js/script.js" type="module"></script>
<script>
function alertVider() {
alert("le panier a été vidé avec succés");
}
</script>
</body>
<footer class="footer">
<div class="flex-container">
<h2>Nos produits</h2>
<ul>
<li><a href="">Par catégorie</a></li>
<li><a href="">Par disponibilité</a></li>
</ul>
</div>
<div class="flex-container">
<h2>A propos</h2>
<ul>
<li><a href="">S'abonner</a></li>
<li><a href="index.html">Qui sommes nous?</a></li>
<li><a href="">Nous contacter</a></li>
</ul>
</div>
</footer>
</html>