challenge-landing-page/css/style.css

275 lines
4.3 KiB
CSS
Raw Normal View History

2022-10-12 01:07:45 +00:00
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");
* {
padding: 0;
margin: 0;
font-family: "Inter", sans-serif;
2022-10-11 19:06:41 +00:00
}
2022-10-13 02:39:25 +00:00
/*--------------------Header-------------------------------*/
2022-10-12 01:07:45 +00:00
.header-logo {
background-color: black;
display: flex;
justify-content: center;
2022-10-14 00:15:17 +00:00
padding: 2em 0;
2022-10-11 19:06:41 +00:00
}
2022-10-13 02:39:25 +00:00
2022-10-12 01:07:45 +00:00
.header-computer {
width: 100%;
2022-10-14 00:15:17 +00:00
height: 700px;
object-fit: cover;
object-position: bottom;
2022-10-11 20:44:28 +00:00
}
2022-10-13 02:39:25 +00:00
2022-10-12 01:07:45 +00:00
.computers {
width: 100%;
display: flex;
justify-content: center;
margin-top: 73px;
2022-10-11 20:44:28 +00:00
}
2022-10-13 02:39:25 +00:00
2022-10-12 01:07:45 +00:00
.info {
text-align: center;
margin: 73px;
}
2022-10-13 02:39:25 +00:00
2022-10-12 01:07:45 +00:00
p {
font-size: 16px;
font: weight 400px;
text-align: center;
2022-10-14 00:15:17 +00:00
/* line-height: 24px; */
2022-10-12 01:07:45 +00:00
justify-content: center;
2022-10-11 20:44:28 +00:00
}
2022-10-13 02:39:25 +00:00
2022-10-12 01:07:45 +00:00
.text {
margin-top: 28px;
2022-10-11 20:44:28 +00:00
}
2022-10-13 02:39:25 +00:00
2022-10-12 01:07:45 +00:00
.lorem {
font-size: 32px;
font-weight: 400px;
line-height: 38px;
2022-10-11 20:44:28 +00:00
}
2022-10-13 02:39:25 +00:00
2022-10-12 01:07:45 +00:00
.dolor {
font-size: 48px;
font-weight: 500px;
line-height: 58px;
}
2022-10-13 02:39:25 +00:00
2022-10-13 02:31:18 +00:00
/*----------------Section-2--------------------------*/
2022-10-13 00:26:29 +00:00
.square {
box-shadow: 0px 4px 20px #0000003b;
text-align: center;
padding: 1em;
flex: 1 1 250px;
background-color: white;
padding: 3em 0;
align-items: center;
2022-10-14 00:15:17 +00:00
max-width: 500px;
height: 287px;
display: flex;
flex-direction: column;
justify-content: center;
padding: 2em;
max-width: 350px;
gap: 1em;
/* margin: auto; */
2022-10-13 00:26:29 +00:00
}
2022-10-13 02:39:25 +00:00
2022-10-13 00:26:29 +00:00
.container-3 {
2022-10-14 00:15:17 +00:00
margin: auto;
justify-content: center;
2022-10-13 19:09:55 +00:00
margin-top: 6rem;
margin-bottom: 3rem;
2022-10-13 00:26:29 +00:00
display: flex;
gap: 1em;
flex-wrap: wrap;
padding: 1em;
}
2022-10-13 02:39:25 +00:00
/*----------------Section-3--------------------------*/
2022-10-14 00:15:17 +00:00
.container-notebooks img {
width: 100%;
2022-10-13 19:09:55 +00:00
}
2022-10-14 00:15:17 +00:00
.notebook {
width: 100%;
translate: 0px 64px;
margin-top: -62px;
2022-10-12 01:07:45 +00:00
}
2022-10-13 02:39:25 +00:00
2022-10-13 02:31:18 +00:00
/*----------------Section-4--------------------------*/
2022-10-13 02:39:25 +00:00
.container-4 {
2022-10-13 19:09:55 +00:00
margin-top: 62px;
width: 100%;
2022-10-13 01:45:49 +00:00
}
2022-10-13 02:39:25 +00:00
.title {
2022-10-13 01:45:49 +00:00
text-align: center;
font-size: 32px;
font-weight: 600;
}
2022-10-13 02:39:25 +00:00
.text-container {
2022-10-13 01:45:49 +00:00
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
2022-10-13 02:39:25 +00:00
.text-p {
2022-10-13 01:45:49 +00:00
align-items: center;
2022-10-13 19:09:55 +00:00
width: 550px;
2022-10-14 00:15:17 +00:00
/* height: 120px; */
/* line-height: 24px; */
2022-10-13 01:45:49 +00:00
margin-bottom: 50px;
}
2022-10-13 02:39:25 +00:00
.image-final {
2022-10-13 01:45:49 +00:00
display: flex;
justify-content: center;
}
2022-10-13 02:39:25 +00:00
.image-container {
2022-10-14 00:15:17 +00:00
display: flex;
justify-content: center;
margin-bottom: 4rem;
2022-10-13 01:45:49 +00:00
}
2022-10-13 02:39:25 +00:00
.retangle {
2022-10-14 00:15:17 +00:00
max-width: 100%;
object-fit: cover;
}
.rectangle-bottom {
width: 80%;
background-color: red;
height: 200px;
/* max-height: 100px; */
overflow: hidden;
margin: 1em auto;
}
.rectangle-bottom img {
width: 100%;
/* height: 100%; */
/* object-fit: cover; */
object-position: center center;
}
.container-notebooks {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
/* grid-template-columns: 1fr 1fr; */
gap: 1rem;
padding: 2em;
/* background-color: #e0e0e0; */
}
.container-notebooks img {
width: 100%;
translate: 0px 62px;
2022-10-13 01:45:49 +00:00
}
2022-10-13 02:39:25 +00:00
2022-10-13 02:31:18 +00:00
/*----------------Footer--------------------------*/
2022-10-13 02:39:25 +00:00
footer {
2022-10-13 01:45:49 +00:00
background-color: black;
2022-10-14 00:15:17 +00:00
padding: 2em 0;
2022-10-13 02:31:18 +00:00
}
2022-10-13 02:39:25 +00:00
.image-footer {
2022-10-13 01:45:49 +00:00
padding: 1em;
display: flex;
justify-content: center;
gap: 1em;
}
2022-10-13 02:39:25 +00:00
.text-footer {
2022-10-13 02:31:18 +00:00
color: white;
font-size: 10px;
font-weight: 400;
2022-10-13 19:09:55 +00:00
}
2022-10-14 00:15:17 +00:00
/*----------------Responsividade--------------------------*/
@media only screen and (max-width: 700px) {
.text-p {
width: 350px;
height: 152px;
margin-bottom: 6rem;
2022-10-13 19:09:55 +00:00
}
}
2022-10-14 00:15:17 +00:00
@media only screen and (max-width: 1024px) {
.container-notebooks {
grid-template-columns: 1fr 1fr;
}
.container-notebooks-maior {
grid-column: 1/3;
height: 300px;
}
.container-4 {
2022-10-13 19:09:55 +00:00
display: flex;
flex-direction: column;
}
2022-10-14 00:15:17 +00:00
.section-4 {
2022-10-13 19:09:55 +00:00
order: 2;
}
2022-10-14 00:15:17 +00:00
.image-final {
2022-10-13 19:09:55 +00:00
order: 1;
width: 100%;
}
2022-10-14 00:15:17 +00:00
.image-container {
width: 414px;
height: 414px;
object-fit: fill;
2022-10-13 19:09:55 +00:00
}
2022-10-14 00:15:17 +00:00
.retangle {
2022-10-13 19:09:55 +00:00
width: 100%;
object-fit: fill;
2022-10-14 00:15:17 +00:00
transform: scale(-3, 1);
2022-10-13 19:09:55 +00:00
zoom: normal;
}
2022-10-14 00:15:17 +00:00
.header-computer {
2022-10-13 20:55:41 +00:00
position: relative;
object-fit: cover;
2022-10-14 00:15:17 +00:00
height: 700px;
background-color: red;
2022-10-13 20:55:41 +00:00
}
2022-10-14 00:15:17 +00:00
.notebook {
2022-10-13 20:55:41 +00:00
display: grid;
grid-column: 1 / 3;
place-items: center;
width: 100%;
}
2022-10-14 00:15:17 +00:00
.image3 {
2022-10-13 20:55:41 +00:00
display: grid;
place-items: center;
margin-top: 1px;
2022-10-13 19:09:55 +00:00
align-items: center;
justify-content: center;
2022-10-13 20:55:41 +00:00
margin-left: 60%;
2022-10-13 19:09:55 +00:00
}
2022-10-14 00:15:17 +00:00
.rectangle-bottom {
height: 300px;
width: 100%;
}
.rectangle-bottom img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: bottom;
}
}
@media only screen and (min-width: 2500px) {
p {
font-size: 32px;
}
}