From 264300afad75fd24c13490abfbddbe446b49e4ff Mon Sep 17 00:00:00 2001 From: MarcelloMartins Date: Wed, 12 Oct 2022 00:51:33 -0300 Subject: [PATCH] fix: fix responsive mobile and desktop middle card and created a second image cards --- assets/images/laptop 1.svg | 14 ++++++++++ assets/images/money.svg | 14 ++++++++++ assets/images/smartphone.svg | 6 +++++ index.html | 30 +++++++++++++++++++++ styles/styles.css | 52 +++++++++++++++++++++++++++++++----- 5 files changed, 110 insertions(+), 6 deletions(-) create mode 100644 assets/images/laptop 1.svg create mode 100644 assets/images/money.svg create mode 100644 assets/images/smartphone.svg diff --git a/assets/images/laptop 1.svg b/assets/images/laptop 1.svg new file mode 100644 index 0000000..7d13645 --- /dev/null +++ b/assets/images/laptop 1.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/assets/images/money.svg b/assets/images/money.svg new file mode 100644 index 0000000..da2a95d --- /dev/null +++ b/assets/images/money.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/assets/images/smartphone.svg b/assets/images/smartphone.svg new file mode 100644 index 0000000..b5c95ab --- /dev/null +++ b/assets/images/smartphone.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/index.html b/index.html index e8c9286..30f11db 100644 --- a/index.html +++ b/index.html @@ -61,5 +61,35 @@ laptop 3 +
+
+ loja + +

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

+
+
+ sacola + +

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

+
+
+ mão com moeda + +

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

+
+
+ mão com moeda + +

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

+
+
\ No newline at end of file diff --git a/styles/styles.css b/styles/styles.css index bf1b893..9371378 100644 --- a/styles/styles.css +++ b/styles/styles.css @@ -87,12 +87,26 @@ body { margin-top: 179px; } +.image-card-image { + display: block; + margin-top: 36px; +} + +.image-card-paragraph { + padding-top: 27px; + padding: 26px; + max-width: 300px; + text-align: center; + font-weight: 400; + font-size: 16px; + line-height: 24px; +} + .midle-card-section { display: flex; background: #E0E0E0; - box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); margin-top: 80px; - + justify-content: center; align-items: center; gap: 40px; } @@ -104,17 +118,42 @@ body { .midle-card-div { display: flex; - align-items: center; gap: 40px; - max-width: 88.44%; + justify-content: center; } -.image-card-image { +.midle-card-section img { + flex-direction: row; + max-width: 50vmin; +} + +.midle-card-section > img { + max-width: 50vmin; +} + +.section-cards-second { + justify-content: center; + align-items: center; + gap: 21px; + display: flex; +} + +.image-card-second { + box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23); + max-width: 18%; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + margin-top: 179px; +} + +.image-card-image-second { display: block; margin-top: 36px; } -.image-card-paragraph { +.image-card-paragraph-second { padding-top: 27px; padding: 26px; max-width: 300px; @@ -167,6 +206,7 @@ body { } .midle-card-div { + padding: 0 20px; flex-direction: row-reverse; gap: 14px; justify-content: center;