From e552f4406cefac45ea304be7038959c53724ab46 Mon Sep 17 00:00:00 2001 From: Alvaro Ortiz Date: Sat, 18 May 2024 14:23:47 -0700 Subject: [PATCH] refactor: reverts footer to use flex --- ...{ijp_logo_blue.webp => ijp-logo-blue.webp} | Bin ...{footer-image.webp => ijp-logo-white.webp} | Bin src/app/onboarding-complete/page.tsx | 2 +- src/components/Footer/index.tsx | 108 +++++++++--------- src/components/Footer/styles.tsx | 9 +- src/components/OnboardingManager.tsx | 2 +- 6 files changed, 63 insertions(+), 58 deletions(-) rename public/images/{ijp_logo_blue.webp => ijp-logo-blue.webp} (100%) rename public/images/{footer-image.webp => ijp-logo-white.webp} (100%) diff --git a/public/images/ijp_logo_blue.webp b/public/images/ijp-logo-blue.webp similarity index 100% rename from public/images/ijp_logo_blue.webp rename to public/images/ijp-logo-blue.webp diff --git a/public/images/footer-image.webp b/public/images/ijp-logo-white.webp similarity index 100% rename from public/images/footer-image.webp rename to public/images/ijp-logo-white.webp diff --git a/src/app/onboarding-complete/page.tsx b/src/app/onboarding-complete/page.tsx index 5abbc16b..83730391 100644 --- a/src/app/onboarding-complete/page.tsx +++ b/src/app/onboarding-complete/page.tsx @@ -7,7 +7,7 @@ import CONFIG from '@/lib/configs'; import COLORS from '@/styles/colors'; import { CenteringDiv, Flex, SmallCard } from '@/styles/containers'; import { H2Centered, P } from '@/styles/text'; -import IJPLogo from '~/public/images/ijp_logo_blue.webp'; +import IJPLogo from '~/public/images/ijp-logo-blue.webp'; export default function Page() { return ( diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index c7fdbe90..7e3e719b 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -6,7 +6,7 @@ import CONFIG from '@/lib/configs'; import { IconType } from '@/lib/icons'; import { Flex } from '@/styles/containers'; import { P } from '@/styles/text'; -import FooterImage from '../../../public/images/footer-image.webp'; +import IJPLogoWhite from '~/public/images/ijp-logo-white.webp'; import Icon from '../Icon'; import * as Styles from './styles'; @@ -25,61 +25,61 @@ const socialLinks: SocialLink[] = [ export default function Footer() { return ( - - footer image - -

- 2727 Camino del Rio South, Suite 320 -
- San Diego, CA 92108 -

-

©2024 by ABA Immigration Justice Project

- - - Made By Cal Blueprint - - - -
- - - - Resources - - - ABA Website - - - ABA Commission -
- on Immigration -
- - ABA IJP Website - -
+ - Contact Us - -

Email: probono@abaijp.org

-

Phone: 619-255-8829

-

Office Phone: 619-255-8810

- - {socialLinks.map(({ href, type }) => ( - - - - ))} - + footer image + + +

+ 2727 Camino del Rio South, Suite 320
San Diego, CA 92108 +

+

©2024 by ABA Immigration Justice Project

+ + + Resources + + + ABA Website + + + ABA Commission +
+ on Immigration +
+ + ABA IJP Website + +
+ + Contact Us + +

Email: probono@abaijp.org

+

Phone: (619) 255-8829

+

Office Phone: (619) 255-8810

+ + {socialLinks.map(({ href, type }) => ( + + + + ))} + +
+
+
+ + + Made by Cal Blueprint + +
); diff --git a/src/components/Footer/styles.tsx b/src/components/Footer/styles.tsx index 121efad9..a234fb7f 100644 --- a/src/components/Footer/styles.tsx +++ b/src/components/Footer/styles.tsx @@ -4,12 +4,12 @@ import { sans } from '@/styles/fonts'; import { LinkColored } from '@/styles/text'; export const Footer = styled.div` + display: flex; + flex-direction: column; width: 100%; background-color: ${COLORS.blueMid}; min-height: 290px; - grid-template-columns: 2fr 1fr; padding: 40px 100px 0px 100px; - display: grid; `; export const FooterSection = styled.div` @@ -36,3 +36,8 @@ export const HorizontalLine = styled.hr<{ $width?: string }>` margin-bottom: 10px; width: ${({ $width }) => $width || '2.5rem'}; `; + +export const FooterInfo = styled.div` + display: flex; + gap: 50px; +`; diff --git a/src/components/OnboardingManager.tsx b/src/components/OnboardingManager.tsx index 0168e927..f9830281 100644 --- a/src/components/OnboardingManager.tsx +++ b/src/components/OnboardingManager.tsx @@ -7,7 +7,7 @@ import CONFIG from '@/lib/configs'; import { useAuth } from '@/utils/AuthProvider'; import { useGuardedOnboarding, useOnboardingNavigation } from '@/utils/hooks'; import { useProfile } from '@/utils/ProfileProvider'; -import IJPLogoBlue from '~/public/images/ijp_logo_blue.webp'; +import IJPLogoBlue from '~/public/images/ijp-logo-blue.webp'; import { UnstyledButton } from './Buttons'; import ProgressBar from './ProgressBar';