Rework Shop's Intro part

This commit is contained in:
2021-10-29 23:48:01 +02:00
parent e3fcfacdbe
commit f5bb095dfb

View File

@@ -1,71 +1,16 @@
.shop-page { .shop-page {
// Header
header {
position: fixed;
// display: flex;
// display: none;
z-index: 20;
bottom: 0;
width: 100%;
justify-content: center;
align-items: center;
background: linear-gradient(180deg, rgba(45, 4, 88, 0) 84.2%, #1E0538 100%);
@include bp (sm) {
display: flex;
}
// Shop
p {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 64px;
}
// Navigation
ul {
position: absolute;
display: flex;
bottom: 24px;
left: 0;
right: 0;
li {
display: block;
}
a {
text-decoration: none;
font-size: rem(22px);
font-family: $font-serif;
color: $color-tertiary;
margin: 0 10px;
&:hover {
color: $color-secondary;
}
@include bp (sm) {
font-size: rem(24px);
margin: 0 12px;
}
}
}
}
// Intro // Intro
&__intro { &__intro {
position: relative; position: relative;
height: 100vh; height: 100vh;
min-height: 800px; min-height: 800px;
overflow: hidden; overflow: hidden;
background-color: $color-primary-darker;
// Top Menu // Top Menu
// Back // Back
.back { .back {
position: absolute; position: absolute;
z-index: 2;
left: 32px; left: 32px;
top: 32px; top: 32px;
color: #fff; color: #fff;
@@ -82,6 +27,7 @@
// Shop // Shop
.shop-title { .shop-title {
position: absolute; position: absolute;
z-index: 2;
top: 32px; top: 32px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
@@ -93,24 +39,11 @@
} }
} }
// Background Image
picture {
width: 100%;
height: 100%;
opacity: 0.55;
img {
display: block;
object-fit: cover;
width: 100%;
height: 100%;
}
}
// Site Title // Site Title
h1 { h1 {
font-size: clamp(#{rem(88px)}, 10vw, #{rem(140px)}); font-size: clamp(#{rem(88px)}, 10vw, #{rem(140px)});
position: absolute; position: absolute;
z-index: 2;
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
@@ -121,6 +54,95 @@
color: #fff; color: #fff;
} }
} }
// Background Image
picture {
position: relative;
display: flex;
align-items: flex-end;
width: 100%;
height: 100%;
background-color: $color-primary-darker;
pointer-events: none;
user-select: none;
img {
opacity: 0.55;
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
// Gradient
&:before {
display: block;
content: "";
position: absolute;
z-index: 1;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(180deg, rgba(45, 4, 88, 0) 84.2%, #1E0538 100%);
}
}
// Navigation
header {
position: absolute;
z-index: 20;
bottom: 0;
width: 100%;
@include bp (md) {
height: 80px;
}
.container {
@include bp (md) {
display: grid;
grid-template-columns: 15% auto 15%;
align-items: flex-end;
gap: 16px;
height: 100%;
padding: 0 32px 32px;
}
}
// Shop
p {
margin-right: auto;
}
// Navigation
nav {
ul {
display: flex;
align-items: center;
justify-content: center;
}
li {
display: block;
}
a {
text-decoration: none;
font-size: rem(22px);
font-family: $font-serif;
color: $color-tertiary;
margin: 0 10px;
&:hover {
color: $color-secondary;
}
@include bp (sm) {
font-size: rem(24px);
margin: 0 12px;
}
}
}
}
} }
// About // About