Skip to content

Instantly share code, notes, and snippets.

@chmiiller
Created June 1, 2020 23:06
Show Gist options
  • Save chmiiller/a180605423b27d70606ca38f6d1eafa8 to your computer and use it in GitHub Desktop.
Save chmiiller/a180605423b27d70606ca38f6d1eafa8 to your computer and use it in GitHub Desktop.
Aula01_main_css
:root {
--title-color: #322153;
--primary-color: #34cb79;
}
* {
margin: 0;
padding: 0;
}
html {
font-family: 'Roboto', sans-serif;
}
body {
background: #f0f0f5;
-webkit-font-smoothing: antialiased;
}
a {
text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Ubuntu', sans-serif;
color: var(--title-color);
}
#page-home {
height: 100vh;
background: url('../assets/home-background.svg') no-repeat;
background-position: 35vw bottom;
}
#page-home .content {
width: 90%;
height: 100%;
max-width: 1100px;
margin: 0 auto;
display: flex;
flex-direction: column;
}
#page-home header {
display: flex;
align-items: center;
justify-content: space-between;
}
#page-home header a {
display: flex;
margin-top: 48px;
color: var(--title-color);
font-weight: 700;
}
#page-home header a span {
display: flex;
margin-right: 16px;
background-image: url('../assets/log-in.svg');
width: 20px;
height: 20px;
}
#page-home main {
max-width: 560px;
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
#page-home main h1 {
font-size: 54px;
}
#page-home main p {
font-size: 24px;
line-height: 38px;
margin-top: 24px;
}
#page-home main a {
width: 100%;
max-width: 360px;
height: 72px;
border-radius: 8px;
display: flex;
align-items: center;
margin-top: 40px;
background: var(--primary-color);
transition: 400ms;
}
#page-home main a:hover {
background-color: #2fb86e;
}
#page-home main a span {
width: 72px;
height: 72px;
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
background-color: rgba(0,0,0,0.08);
display: flex;
align-items: center;
justify-content: center;
}
#page-home main a span::after {
content: "";
background-image: url('../assets/search.svg');
width: 20px;
height: 20px;
}
#page-home main a strong {
flex: 1;
color: white;
text-align: center;
}
@media (max-width: 900px) {
#page-home {
background-position-x: 70vw;
}
#page-home .content {
align-items: center;
text-align: center;
}
#page-home header a {
position: absolute;
bottom: 48px;
left: 50%;
transform: translateX(-50%);
}
#page-home main {
align-items: center;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment