mirror of
https://github.com/yusufipk/natours-react.git
synced 2026-09-12 03:26:10 +00:00
changed styling and folder structure to sass
This commit is contained in:
@@ -1,89 +0,0 @@
|
||||
.header {
|
||||
height: 95vh;
|
||||
background-image: linear-gradient(
|
||||
to right bottom,
|
||||
rgba(126, 213, 111, 0.8),
|
||||
rgba(40, 180, 133, 0.8)
|
||||
),
|
||||
url(../../commons/images/hero.jpg);
|
||||
background-size: cover;
|
||||
background-position: top;
|
||||
clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.header__text-box {
|
||||
position: absolute;
|
||||
top: 40%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.header__logo-box {
|
||||
position: absolute;
|
||||
top: 4rem;
|
||||
left: 4rem;
|
||||
}
|
||||
|
||||
.header__logo {
|
||||
height: 3.5rem;
|
||||
}
|
||||
|
||||
.heading-primary {
|
||||
color: #ffff;
|
||||
text-transform: uppercase;
|
||||
|
||||
backface-visibility: hidden;
|
||||
margin-bottom: 6rem;
|
||||
}
|
||||
|
||||
.heading-primary--main {
|
||||
display: block;
|
||||
font-size: 6rem;
|
||||
font-weight: 400;
|
||||
letter-spacing: 3.5rem;
|
||||
|
||||
animation: moveInLeft 1s ease-out;
|
||||
}
|
||||
|
||||
.heading-primary--sub {
|
||||
display: block;
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 1.75rem;
|
||||
|
||||
animation: moveInRight 1s ease-out;
|
||||
}
|
||||
|
||||
@keyframes moveInLeft {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateX(-10rem);
|
||||
}
|
||||
|
||||
80% {
|
||||
transform: translateX(1rem);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translate(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes moveInRight {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateX(10rem);
|
||||
}
|
||||
|
||||
80% {
|
||||
transform: translateX(-1rem);
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translate(0);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
import "./header.css";
|
||||
import logoWhite from "../../commons/images/logo-white.png";
|
||||
import Button from "../../components/button/button";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user