forked from anasK1ng/ecommerce-products
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
129 lines (124 loc) · 5.66 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<link rel="font" href="https://fonts.google.com/specimen/Kumbh+Sans">
<link rel="stylesheet" href="style/style.css">
<title>Frontend Mentor | E-commerce product page</title>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
</style>
</head>
<body>
<header>
<nav class="nav__bar container">
<div class="nav__logo">
<img class="nav__toggle" src="images/icon-menu.svg" data-toggle />
<img class="img logo" src="images/logo.svg" alt="">
</div>
<ul class="nav__items">
<li class="item btn__close"><img src="images/icon-close.svg"/></li>
<li class="item"><a href="#">Collections</a></li>
<li class="item"><a href="#">Men</a></li>
<li class="item active-link"><a href="#">Women</a></li>
<li class="item"><a href="#">About</a></li>
<li class="item"><a href="#">Contact</a></li>
</ul>
<div class="nav__menu">
<div class="menu__cart">
<div class="cart__icon">
<img src="images/icon-cart.svg"/>
<span class="cart__icon__number">0</span>
</div>
<div class="cart__section visible">
<h3 class="cart__title">Cart</h3>
<article class="cart__container">
<!-- <div class="cart__item">
<div class="cart__img">
<img src="images/image-product-1-thumbnail.jpg" />
</div>
<div class="cart__data">
<span class="cart__name">Fall Limited Edition Sneakers</span>
<div class="cart__price__quantity"><span class="cart__price">$125.00</span> x <span class="cart__quantity">3</span></div>
<span class="cart__calculate">$375.00</span>
</div>
<img class="btn__delete" src="images/icon-delete.svg" />
</div> -->
</article>
<div class="cart__footer">
<button class="btn cart__btn">Checkout</button>
</div>
</div>
</div>
<div class="menu__profile">
<img class="img img__profile" src="images/image-avatar.png"/>
</div>
</div>
</nav>
</header>
<main>
<section class="thumbnail">
<article class="thumbnail__container">
<div class="btn thumbnail__btn" data-thumbnailbtn="previous"><img src="images/icon-next.svg"/></div>
<div class="btn thumbnail__btn" data-thumbnailbtn="next"> <img src="images/icon-previous.svg"/></div>
<img class="btn thumbnail__btn__close" src="images/icon-close.svg" />
<ul data-thumbnail>
<li class="thumbnail__item" data-active>
<img src="images/image-product-1.jpg"/>
</li>
<li class="thumbnail__item">
<img src="images/image-product-2.jpg"/>
</li>
<li class="thumbnail__item">
<img src="images/image-product-3.jpg"/>
</li>
<li class="thumbnail__item">
<img src="images/image-product-4.jpg"/>
</li>
</ul>
</article>
</section>
<section class="section product">
<div class="product__container container">
<article class="product__images">
<div class="screen__img"><img src="images/image-product-1.jpg"></div>
<div class="img__item active-img"><img data-bigImg="images/image-product-1.jpg" src="images/image-product-1-thumbnail.jpg"></div>
<div class="img__item"><img data-bigImg="images/image-product-2.jpg" src="images/image-product-2-thumbnail.jpg"></div>
<div class="img__item"><img data-bigImg="images/image-product-3.jpg" src="images/image-product-3-thumbnail.jpg"></div>
<div class="img__item"><img data-bigImg="images/image-product-4.jpg" src="images/image-product-4-thumbnail.jpg"></div>
</article>
<article class="product__data">
<h4 class="data__sub__title">Sneaker Company</h4>
<h1 class="data__title">Fall Limited Edition Sneakers</h1>
<p class="data__paragraph">These low-profile sneakers are your perfect casual wear companion. Featuring a
durable rubber outer sole, they’ll withstand everything the weather can offer.</p>
<div class="price__section">
<span class="price">$125.00</span>
<span class="discount">50%</span>
<span class="old__price"><del>$250.00</del></span>
</div>
<div class="checkin__section">
<div class="quantity__section">
<button type="button" class="btn btn__minus" btn-minus><img src="images/icon-minus.svg" /></button>
<span class="quantity">1</span>
<button type="button" class="btn btn__plus" btn-plus ><img src="images/icon-plus.svg" /></button>
</div>
<button type="button" class="btn btn__add"><img src="images/icon-cart.svg" /> Add to cart</button>
</div>
</article>
</div>
</section>
<section>
<div class="attribution container">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="#">Anas Bouinghouren</a>.
</div>
</section>
</main>
<script src="js/main.js" type="Module"></script>
</body>
</html>