Created
March 2, 2022 16:34
-
-
Save JCervantesB/4c6b1bdb69aa7e8cebe0cc4e11b4b63c to your computer and use it in GitHub Desktop.
Gist del CSS del Proyecto Freelancer
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
:root{ | |
--blanco: #FFFFFF; | |
--oscuro: #212121; | |
--primario: #FFC107; | |
--secundario: #0097A7; | |
--gris: #757575; | |
--fuente-principal: 3.8rem; | |
--grisClado: #DFE9F3; | |
} | |
/* Globales */ | |
html { | |
font-size: 62.5%; | |
box-sizing: border-box; | |
scroll-snap-type: y mandatory; | |
} | |
*, *::before, *::after{ | |
box-sizing: inherit; | |
} | |
body { | |
font-size: 1.6rem; | |
font-family: 'Krub', sans-serif; | |
background-image: linear-gradient(to top, var(--grisClado) 10%, var(--blanco) 100%); | |
} | |
.contenedor { | |
max-width: 120rem; | |
margin: 0 auto 0 auto; | |
} | |
.boton{ | |
background-color: var(--secundario); | |
color: var(--blanco); | |
padding: 1rem 3rem; | |
margin-top: 1rem; | |
font-size: 2rem; | |
text-decoration: none; | |
text-transform: uppercase; | |
font-weight: 700; | |
border-radius: .5rem; | |
width: 80%; | |
text-align: center; | |
border: none; | |
} | |
.boton:hover { | |
cursor: pointer; | |
} | |
@media (min-width: 768px) { | |
.boton{ | |
width: auto; | |
} | |
} | |
.sombra { | |
box-shadow: 0px 5px 15px 0px rgba(112,112,112,0.48); | |
background-color: var(--blanco); | |
padding: 2rem; | |
border-radius: 1rem; | |
} | |
/* Tipografia */ | |
h1{ | |
font-size: 3.8rem; | |
} | |
h2{ | |
font-size: 2.8rem; | |
} | |
h3 { | |
font-size: 1.8rem; | |
} | |
h1,h2,h3 { | |
text-align: center; | |
} | |
/* Titulos */ | |
.titulo span { | |
font-size: 2rem; | |
} | |
/*Utilidades*/ | |
.w-100 { | |
width: 100%; | |
} | |
@media (min-width: 768px) { | |
.w-100 { | |
width: auto; | |
} | |
} | |
.flex { | |
display: flex; | |
} | |
.alinear-derecha { | |
justify-content: flex-end; | |
} | |
/* Navegacion */ | |
.nav-bg { | |
background-color: var(--secundario); | |
} | |
.navegacion-principal { | |
display: flex; | |
flex-direction: column; | |
justify-content: space-evenly; | |
} | |
.navegacion-principal a{ | |
display: block; | |
text-align: center; | |
color: var(--blanco); | |
text-decoration: none; | |
font-size: 1.8rem; | |
font-weight: 700; | |
padding: 1rem; | |
text-transform: uppercase; | |
} | |
.navegacion-principal a:hover { | |
background-color: var(--primario); | |
color: var(--oscuro) | |
} | |
@media (min-width: 768px) { | |
.navegacion-principal{ | |
flex-direction: row; | |
} | |
} | |
/* Hero */ | |
.hero { | |
background-image: url('../img/hero.jpg'); | |
background-repeat: no-repeat; | |
background-size: cover; | |
height: 450px; | |
position: relative; | |
margin-bottom: 2rem; | |
} | |
.contenido-hero { | |
background-color: rgba(0, 0, 0, 0.7); /** anterior **/ | |
background-color: rgb(0 0 0 / 70%); | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
justify-content: center; | |
} | |
.contenido-hero h2, | |
.contenido-hero p { | |
color: var(--blanco) | |
} | |
.contenido-hero .ubicacion { | |
display: flex; | |
align-items: flex-end; | |
} | |
.servicio, | |
.navegacion-principal, | |
.formulario { | |
scroll-snap-align: center; | |
scroll-snap-stop: always; | |
} | |
/*Servicios*/ | |
@media (min-width: 768px) { | |
.servicios { | |
display: grid; | |
grid-template-columns: repeat(3, 1fr); | |
column-gap: 1rem; | |
} | |
} | |
.servicio { | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
} | |
.servicio h3 { | |
color: var(--secundario); | |
font-weight: normal; | |
} | |
.servicio p { | |
line-height: 2; | |
} | |
.servicio .iconos { | |
height: 15rem; | |
width: 15rem; | |
background-color: var(--primario); | |
border-radius: 50%; | |
display: flex; | |
justify-content: space-evenly; | |
align-items: center; | |
} | |
/*Formulario*/ | |
.formulario { | |
background-color: var(--gris); | |
width: min(60rem, 100%); /*utilizar el valor mas pequeño, es bastante util utilizarla*/ | |
margin: 0 auto; | |
padding: 2rem; | |
border-radius: 1rem; | |
} | |
.formulario fieldset { | |
border: none; | |
} | |
.formulario legend { | |
text-align: center; | |
font-size: 1.8; | |
text-transform: uppercase; | |
font-weight: 700; | |
margin-bottom: 2rem; | |
color: var(--primario); | |
} | |
@media (min-width: 768px) { | |
.contenedor-campos { | |
display: grid; | |
grid-template-columns: 50% 50%; | |
grid-template-rows: auto auto 20rem; | |
column-gap: 1rem; | |
} | |
.campo:nth-child(3), | |
.campo:nth-child(4) { | |
grid-column: 1 / 3; | |
} | |
} | |
.campo { | |
margin-bottom: 1rem; | |
} | |
.campo label { | |
color: var(--blanco); | |
font-weight: bold; | |
margin-bottom: .5rem; | |
display: block; | |
} | |
.campo textarea { | |
height: 18rem; | |
} | |
.input-text { | |
width: 100%; | |
border: none; | |
padding: 1.5rem; | |
border-radius: .5rem; | |
} | |
.enviar .boton { | |
width: 100%; | |
} | |
.footer p { | |
text-align: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment