Create shop page

Make components: poster, poster product
This commit is contained in:
2021-10-27 22:48:31 +02:00
parent ad1b57fef2
commit 68f9743f17
9 changed files with 492 additions and 8 deletions

183
src/style/pages/_shop.scss Normal file
View File

@@ -0,0 +1,183 @@
.shop-page {
// Header
header {
// display: flex;
display: none;
position: fixed;
bottom: 0;
width: 100%;
justify-content: center;
align-items: center;
// Shop
p {
position: absolute;
left: 0;
bottom: 0;
}
// Navigation
ul {
display: flex;
li {
display: block;
}
a {
text-decoration: none;
font-size: rem(24px);
font-family: $font-serif;
color: $color-tertiary;
margin: 0 12px;
}
}
// Cart
span {
position: absolute;
right: 0;
bottom: 0;
}
}
// Intro
&__intro {
position: relative;
height: 80vh;
min-height: 800px;
overflow: hidden;
// Background Image
picture {
width: 100%;
height: 100%;
img {
display: block;
object-fit: cover;
width: 100%;
height: 100%;
}
}
// Site Title
h1 {
font-size: clamp(#{rem(88px)}, 10vw, #{rem(140px)});
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
text-align: center;
span, strong {
color: #fff;
}
}
}
// About
&__about {
background-color: $color-cream;
color: $color-text;
padding: 120px 0;
.description {
grid-column: 3 / span 12;
max-width: 560px;
font-weight: 300;
}
}
// Posters
&__posters {
padding: 120px 0;
// Title
h3 {
grid-column: 3 / span 7;
font-family: $font-serif;
color: $color-cream;
font-size: rem(48px);
line-height: 1.1;
}
// Posters Set
.set {
--gap: 24px;
grid-column: 2 / span 22;
display: block;
@include bp (mob-lg) {
--gap: 32px;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--gap);
}
@include bp (md) {
grid-template-columns: repeat(3, 1fr);
}
@include bp (sd) {
--gap: 48px;
grid-template-columns: repeat(4, 1fr);
}
.poster {
// 2 columns
&:nth-child(2n + 1) {
@include bp (sm, max) {
margin-top: calc(var(--gap) * 2);
}
}
// 3 columns
&:nth-child(3n + 1) {
@include bp (sd, max) {
margin-top: calc(var(--gap) * 2);
}
}
&:nth-child(3n + 2) {
@include bp (sd, max) {
margin-top: var(--gap);
}
}
// 4 columns
&:nth-child(4n + 1) {
@include bp (sd) {
margin-top: 64px * 3;
}
}
&:nth-child(4n + 2) {
@include bp (sd) {
margin-top: 64px * 2;
}
}
&:nth-child(4n + 3) {
@include bp (sd) {
margin-top: 64px;
}
}
}
}
// Subscribe
.subscribe {
grid-column: 14 / span 7;
p {
font-size: rem(22px);
color: $color-cream;
font-weight: 300;
line-height: 1.5;
margin-bottom: 30px;
}
.newsletter-form__bottom {
display: none;
}
}
}
}