This commit is contained in:
parent
ed7fb975af
commit
37cfcee457
2 changed files with 43 additions and 26 deletions
|
@ -41,16 +41,18 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container" role="main">
|
<div class="container" role="main">
|
||||||
<img
|
<div class="img-container">
|
||||||
class="hero-img"
|
<img
|
||||||
src="./images/image-product-mobile.jpg"
|
class="hero-img"
|
||||||
srcset="
|
src="./images/image-product-mobile.jpg"
|
||||||
./images/image-product-desktop.jpg 800w,
|
srcset="
|
||||||
./images/image-product-mobile.jpg 600w
|
./images/image-product-desktop.jpg 800w,
|
||||||
"
|
./images/image-product-mobile.jpg 600w
|
||||||
sizes=" (max-width: 650px) 600px, 800px"
|
"
|
||||||
alt="picture of perfume"
|
sizes=" (max-width: 800px) 600px, 800px"
|
||||||
/>
|
alt="picture of perfume"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h3>PERFUME</h3>
|
<h3>PERFUME</h3>
|
||||||
<h1>Gabrielle Essence Eau De Parfum</h1>
|
<h1>Gabrielle Essence Eau De Parfum</h1>
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background-color: hsl(30, 38%, 92%);
|
background-color: hsl(30, 38%, 92%);
|
||||||
font-size: 18px;
|
font-size: 16px;
|
||||||
|
--padding-content: 0 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
html,
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -13,54 +13,64 @@ body {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
font-family: "Montserrat", serif;
|
font-family: "Montserrat", serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
.container {
|
.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 2.5em 2em 0 2em;
|
padding: 2.5em 2em 0 2em;
|
||||||
|
max-width: 600px;
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
justify-content: space-around;
|
||||||
background-color: hsl(0, 0%, 100%);
|
background-color: hsl(0, 0%, 100%);
|
||||||
padding: 2em;
|
|
||||||
border-radius: 0 0 0.5em 0.5em;
|
border-radius: 0 0 0.5em 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content h3,
|
.content h3,
|
||||||
p {
|
p {
|
||||||
font-size: 1.5em;
|
|
||||||
color: hsl(228, 12%, 48%);
|
color: hsl(228, 12%, 48%);
|
||||||
|
font-size: 1rem;
|
||||||
|
padding: var(--padding-content);
|
||||||
}
|
}
|
||||||
|
|
||||||
.content h3 {
|
.content h3 {
|
||||||
letter-spacing: 0.2em;
|
letter-spacing: 0.2em;
|
||||||
|
padding: 0 1.2em;
|
||||||
}
|
}
|
||||||
.content p {
|
.content p {
|
||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 1.6em;
|
font-size: 1.2rem;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
padding: var(--padding-content);
|
||||||
}
|
}
|
||||||
|
|
||||||
.content h1 {
|
.content h1 {
|
||||||
font-size: 3.5em;
|
font-size: 2rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-family: "Fraunces", serif;
|
font-family: "Fraunces", serif;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0 0.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-img {
|
.hero-img {
|
||||||
border-radius: 0.5em 0.5em 0 0;
|
border-radius: 0.5em 0.5em 0 0;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
}
|
||||||
|
.img-container {
|
||||||
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.price {
|
.price {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
|
padding: var(--padding-content);
|
||||||
}
|
}
|
||||||
|
|
||||||
.price h2,
|
.price h2,
|
||||||
|
@ -70,19 +80,19 @@ span {
|
||||||
}
|
}
|
||||||
|
|
||||||
.price h2 {
|
.price h2 {
|
||||||
font-size: 3.5em;
|
font-size: 2rem;
|
||||||
font-family: "Fraunces", serif;
|
font-family: "Fraunces", serif;
|
||||||
color: hsl(158, 36%, 37%);
|
color: hsl(158, 36%, 37%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.price span {
|
.price span {
|
||||||
font-size: 1.5em;
|
font-size: 1.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
|
margin: 1.725em;
|
||||||
padding: 0.8em;
|
padding: 0.8em;
|
||||||
margin-top: 1em;
|
font-size: 1rem;
|
||||||
font-size: 1.5em;
|
|
||||||
font-family: "Montserrat", serif;
|
font-family: "Montserrat", serif;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: hsl(0, 0%, 100%);
|
color: hsl(0, 0%, 100%);
|
||||||
|
@ -110,16 +120,21 @@ span {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 60vw;
|
|
||||||
align-self: center;
|
align-self: center;
|
||||||
|
/*max-width: 600px;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.container > * {
|
||||||
|
flex: 1;
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
width: 50%;
|
|
||||||
border-radius: 0 0.5em 0.5em 0;
|
border-radius: 0 0.5em 0.5em 0;
|
||||||
}
|
}
|
||||||
.hero-img {
|
.hero-img {
|
||||||
width: 50%;
|
|
||||||
border-radius: 0.5rem 0 0 0.5em;
|
border-radius: 0.5rem 0 0 0.5em;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
.content p {
|
||||||
|
line-height: 1em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue