From 404630e42868c3ce10fa9fee82da68f83d115703 Mon Sep 17 00:00:00 2001 From: Shamir Shakher Date: Sat, 11 Jan 2025 18:27:58 +0800 Subject: [PATCH] Responsive V1.0.1 --- assets/css/style.css | 55 ++++++++++++++++++++++++++++---------------- index.html | 13 +++++------ 2 files changed, 41 insertions(+), 27 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 69f7769..f84d000 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -14,20 +14,20 @@ body { .main-wrapper { max-width: 1440px; margin: 0 auto; + padding: 10px; overflow: hidden; } /* Header */ .header { - background-color: rgba(245, 245, 245, 1); + ackground-color: rgba(245, 245, 245, 1); display: flex; width: 100%; - align-items: center; - gap: 40px 100px; + gap: 40px; + flex-wrap: nowrap; + padding: 24px 0; justify-content: space-between; - flex-wrap: wrap; - padding: 24px 160px; } .header > .brand-title { @@ -59,6 +59,7 @@ body { background-color: rgba(198, 228, 214, 1); align-self: center; display: flex; + margin-top: 20px; width: 100%; max-width: 100%; align-items: center; @@ -86,13 +87,13 @@ body { justify-content: start; } -.hero > .hero-wrapper > .hero-subtitle { +.hero > .hero-wrapper > .hero-content > .hero-subtitle { color: rgba(14, 14, 14, 0.5); font-size: 24px; font-weight: 500; } -.hero > .hero-wrapper > .hero-heading { +.hero > .hero-wrapper > .hero-content > .hero-heading { color: rgba(14, 14, 14, 1); font-size: 56px; font-weight: 700; @@ -113,7 +114,7 @@ body { cursor: pointer; } -.hero > .hero-wrapper > .hero-image { +.hero > .hero-image { object-fit: contain; object-position: center; width: 379px; @@ -574,6 +575,7 @@ body { border-radius: 24px; background-color: rgba(255, 255, 255, 1); display: flex; + flex-wrap: wrap; width: 100%; align-items: center; gap: 32px; @@ -675,13 +677,14 @@ body { .donation > .amount-options { display: flex; + flex-wrap: wrap; + flex-direction: row; + justify-content: center; margin-top: 32px; - align-items: center; gap: 24px; font-size: 40px; color: rgba(14, 14, 14, 0.8); font-weight: 700; - flex-wrap: wrap; } .donation > .amount-options > .amount-box { @@ -707,15 +710,19 @@ body { display: flex; margin-top: 32px; width: 70%; - height: 70px; + height: 60px; font-size: 20px; - color: rgba(14, 14, 14, 0.7); + color: rgba(14, 14, 14, 1); font-weight: 400; justify-content: center; text-align: center; padding: 0; } +.donation > .custom-amount::placeholder { + color: rgba(14, 14, 14, 0.3); +} + .donation > .donate-button { align-self: center; border-radius: 8px; @@ -741,7 +748,6 @@ body { max-width: 100%; align-items: center; gap: 40px 64px; - justify-content: center; padding: 80px 100px; } @@ -750,7 +756,7 @@ body { align-self: stretch; display: flex; min-width: 240px; - width: 750px; + width: 100%; flex-direction: column; align-items: center; justify-content: start; @@ -760,7 +766,8 @@ body { .newsletter > .newsletter-content > .newsletter-header { align-self: stretch; display: flex; - width: 100%; + width: 50%; + margin: auto; flex-direction: column; align-items: center; text-align: center; @@ -785,20 +792,25 @@ body { display: flex; margin-top: 24px; align-items: center; - justify-content: start; + justify-content: space-between; + width: 60%; + max-width: 70%; flex-wrap: nowrap; } .newsletter > .newsletter-content > .subscription-form > .email-input { border-radius: 8px 0 0 8px; background-color: rgba(255, 255, 255, 1); - min-width: 240px; - width: 600px; + flex-grow: 1; font-size: 16px; - color: rgba(14, 14, 14, 0.3); + color: rgba(14, 14, 14, 1); font-weight: 400; padding: 18px 40px; border: none; + min-width: 0; +} +.newsletter > .newsletter-content > .subscription-form > .email-input::placeholder { + color: rgba(14, 14, 14, 0.3); } .newsletter > .newsletter-content > .subscription-form > .subscribe-button { @@ -810,6 +822,8 @@ body { padding: 17px 34px; border: none; cursor: pointer; + white-space: nowrap; + flex-shrink: 0; } .newsletter > .newsletter-content > .privacy-notice { @@ -838,7 +852,8 @@ body { .footer > .footer-title { color: rgba(14, 14, 14, 1); - font: 700 32px Fira Sans, sans-serif; + font-size: 32px; + font-weight: 700; } .footer > .footer-divider { diff --git a/index.html b/index.html index 669e918..c3107a0 100644 --- a/index.html +++ b/index.html @@ -10,14 +10,13 @@ -
-

Bangladesh 2.0

- -
- - +
+

Bangladesh 2.0

+ +
+
@@ -287,7 +286,7 @@
- +