From 49a538aeb36d42688ce0a383926e7f2132413c4a Mon Sep 17 00:00:00 2001 From: JoseGregorioMataRodriguez Date: Wed, 12 Oct 2022 10:56:11 -0300 Subject: [PATCH] Adiciona top Cards, desktop e mobile --- assets/styles/main.css | 43 ++++++++++++++++++++++++++++++++++++++++-- landingpage.html | 18 +++++++++++++++++- 2 files changed, 58 insertions(+), 3 deletions(-) diff --git a/assets/styles/main.css b/assets/styles/main.css index 4ebef21..420d5eb 100644 --- a/assets/styles/main.css +++ b/assets/styles/main.css @@ -64,20 +64,48 @@ body { align-content: center; } +.top-cards { + background: #FFFFFF; + display: grid; + grid-template-columns: repeat(3, max-content); + gap: 21px; + justify-content: center; + padding: 27px 32px; +} +.top-card { + display: flex; + flex-direction: column; + align-items: center; + box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23); + padding: 36px 26px 34px; + justify-items: center; +} + +.top-card-image { + display: block; + margin-bottom: 26px; +} + +.top-card-desc { + max-width: 300px; + font-size: 16px; + line-height: 24px; + text-align: center; +} /*-----------Breakpoints-----------*/ -@media screen and (max-width: 525px) { +@media screen and (max-width: 600px) { .main-banner-desktop { display: none; } } -@media screen and (min-width: 526px) { +@media screen and (min-width: 601px) { .main-banner-mobile { display: none; } @@ -100,4 +128,15 @@ body { padding-right: 29px; padding-bottom: 65px; } +} +@media screen and (max-width: 1024px) { + .top-cards { + grid-template-columns: 1fr; + } + + .top-card { + max-width: 350px; + margin: 0 auto; + } +} diff --git a/landingpage.html b/landingpage.html index 800465a..722351b 100644 --- a/landingpage.html +++ b/landingpage.html @@ -45,8 +45,24 @@ Banner Top - +
+
+ Image do primeiro card do topo +

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.

+
+ +
+ Image do segundo card do topo +

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.

+
+ +
+ Image do terceiro card do topo +

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.

+
+ +