Skip to content

Commit

Permalink
html
Browse files Browse the repository at this point in the history
  • Loading branch information
natho19 committed Jul 24, 2023
1 parent d85c2d1 commit 1db4654
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 34 deletions.
24 changes: 24 additions & 0 deletions 003-product-preview-card-component/assets/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* Variables */
:root {
--cream-bg: #f2eae2;
--aurometal-saurus: #6c7289;
--gunmetal: #1c232b;
--deep-aquamarine: #3d8168;
--pure-white: #ffffff;
}

/* General */
*,
*::before,
*::after {
box-sizing: border-box;
}

body {
margin: 0;
background-color: var(--cream-bg);
color: var(--aurometal-saurus);
font-family: 'Montserrat', sans-serif;
font-weight: 500;
font-size: 14px;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
66 changes: 32 additions & 34 deletions 003-product-preview-card-component/index.html
Original file line number Diff line number Diff line change
@@ -1,36 +1,34 @@
<!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 | Product preview card component</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>

Preview

Gabrielle Essence Eau De Parfum

A floral, solar and voluptuous interpretation composed by Olivier Polge,
Perfumer-Creator for the House of CHANEL.

$149.99
$169.99

Add to Cart

<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="#">Your Name Here</a>.
</div>
</body>
</html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png">
<title>Frontend Mentor | Product preview card component</title>
<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:wght@700&family=Montserrat:wght@500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./assets/style.css">
</head>
<body>
<main id="main">
<div class="card">
<picture class="card-image">
<img src="./assets/images/image-product-mobile.jpg" alt="Product image">
</picture>
<div class="card-body">
<span class="card-category">Perfume</span>
<h1 class="card-title">Gabrielle essence eau de parfum</h1>
<p class="card-description">A floral, solar and voluptuous interpretation composed by Olivier Polge, Perfumer-Creator for the House of CHANEL.</p>
<div class="card-price">
<strong class="new-price">$149.99</strong>
<span class="old-price">$169.99</span>
</div>
<button class="card-button">
<img src="./assets/images/icon-cart.svg" alt="Icon cart"> Add to Cart
</button>
</div>
</div>
</main>
</body>
</html>

0 comments on commit 1db4654

Please sign in to comment.