From 65f3ef9efaa7ed82dd3bcf28242044fd55f63485 Mon Sep 17 00:00:00 2001 From: shreyashap <107754587+shreyashap@users.noreply.github.com> Date: Fri, 3 Jan 2025 17:20:01 +0530 Subject: [PATCH] Fix mobile screen footer center --- public/css/landing/style.css | 40 ++++++++++++++++++- src/includes/footer.ejs | 76 ++++++++++++++++++------------------ 2 files changed, 77 insertions(+), 39 deletions(-) diff --git a/public/css/landing/style.css b/public/css/landing/style.css index c740aba6..2b6ae42e 100644 --- a/public/css/landing/style.css +++ b/public/css/landing/style.css @@ -3303,7 +3303,12 @@ } .footer__wrapper-inner-social-subscribe { + display: flex; + width: 100%; + flex-direction: column; + align-items: center; padding-top: 32px; + margin-bottom: 0; } .footer__wrapper-inner-social-subscribe-title { @@ -3403,11 +3408,23 @@ will-change: background, color, border, box-shadow; } + + .footer__wrapper-inner-social-links { + width: 100%; display: flex; - gap: 37px; + align-items: center; + justify-content: center; +} + +.footer__wrapper-inner-social-links-container{ + display: flex; + justify-content: space-around; + gap : 60px; + margin-right : 15px; } + .footer__wrapper-inner-social-links a { height: 28px; width: 28px; @@ -3459,10 +3476,22 @@ margin: unset; } + .footer__wrapper-inner-social { display: flex; flex-wrap: wrap; - width: 80vw; + width: 100%; + } + + .footer__wrapper-inner-social-subscribe{ + margin-bottom: 32px; + } + .footer__wrapper-inner-social-subscribe-title{ + align-self: center; + } + + iframe[title="nightwatch-substack"]{ + width: 100%; } .footer__wrapper-inner-social-links { @@ -3531,4 +3560,11 @@ } } + +@media (min-width : 1070px) { + .footer__wrapper-inner-social-links-container{ + gap : 40px; + } +} + /* Footer section end */ diff --git a/src/includes/footer.ejs b/src/includes/footer.ejs index 5535d023..6ba8e583 100644 --- a/src/includes/footer.ejs +++ b/src/includes/footer.ejs @@ -161,45 +161,47 @@ style="position: relative;left: -11px;top: -20px;">