Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- body {
- margin: 1.5em;
- font-family: "poppins", sans-serif;
- }
- a {
- text-decoration: none;
- font-size: 1.3rem;
- }
- .hero-img {
- position: absolute;
- top: 0;
- left: 0;
- background: url("../images/shoe.jpg");
- width: 100%;
- height: 100%;
- z-index: -1;
- background-size: cover;
- background-position-x: 20%;
- background-position-y: 20%;
- animation: introLoad 2s forwards;
- }
- .logo {
- color: white;
- font-weight: bold;
- }
- nav {
- position: fixed;
- right: 0;
- top: 0;
- background: white;
- height: 100vh;
- width: 50%;
- z-index: 999;
- text-transform: uppercase;
- transform: translatex(100%);
- transition: transform 0.5s ease-in-out;
- ul {
- list-style-type: none;
- padding: 0;
- margin-top: 8em;
- a {
- color: black;
- padding: 0.75em 2em;
- display: block;
- &:hover {
- background: rgb(238, 234, 234);
- }
- }
- }
- .close {
- float: right;
- margin: 2em;
- width: 2.5em;
- top: 3em;
- }
- }
- header {
- display: flex;
- justify-content: space-between;
- svg {
- width: 2.5em;
- margin: -0.6em;
- cursor: pointer;
- }
- }
- h1 {
- font-size: 3rem;
- margin-top: 2em;
- line-height: 3.3rem;
- }
- .subhead {
- font-size: 1.4rem;
- }
- section.hero {
- color: white;
- height: 90vh;
- animation: moveDown 1s ease-in-out forwards;
- opacity: 0;
- .down-arrow {
- stroke: white;
- position: absolute;
- bottom: 5em;
- width: 1em;
- animation: moveArrow 1s alternate-reverse infinite;
- path {
- fill: white;
- }
- }
- }
- .more-info {
- img {
- width: 100%;
- object-fit: cover;
- height: 11em;
- }
- .title {
- font-weight: bold;
- font-size: 1.25;
- }
- .desc {
- line-height: 1.5rem;
- }
- }
- .open-nav {
- transform: translateX(0);
- }
- @media only screen and (min-width: 680px) {
- body {
- margin: 1.5em 5em;
- font-family: "poppins", sans-serif;
- }
- }
- @media only screen and (min-width: 920px) {
- .menu {
- display: none;
- }
- nav {
- transform: translatex(0);
- position: unset;
- display: block;
- width: auto;
- height: auto;
- background: none;
- svg.close {
- display: none;
- }
- ul {
- display: flex;
- margin: 0;
- a {
- color: white;
- padding: 0.5em 1.5em;
- font-size: 0.9rem;
- &:hover {
- background: none;
- text-decoration: underline;
- }
- }
- }
- }
- .hero-img {
- left: unset;
- right: 0;
- width: 50%;
- height: 42em;
- }
- .logo {
- color: black;
- span {
- color: red;
- }
- }
- section.hero {
- color: black;
- height: auto;
- width: 40%;
- margin-bottom: 8em;
- svg.down-arrow {
- stroke: black;
- position: unset;
- padding-top: 2em;
- path {
- fill: black;
- }
- }
- }
- .feature {
- display: grid;
- grid-template-columns: repeat(2, auto);
- gap: 3em;
- margin-bottom: 8em;
- img {
- width: 25em;
- }
- .content {
- text-align: right;
- width: 25em;
- }
- }
- .feature.left {
- grid-template-areas: "left right";
- img {
- grid-area: left;
- }
- .content {
- text-align: left;
- width: 25em;
- justify-self: left;
- }
- }
- }
- @media only screen and (min-width: 920px) {
- .container {
- width: 1200px;
- margin: 0 auto;
- }
- .feature {
- gap: 0;
- }
- }
- @keyframes introLoad {
- from {
- clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
- }
- to {
- clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
- }
- }
- @keyframes moveArrow {
- from {
- transform: translateY(-30px);
- }
- to {
- transform: translateY(0);
- }
- }
- @keyframes moveDown {
- from {
- transform: translateY(-100px);
- }
- to {
- transform: translateY(0);
- opacity: 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement