Created
February 26, 2019 19:28
-
-
Save Jvalal-zz/909864db34fd2755bfd89b9905ff26a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url('https://fonts.googleapis.com/css?family=Open+Sans'); | |
@import url('https://fonts.googleapis.com/css?family=Lato'); | |
body { | |
font-family: 'Lato', sans-serif; | |
margin: 0; | |
-webkit-font-smoothing: antialiased; | |
font-size: 20px; | |
line-height: 1; | |
} | |
a { | |
color: blueviolet; | |
text-decoration: none; | |
font-weight: 600; | |
} | |
.Hero { | |
background:url('../images/iceberg-bw.jpg'); | |
height: 100vh; | |
background-color: black; | |
background-size: cover; | |
background-position: center; | |
position: relative; | |
} | |
/* .Blackground { | |
position: absolute; | |
height: 500px; | |
width: 500px; | |
left: 100; | |
top: 100px; | |
background-color: rgb(235, 136, 15); | |
background-size: cover; | |
background-position: center; | |
position: relative; | |
opacity: 0; | |
animation: BackgroundAnimation; | |
-webkit-animation: BackgroundAnimation; | |
animation-duration: 2s; | |
animation-delay: 2s; | |
animation-fill-mode: forwards; | |
animation-timing-function: cubic-bezier(0.2, 0.82, 0.165, 1); | |
} */ | |
.HeroGroup { | |
margin: 0 auto; | |
max-width: 800px; | |
padding: 185px 50px; | |
text-align: center; | |
} | |
.Hero h1 { | |
margin: 0; | |
color: rgb(137, 245, 82); | |
font-size: 90px; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
line-height: 1.2; | |
opacity: 0; | |
animation: HeroAnimation; | |
-webkit-animation: HeroAnimation; | |
animation-duration: 2s; | |
animation-delay: 0s; | |
animation-fill-mode: forwards; | |
animation-timing-function: cubic-bezier(0.2, 0.82, 0.165, 1); | |
} | |
.Hero p { | |
color: rgba(255 , 255,255, 0.8 ); | |
font-size: 60px; | |
line-height: 1.5; | |
opacity: 0; | |
animation: HeroAnimation 3s forwards cubic-bezier(0.075, 0.82, 0.165, 1); | |
-webkit-animation: HeroAnimation 3s 0.4s forwards cubic-bezier(0.075, 0.82, 0.165, 1); | |
animation: HeroAnimation; | |
-webkit-animation: HeroAnimation; | |
animation-duration: 2s; | |
animation-delay: 0s; | |
animation-fill-mode: forwards; | |
animation-timing-function: cubic-bezier(0.2, 0.82, 0.165, 1); | |
} | |
.Hero a { | |
font-size: 17px; | |
font-weight: 600; | |
color: white; | |
text-transform: uppercase; | |
background: rgba(0, 0, 0, 0.7); | |
padding: 9px 20px; | |
border: 1px solid rgba(255,255,255,0.25); | |
border-radius: 20px; | |
outline: none; | |
-webkit-border-radius: 20px; | |
-moz-border-radius: 20px; | |
-ms-border-radius: 20px; | |
-o-border-radius: 20px; | |
transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1); | |
-webkit-transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1); | |
-moz-transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1); | |
-ms-transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1); | |
-o-transition: 1s cubic-bezier(0.075, 0.82, 0.165, 1); | |
} | |
.Hero a:hover { | |
outline: none; | |
background: white; | |
color: black; | |
} | |
@media (max-width:640px) { | |
.HeroGroup { | |
padding: 100px 20px; | |
} | |
.Hero h1 { | |
font-size: 40px; | |
} | |
.Hero p { | |
font-size: 24px; | |
} | |
} | |
@keyframes HeroAnimation { | |
0% { | |
opacity: 0; | |
transform: translateY(20px) ; | |
-webkit-transform: translateY(20px) ; | |
-moz-transform: translateY(20px) ; | |
-ms-transform: translateY(20px) ; | |
-o-transform: translateY(20px) ; | |
} | |
100%{ | |
opacity: 1; | |
transform: translateY(0px) ; | |
-webkit-transform: translateY(0px) ; | |
-moz-transform: translateY(0px) ; | |
-ms-transform: translateY(0px) ; | |
-o-transform: translateY(0px) ; | |
} | |
} | |
@keyframes BackgroundAnimation { | |
0% { | |
opacity: 0; | |
transform: translateY(20px) ; | |
-webkit-transform: translateY(20px) ; | |
-moz-transform: translateY(20px) ; | |
-ms-transform: translateY(20px) ; | |
-o-transform: translateY(20px) ; | |
} | |
100%{ | |
opacity: 1; | |
transform: translateY(0px) ; | |
-webkit-transform: translateY(0px) ; | |
-moz-transform: translateY(0px) ; | |
-ms-transform: translateY(0px) ; | |
-o-transform: translateY(0px) ; | |
} | |
} | |
.Hero svg { | |
position: absolute; | |
bottom: 0; | |
left: 0; | |
} | |
.CardGroup { | |
margin: 50px 40px 100px; | |
display: grid; | |
grid-template-columns: repeat(3, 1fr); | |
grid-gap: 40px; | |
justify-items: center; | |
} | |
@media (max-width: 1060px) { | |
.CardGroup { | |
grid-template-columns: repeat(2, 1fr); | |
} | |
} | |
@media (max-width: 720px) { | |
.CardGroup { | |
grid-template-columns: repeat(1, 1fr); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment