-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
146 lines (123 loc) · 6.14 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
<!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 href="https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@400;700&display=swap" rel="stylesheet">
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<link rel="stylesheet" href="stylesheet.css" class="">
<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>
<!-- Aufgrund der Stapellogik MUSS der hamburger hinter das nav! -->
<button class="hamburger" id="hamburger" aria-label="menu-button" aria-controls="navigation" aria-expanded="false" onclick="myFunction(this)">
<div role="presentation" class="bar1"></div>
<div role="presentation" class="bar2"></div>
<div role="presentation" class="bar3"></div>
</button>
<nav id="navigation" aria-hidden="true">
<ul class="menu fs-menu-text ls-menu-text" role="menu">
<li><a href="#">Collections</a></li>
<li><a href="#">Men</a></li>
<li><a href="#">Women</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<img class="logo" src="images/logo.svg" alt="Logo of the brand sneakers">
<button id="icon-of-shopping-cart" aria-label="open cart preview" aria-controls="cart-preview" aria-expanded="false">
<img class="icon-of-shopping-cart" src="images/icon-cart.svg" alt="icon cart">
</button>
<img class="avatar-img" src="images/image-avatar.png" alt="avatar">
<!-- cart-preview here -->
<div class="cart-preview" id="cart-preview" aria-hidden="true">
<div class="cart-title">
<p>Cart</p>
<button class="closing-cross" id="close-cart" role="button" aria-label="close cart preview and return to page">×</button>
</div>
<div class="cart-content">
<p id="empty">Your cart is empty</p>
<div class="content-list" id="content-list-">
<img class="icon-of-choosen-product" src="images/image-product-1-thumbnail.jpg" alt="icon of choosen product">
<p class="description-of-choosen-products">Fall Limited Edition Sneakers $125 x
<span id="number-of-items-in-cart">0</span>
<span class="total-price-in-cart" id="total-price-in-cart">0</span>
</p>
<button id="delete-cart" aria-label="empty the cart"><img src="images/icon-delete.svg" role="presentation" alt="delete button"></button>
</div>
</div>
<button class="checkout" id="checkout-button">Checkout</button>
</div>
</header>
<main>
<section class="banner" id="banner">
<div class="slider" id="slider-">
<button class="button-next" id="button-next" aria-label="next picture"><img src="images/icon-next.svg" alt=""></button>
<button class="button-prev" id="button-prev" aria-label="previous picture"><img src="images/icon-previous.svg" alt=""></button>
<ul class="all-slides">
<li class="slide">
<img src="images/image-product-1.jpg" alt="product picture">
</li>
<li class="slide">
<img src="images/image-product-2.jpg" alt="product picture">
</li>
<li class="slide">
<img src="images/image-product-3.jpg" alt="product picture">
</li>
<li class="slide">
<img src="images/image-product-4.jpg" alt="product picture">
</li>
</ul>
</div>
<div class="thumbnail-gallery" id="thumbnail-gallery-">
<img src="images/image-product-1-thumbnail.jpg" alt="product picture thumbnail" onclick="goTo(1)">
<img src="images/image-product-2-thumbnail.jpg" alt="product picture thumbnail" onclick="goTo(2)">
<img src="images/image-product-3-thumbnail.jpg" alt="product picture thumbnail" onclick="goTo(3)">
<img src="images/image-product-4-thumbnail.jpg" alt="product picture thumbnail" onclick="goTo(4)">
</div>
</section>
<section class="product">
<div class="product-description">
<h2 class="fs-secondary-heading ls-secondary-heading f-color-secondary-heading">sneaker company</h2>
<h1 class="fs-primary-heading ls-primary-heading ">Fall Limited Edition Sneakers</h1>
<p class="fs-main-text ls-main-text f-color-main-text">
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>
<div class="prices">
<p class="current-price fs-price ls-prcie">$125.00</p>
<p class="discount">50%</p>
<p class="old-price f-color-old-price">$250</p>
</div>
<div class="cart">
<div class="new-items-to-cart">
<button class="decrease" id="decrease" aria-label="decrease amount" onclick="collect(-1)"><img src="images/icon-minus.svg" alt=""></button>
<p class="number-of-items-to-add" id="number-of-items-to-add">1</p>
<button class="increase" id="increase" aria-label="increase amount" onclick="collect(1)"><img src="images/icon-plus.svg" alt=""></button>
</div>
<button class="add-to-cart" id="add-to-cart"><img src="images/icon-cart-white.svg" alt="" onclick="updateCart">Add to cart</button>
</div>
</section>
<!-- modal here -->
<div class="modal" id="modal">
<div class="modal-content" id="modal-content-">
<span class="close">×</span>
<!-- put the slider here via javascript -->
</div>
</div>
</main>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="#">Harm Intemann</a>.
</div>
<script src="main.js"></script>
<script src="slider.js"></script>
<script src="swiped-events.min.js"></script>
</body>
</html>