diff --git a/assets/images/top-cards-image-01.png b/assets/images/top-cards-image-01.png new file mode 100644 index 0000000..304a1a0 Binary files /dev/null and b/assets/images/top-cards-image-01.png differ diff --git a/assets/images/top-cards-image-02.png b/assets/images/top-cards-image-02.png new file mode 100644 index 0000000..6a87a3b Binary files /dev/null and b/assets/images/top-cards-image-02.png differ diff --git a/assets/images/top-cards-image-03.png b/assets/images/top-cards-image-03.png new file mode 100644 index 0000000..2aded61 Binary files /dev/null and b/assets/images/top-cards-image-03.png differ diff --git a/assets/styles/main.css b/assets/styles/main.css index d610887..0928aac 100644 --- a/assets/styles/main.css +++ b/assets/styles/main.css @@ -54,6 +54,38 @@ body { line-height: 24px; } +.top-cards { + display: grid; + grid-template-columns: repeat(3, max-content); + gap: 20px; + justify-content: center; + padding: 74px 0; + background: #F0F0F0; +} + +.top-card { + display: flex; + flex-direction: column; + align-items: center; + padding: 26px 26px 34px; + background: #FFFFFF; + box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23); +} + +.top-card-image { + display: block; + margin-bottom: 26px; + +} + +.top-card-description { + max-width: 300px; + font-size: 16px; + line-height: 24px; + text-align: center; +} + + @media screen and (max-width: 414px) { .main-banner-desktop { display: none; @@ -84,15 +116,31 @@ body { .top-inforcard-title { margin-bottom: 20px; font-size: 28px; + } + + .top-infocard-image { + width: 100%; + max-width: 240px; + } } -.top-infocard-image { - width: 100%; - max-width: 240px; +@media screen and (min-width: 993px) and (max-width: 1280px) { + .top-infocard-text { + max-width: 520px; + margin-right: 70px; + } } -@media screen and (min-width: 993px) and (max-width: 1280px) { - .top-infocard-text { - max-width: 520px; - margin-right: 70px; +@media screen and (max-width: 768px) { + .top-cards{ + grid-template-columns: 1fr; + padding: 36px 26px; + } + } + +@media screen and (min-width: 769px) and (max-width: 1200px) { + .top-cards{ + grid-template-columns: repeat(2, max-content); + } + } \ No newline at end of file diff --git a/index.html b/index.html index 7ad9f7a..5dcdede 100644 --- a/index.html +++ b/index.html @@ -46,6 +46,30 @@ Banner de Infocard do Topo + +
+
+ Imagem do Primeiro Card do Topo +

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

+
+ +
+ Imagem do Segundo Card do Topo +

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

+
+ +
+ Imagem do Terceiro Card do Topo +

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

+
+ +