-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
148 lines (136 loc) · 5.86 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!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" />
<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>
<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=Kumbh+Sans:wght@400;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="./css/style.css" />
<script src="./js/index.js" defer></script>
</head>
<body>
<header class="flex">
<div class="flex flex--center">
<button class="menu-toggle"></button>
<div class="logo"><img src="./images/logo.svg" alt="sneakers logo" /></div>
<nav>
<ul class="flex">
<li><a class="menu-link" href="#">Collections</a></li>
<li><a class="menu-link" href="#">Men</a></li>
<li><a class="menu-link" href="#">Women</a></li>
<li><a class="menu-link" href="#">About</a></li>
<li><a class="menu-link" href="#">Contact</a></li>
</ul>
</nav>
</div>
<div class="user-info">
<ul class="flex flex--center">
<li class="cart" data-status="idle" data-hasItens='false'>
<span class="cart-items">3</span>
<a href="#" class="icon-cart"><img src="./images/icon-cart.svg" alt="cart icon" /></a>
<div>
<h5 class="fs-400">Cart</h5>
<div class="cart-products">
<p class="cart-empty">Your cart is empty.</p>
</div>
</div>
</li>
<li>
<a href="#"><img src="./images/image-avatar.png" alt="user avatar" class="user-avatar" /></a>
</li>
</ul>
</div>
</header>
<main>
<div class="grid grid--columns">
<div class="grid grid--center product-photos">
<div>
<button class="previous-photo"></button>
<button class="next-photo"></button>
<a href="#" class="toggle-photos"><img class="product-big-photo" src="./images/image-product-1.jpg"
alt="product photo - shoes" /></a>
</div>
<div class="flex flex--center product-thumbnails">
<a href="#" class="active thumb" data-number="1">
<img src="./images/image-product-1-thumbnail.jpg" alt="product photo - shoes" />
</a>
<a href="#" class="thumb" data-number="2">
<img src="./images/image-product-2-thumbnail.jpg" alt="product photo - shoes" />
</a>
<a href="#" class="thumb" data-number="3">
<img src="./images/image-product-3-thumbnail.jpg" alt="product photo - shoes" />
</a>
<a href="#" class="thumb" data-number="4">
<img src="./images/image-product-4-thumbnail.jpg" alt="product photo - shoes" />
</a>
</div>
</div>
<div class="grid grid--center">
<div class="container grid">
<h1 class="fs-400 text-orange letter-space-2 uppercase">Sneaker Company</h1>
<h2 class="fs-600 letter-space-3">Fall Limited Edition Sneakers</h2>
<p>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 grid">
<div class="flex flex--center">
<h3 class="fs-500">$125.00</h3>
<h4>50%</h4>
</div>
<p>$250.00</p>
</div>
<form id="form" class="add-to-cart grid" method="post">
<div class="quantity-selector grid">
<button type="button" data-quantity="minus"></button>
<input name="input-quantity" id="input-quantity" type="text" readonly value="1" />
<button type="button" data-quantity="plus"></button>
</div>
<input type="hidden" name="productId" id="product-id" value="1" />
<input type="hidden" name="productName" id="product-name" value="Autumn Limited Edition..." />
<input type="hidden" name="productPrice" id="product-price" value="125.00" />
<button type="submit" class="addToCart grid">Add to cart</button>
</form>
</div>
</div>
</div>
</main>
<!-- Photos fullscreen -->
<div class="grid grid--center photos-fullscreen">
<div class="fs-big-photo">
<button class="fs-close"></button>
<button class="previous-photo"></button>
<button class="next-photo"></button>
<img class="product-big-photo" src="./images/image-product-1.jpg" alt="product photo - shoes" />
</div>
<div class="flex flex--center product-thumbnails">
<a href="#" class="active thumb" data-number="1">
<img src="./images/image-product-1-thumbnail.jpg" alt="product photo - shoes" />
</a>
<a href="#" class="thumb" data-number="2">
<img src="./images/image-product-2-thumbnail.jpg" alt="product photo - shoes" />
</a>
<a href="#" class="thumb" data-number="3">
<img src="./images/image-product-3-thumbnail.jpg" alt="product photo - shoes" />
</a>
<a href="#" class="thumb" data-number="4">
<img src="./images/image-product-4-thumbnail.jpg" alt="product photo - shoes" />
</a>
</div>
</div>
<div class="attribution">Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend
Mentor</a>. Coded by <a href="https://github.com/diegoflorenca">Diego Felipe Florença</a>.</div>
</body>
</html>