From 56df549e7c493a56b6ba31e7323b862220e2f0ef Mon Sep 17 00:00:00 2001 From: Luiz Felipe Silva Date: Thu, 13 Oct 2022 21:05:22 -0300 Subject: [PATCH 1/3] feat(home): adicionado fonte. --- src/assets/font/fonte.css | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/assets/font/fonte.css diff --git a/src/assets/font/fonte.css b/src/assets/font/fonte.css new file mode 100644 index 0000000..0e5e757 --- /dev/null +++ b/src/assets/font/fonte.css @@ -0,0 +1 @@ +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap'); \ No newline at end of file From 346c3bdda52ddcce5295c693650b6de336de239a Mon Sep 17 00:00:00 2001 From: Luiz Felipe Silva Date: Thu, 13 Oct 2022 21:06:26 -0300 Subject: [PATCH 2/3] feat(home): criado a estrutura HTML da section2. --- index.html | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/index.html b/index.html index b81e34c..1096710 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,8 @@ + + Landing Page - M3 Academy @@ -21,5 +23,56 @@ Notebook na mesa Notebook na mesa + +
+
+
+

Lorem ipsum

+

dolor sit amet

+ +

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Curabitur ut tortor sed lacus egestas vulputate vel sit amet velit. Nulla suscipit magna dui. +

+ +
+ Computadores +
+
+ + + +
+
+
+ Loja + +
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. +
+
+
+ +
+
+ Bolsa + +
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. +
+
+
+ +
+
+ Moeda + +
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. +
+
+
+
+
+
\ No newline at end of file From 7b1bd08403636d0d8864603bc067256c2a304d0b Mon Sep 17 00:00:00 2001 From: Luiz Felipe Silva Date: Thu, 13 Oct 2022 21:06:38 -0300 Subject: [PATCH 3/3] feat(home): criado o estilo CSS da section2. --- src/assets/css/style.css | 152 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 146 insertions(+), 6 deletions(-) diff --git a/src/assets/css/style.css b/src/assets/css/style.css index 0c886db..ec9a5c6 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -1,8 +1,16 @@ +@import url('../font/fonte.css'); + /* GLOBAL */ + * { box-sizing: border-box; padding: 0; margin: 0; + font-family: 'Inter', sans-serif; +} + +body { + background-color: #E5E5E5; } /* HEADER */ @@ -23,17 +31,149 @@ header a { .section1 img { width: 100%; - height: 36%; + padding-top: 50px; } -@media screen and (max-width: 425px) { - .fundo-desktop { - display: none; +/* SECTION 2 */ + +.section2 { + display: flex; + justify-content: center; + text-align: center; + margin: 0 auto; + padding: 50px 0; + flex-wrap: wrap; +} + +.text-title { + font-size: 48px; + font-weight: 500; + text-transform: uppercase; +} + +.text-subtitle { + font-size: 32px; + text-transform: uppercase; + font-weight: 400; +} + +.text-paragraph { + padding-top: 20px; + max-width: 60%; + margin: 0 auto; + line-height: 24px; +} + +.img-computers img { + width: 16%; + padding: 70px 0; +} + +.container-cards { + display: flex; + justify-content: center; + gap: 21px; +} + +.card { + background-color: #fff; + box-shadow: 0px 4px 20px 0px #0000003B; + padding: 20px; + max-width: 20%; +} + +.card img { + padding: 15px; +} + +.card figure img { + max-width: 50%; +} + +figcaption { + line-height: 24px; +} + +/* TELAS GRANDES */ + +@media only screen and (min-width: 1440px) { + .text-subtitle { + font-size: 64px; + } + + .text-title { + font-size: 96px; + } + + .text-paragraph { + font-size: 32px; + line-height: 48px; + } + + .card figure figcaption { + font-size: 32px; + line-height: 48px; } } -@media screen and (min-width: 426px) { +/* TABLET */ + +@media only screen and (min-width: 481px) and (max-width: 900px) { + .img-computers img { + width: 30%; + } + + .text-paragraph { + max-width: 80%; + } + + .container-cards { + width: 80%; + margin: 0 auto; + } + + .card { + max-width: 70%; + } +} + +/* CELULAR */ + +@media screen and (min-width: 481px) { .fundo-mobile { display: none; } -} \ No newline at end of file +} + +@media screen and (max-width: 480px) { + .fundo-desktop { + display: none; + } + + .text-title { + font-size: 28px; + } + + .text-subtitle { + font-size: 20px; + } + + .text-paragraph { + max-width: 90%; + line-height: 24px; + } + + .container-cards { + flex-direction: column; + } + + .card { + max-width: 90vw; + margin: 0 auto; + } + + .img-computers img { + width: 70%; + } +} +