From bf00a5a0d88e1c69cf013d891ece861adc05e168 Mon Sep 17 00:00:00 2001 From: Alvaro Ortiz Date: Fri, 17 May 2024 21:09:52 -0700 Subject: [PATCH] refactor: updates footer's display to grid --- src/components/Footer/index.tsx | 101 +++++++++++++------------------ src/components/Footer/styles.tsx | 32 ++++------ src/lib/configs.ts | 8 ++- 3 files changed, 60 insertions(+), 81 deletions(-) diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index bc808117..c7fdbe90 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -16,90 +16,71 @@ type SocialLink = { }; const socialLinks: SocialLink[] = [ - { - href: CONFIG.facebook, - type: 'facebook', - }, + { href: CONFIG.facebook, type: 'facebook' }, { href: CONFIG.xTwitter, type: 'x' }, - { - href: CONFIG.linkedin, - type: 'linkedin', - }, + { href: CONFIG.linkedin, type: 'linkedin' }, { href: CONFIG.instagram, type: 'instagram' }, ]; 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 - - - -
-
- + + + 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 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 }) => ( ))} - +
-
-
+ + ); } diff --git a/src/components/Footer/styles.tsx b/src/components/Footer/styles.tsx index c3f1394c..121efad9 100644 --- a/src/components/Footer/styles.tsx +++ b/src/components/Footer/styles.tsx @@ -3,44 +3,36 @@ import COLORS from '@/styles/colors'; import { sans } from '@/styles/fonts'; import { LinkColored } from '@/styles/text'; -export const FooterContainer = styled.div` +export const Footer = styled.div` width: 100%; background-color: ${COLORS.blueMid}; min-height: 290px; - padding-left: 100px; - padding-right: 100px; - padding-top: 40px; - display: flex; - justify-content: space-between; + grid-template-columns: 2fr 1fr; + padding: 40px 100px 0px 100px; + display: grid; `; export const FooterSection = styled.div` display: flex; - width: 16rem; flex-direction: column; gap: 10px; `; -export const FooterDiv = styled.div` - display: flex; - flex-direction: row; - gap: 50px; -`; - -export const IconDiv = styled.div` - display: flex; - flex-direction: row; - gap: 10px; -`; - export const FooterLink = styled(LinkColored)` text-decoration: none; font-size: 0.9375rem; font-weight: 400px; `; + export const Header = styled.p` ${sans.style} font-size: 1.25rem; color: white; - font-weight: 600; + font-weight: 500; +`; + +export const HorizontalLine = styled.hr<{ $width?: string }>` + color: white; + margin-bottom: 10px; + width: ${({ $width }) => $width || '2.5rem'}; `; diff --git a/src/lib/configs.ts b/src/lib/configs.ts index 1707a674..d310b74b 100644 --- a/src/lib/configs.ts +++ b/src/lib/configs.ts @@ -1,15 +1,21 @@ const CONFIG = { + pageSize: 20, homepage: '/', onboardingHome: '/onboarding/roles', - pageSize: 20, settings: '/settings', cases: '/cases', lca: '/limited-case-assignments', languageSupport: '/language-support', + // social media links facebook: 'https://www.facebook.com/ImmigrationJusticeProjectOfSanDiego/', xTwitter: 'https://twitter.com/ijpsandiego?lang=en', linkedin: 'https://www.linkedin.com/company/immigration-justice-project/', instagram: 'https://www.instagram.com/ijp.sandiego/', + // website links + ABA: 'https://www.americanbar.org/', + ABAComissions: 'https://www.americanbar.org/groups/public_interest/immigration/', + IJP: 'https://www.americanbar.org/groups/public_interest/immigration/projects_initiatives/immigration-justice-project/', + blueprint: 'https://calblueprint.org/', }; export default CONFIG;