2023-05-28 18:07:28 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2023-05-28 18:45:05 -07:00
|
|
|
<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 | Product preview card component</title>
|
|
|
|
|
|
|
|
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
|
|
|
|
<style>
|
2023-05-28 19:41:22 -07:00
|
|
|
.attribution { font-size: 11px; text-align: center; margin-bottom: 10px; }
|
2023-05-28 18:45:05 -07:00
|
|
|
|
|
|
|
.attribution a { color: hsl(228, 45%, 44%); }
|
|
|
|
</style>
|
2023-05-28 19:09:32 -07:00
|
|
|
|
|
|
|
<!-- Google Fonts -->
|
|
|
|
<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,wght@9..144,700&family=Montserrat:wght@500;700&display=swap"
|
|
|
|
rel="stylesheet"
|
|
|
|
>
|
2023-05-28 18:45:05 -07:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2023-05-28 19:41:22 -07:00
|
|
|
<div class="wrapper">
|
|
|
|
<main class="ProductCard">
|
|
|
|
<picture>
|
|
|
|
<source media="(max-width: 999px)" srcset="images/image-product-mobile.jpg">
|
|
|
|
<source media="(min-width: 1000px)" srcset="images/image-product-desktop.jpg">
|
|
|
|
<img
|
|
|
|
src="images/image-product-desktop.jpg"
|
|
|
|
alt="Gabrielle Essence perfume bottle"
|
|
|
|
class="ProductCard-picture"
|
|
|
|
>
|
|
|
|
</picture>
|
2023-05-28 18:45:05 -07:00
|
|
|
|
2023-05-28 20:45:21 -07:00
|
|
|
<section class="ProductCard-body">
|
|
|
|
<div class="ProductCard-category">Perfume</div>
|
2023-05-28 18:45:05 -07:00
|
|
|
|
2023-05-28 20:45:21 -07:00
|
|
|
<h1 class="ProductCard-title">Gabrielle Essence Eau De Parfum</h1>
|
2023-05-28 18:45:05 -07:00
|
|
|
|
2023-05-28 20:45:21 -07:00
|
|
|
<p class="ProductCard-description">
|
|
|
|
A floral, solar and voluptuous interpretation composed by Olivier Polge, Perfumer-Creator
|
|
|
|
for
|
|
|
|
the House of CHANEL.
|
|
|
|
</p>
|
2023-05-28 18:45:05 -07:00
|
|
|
|
2023-05-28 20:45:21 -07:00
|
|
|
<div class="ProductCard-priceContainer">
|
|
|
|
<span class="ProductCard-price">$149.99</span>
|
|
|
|
<span class="ProductCard-price--discounted">$169.99</span>
|
|
|
|
</div>
|
2023-05-28 19:22:47 -07:00
|
|
|
|
2023-05-28 21:27:20 -07:00
|
|
|
<button class="ProductCard-addToCart">
|
|
|
|
<img src="images/icon-cart.svg" alt="Cart icon">
|
|
|
|
<span>Add to Cart</span>
|
|
|
|
</button>
|
2023-05-28 20:45:21 -07:00
|
|
|
</section>
|
2023-05-28 19:41:22 -07:00
|
|
|
</main>
|
|
|
|
</div>
|
2023-05-28 18:45:05 -07:00
|
|
|
|
|
|
|
<div class="attribution">
|
|
|
|
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend
|
|
|
|
Mentor</a>.
|
2023-05-28 19:22:47 -07:00
|
|
|
Coded by <a href="https://punkfairie.net">Marley Rae</a>.
|
2023-05-28 18:45:05 -07:00
|
|
|
</div>
|
2023-05-28 19:41:22 -07:00
|
|
|
|
|
|
|
<script src="./src/main.ts" type="module"></script>
|
2023-05-28 18:45:05 -07:00
|
|
|
</body>
|
2023-05-28 18:07:28 -07:00
|
|
|
</html>
|