diff --git a/assets/images/top-card-image.png b/assets/images/top-card-image-desktop.png similarity index 100% rename from assets/images/top-card-image.png rename to assets/images/top-card-image-desktop.png diff --git a/assets/images/top-card-image-mobile.png b/assets/images/top-card-image-mobile.png new file mode 100644 index 0000000..c3eca9b Binary files /dev/null and b/assets/images/top-card-image-mobile.png differ diff --git a/assets/styles/style.css b/assets/styles/style.css index 4a304cd..8b038fa 100644 --- a/assets/styles/style.css +++ b/assets/styles/style.css @@ -14,7 +14,7 @@ body { display: flex; align-items: center; justify-content: center; - padding: 29px 0; + padding: 28px 0; background-color: #000000; } @@ -40,7 +40,6 @@ body { .top-infocard-subtitle { text-transform: uppercase; - font-weight: 400; font-size: 32px; line-height: 39px; @@ -71,8 +70,10 @@ body { .top-cards { display: flex; - margin-top: 179px; - gap: 23px; + align-items: center; + justify-content: center; + padding: 179px 0 80px; + gap: 21px; } .top-card { @@ -82,11 +83,13 @@ body { justify-content: center; background: #FFFFFF; box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23); - padding: 50px 25px 27px; + padding: 26px 26px 34px; + max-width: 350px; } .top-card-image { - width: 103px;; + display: block; + margin-bottom: 27px; } .top-card-description { @@ -97,15 +100,45 @@ body { } @media screen and (max-width: 414px) { - .main-banner-desktop { + .main-banner-desktop, + .top-card-image-desktop { display: none; } } @media screen and (min-width: 415px) { - .main-banner-mobile { + .main-banner-mobile, + .top-card-image-mobile { display: none; } } +@media screen and (max-width: 992px) { + .top-infocard{ + display: flex; + text-align: center; + justify-content: center; + flex-direction: column; + padding: 73px 29px 65px; + } + + .top-infocard-text { + max-width: 357px; + } + + .top-infocard-subtitle { + font-size: 20px; + } + + .top-infocard-title { + font-size: 28px; + line-height: 1; + } + + .top-infocard-image { + width: 100%; + max-width: 239px; + } +} + diff --git a/index.html b/index.html index 4eae815..5158c73 100644 --- a/index.html +++ b/index.html @@ -42,11 +42,12 @@ tortor sed lacus egestas vulputate vel sit amet velit. Nulla suscipit magna dui.

+ Card do top + Card do top + + - Card do top - - -
+
Primeiro card do topo

@@ -67,9 +68,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.

-
- - +