-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
95 lines (90 loc) · 3.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Product preview card with ARIA, semantic html, CSS custom properties and Flex"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<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=Fraunces:opsz,[email protected],700&family=Montserrat:wght@500;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./css/style.css" />
<title>Product preview card component</title>
</head>
<body>
<main>
<article class="product" aria-label="Product">
<div class="product-container">
<div class="product-image">
<img
src="images/image-product-mobile.jpg"
alt="Floral perfume laying on its side on white background amongst leaves."
/>
</div>
<div class="product-content">
<section class="product-header" aria-label="Product header">
<p class="product-category">
<span class="visually-hidden">Product category: </span>
Perfume
</p>
<h1 class="product-title">
<span class="visually-hidden">Product title: </span>
Gabrielle Essence Eau De Parfum
</h1>
</section>
<p class="product-description">
<span class="visually-hidden">Product description: </span>
A floral, solar and voluptuous interpretation composed by Olivier
Polge, Perfumer-Creator for the House of CHANEL.
</p>
<section class="product-footer" aria-label="Product footer">
<div class="product-price-container">
<p class="product-price">
<span class="visually-hidden">Current price: </span>
$149.99
</p>
<p class="product-old-price">
<span class="visually-hidden">Original price: </span>
<s>$169.99</s>
</p>
</div>
<button
type="button"
class="add-to-cart"
>
<img src="./images/icon-cart.svg" alt="Shopping cart icon" />
<span>Add to Cart</span>
</button>
</section>
</div>
</div>
</article>
</main>
<div class="attribution" role="contentinfo">
<!-- Using noopener attribute in order to prevent the page being linked to from obtanining
access to our page, very important for security -->
Challenge by
<a
href="https://www.frontendmentor.io?ref=challenge"
rel="noopener"
target="_blank"
>Frontend Mentor</a
>
. Coded by
<a href="https://github.com/Kyr27" rel="noopener" target="_blank"
>Stefan</a
>.
</div>
</body>
</html>