-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Footer changed to component
- Loading branch information
Showing
5 changed files
with
124 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,12 @@ | ||
'use client'; | ||
|
||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
import styles from './page.module.css'; | ||
import { P, H3 } from '../styles/text'; | ||
import { | ||
PageContainer, | ||
FooterContainer, | ||
FooterSection, | ||
FooterDiv, | ||
IconDiv, | ||
FooterLink, | ||
} from './styles'; | ||
import Icon from '../components/Icon'; | ||
import Footer from '@/components/Footer'; | ||
import { PageContainer } from './styles'; | ||
|
||
export default function Home() { | ||
return ( | ||
<PageContainer> | ||
<div className={styles.description}>immigration justice project</div> | ||
<FooterContainer> | ||
<FooterDiv> | ||
<FooterSection> | ||
<Image | ||
alt="footer image" | ||
src="/footerimage.webp" | ||
placeholder="blur" | ||
blurDataURL="/footerimage.webp" | ||
quality={100} | ||
width={168} | ||
height={66} | ||
/> | ||
<hr style={{ width: '160px' }} /> | ||
<P $color="white">2727 Camino del Rio S</P> | ||
<P $color="white">©2024 by Immigration Justice Project Pro Bono</P> | ||
</FooterSection> | ||
</FooterDiv> | ||
<FooterDiv> | ||
<FooterSection> | ||
<H3 $color="white" style={{ fontSize: '20px' }}> | ||
Resources | ||
</H3> | ||
<hr style={{ width: '40px' }} /> | ||
<FooterLink $color="white" href="https://www.americanbar.org/"> | ||
ABA Website | ||
</FooterLink> | ||
<FooterLink | ||
$color="white" | ||
href="https://www.americanbar.org/groups/public_interest/immigration/" | ||
> | ||
IJP Commission | ||
</FooterLink> | ||
<P $color="white">Hotline: 619-641-7510</P> | ||
</FooterSection> | ||
<FooterSection> | ||
<H3 $color="white" style={{ fontSize: '20px' }}> | ||
Contact Us | ||
</H3> | ||
<hr style={{ width: '40px' }} /> | ||
<P $color="white">Email: [email protected]</P> | ||
<P $color="white">Phone: 619-255-8829</P> | ||
<IconDiv> | ||
<Link href="https://www.facebook.com/ImmigrationJusticeProjectOfSanDiego/"> | ||
<Icon type="fblogo" /> | ||
</Link> | ||
<Link href="https://twitter.com/ijpsandiego?lang=en"> | ||
<Icon type="twitter" /> | ||
</Link> | ||
<Link href="https://www.linkedin.com/company/immigration-justice-project/"> | ||
<Icon type="linkedin" /> | ||
</Link> | ||
<Link href="https://www.instagram.com/ijp.sandiego/"> | ||
<Icon type="instagram" /> | ||
</Link> | ||
</IconDiv> | ||
</FooterSection> | ||
</FooterDiv> | ||
</FooterContainer> | ||
<Footer /> | ||
</PageContainer> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,9 @@ | ||
import styled from 'styled-components'; | ||
import COLORS from '@/styles/colors'; | ||
import { LinkColored } from '../styles/text'; | ||
|
||
export const PageContainer = styled.div` | ||
height: 100vh; | ||
min-height: 100svh; | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
padding-top: 1rem; | ||
`; | ||
export const FooterContainer = styled.div` | ||
width: 100%; | ||
background-color: ${COLORS.blueMid}; | ||
min-height: 290px; | ||
padding-left: 50px; | ||
padding-right: 50px; | ||
padding-top: 40px; | ||
display: flex; | ||
justify-content: space-between; | ||
`; | ||
export const FooterSection = styled.div` | ||
max-width: 316px; | ||
display: flex; | ||
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: 14px; | ||
font-weight: 400px; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
'use client'; | ||
|
||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
import { P, H3 } from '@/styles/text'; | ||
import { | ||
FooterContainer, | ||
FooterSection, | ||
FooterDiv, | ||
IconDiv, | ||
FooterLink, | ||
} from './styles'; | ||
import Icon from '../Icon'; | ||
|
||
export default function Footer() { | ||
return ( | ||
<FooterContainer> | ||
<FooterDiv> | ||
<FooterSection> | ||
<Image | ||
alt="footer image" | ||
src="/footerimage.webp" | ||
placeholder="blur" | ||
blurDataURL="/footerimage.webp" | ||
quality={100} | ||
width={168} | ||
height={66} | ||
/> | ||
<hr style={{ width: '160px' }} /> | ||
<P $color="white">2727 Camino del Rio S</P> | ||
<P $color="white">©2024 by Immigration Justice Project Pro Bono</P> | ||
</FooterSection> | ||
</FooterDiv> | ||
<FooterDiv> | ||
<FooterSection> | ||
<H3 $color="white" style={{ fontSize: '1.25rem' }}> | ||
Resources | ||
</H3> | ||
<hr style={{ width: '40px' }} /> | ||
<FooterLink $color="white" href="https://www.americanbar.org/"> | ||
ABA Website | ||
</FooterLink> | ||
<FooterLink | ||
$color="white" | ||
href="https://www.americanbar.org/groups/public_interest/immigration/" | ||
> | ||
IJP Commission | ||
</FooterLink> | ||
<P $color="white">Hotline: 619-641-7510</P> | ||
</FooterSection> | ||
<FooterSection> | ||
<H3 $color="white" style={{ fontSize: '1.25rem' }}> | ||
Contact Us | ||
</H3> | ||
<hr style={{ width: '2.5rem' }} /> | ||
<P $color="white">Email: [email protected]</P> | ||
<P $color="white">Phone: 619-255-8829</P> | ||
<IconDiv> | ||
<Link href="https://www.facebook.com/ImmigrationJusticeProjectOfSanDiego/"> | ||
<Icon type="facebook" /> | ||
</Link> | ||
<Link href="https://twitter.com/ijpsandiego?lang=en"> | ||
<Icon type="x" /> | ||
</Link> | ||
<Link href="https://www.linkedin.com/company/immigration-justice-project/"> | ||
<Icon type="linkedin" /> | ||
</Link> | ||
<Link href="https://www.instagram.com/ijp.sandiego/"> | ||
<Icon type="instagram" /> | ||
</Link> | ||
</IconDiv> | ||
</FooterSection> | ||
</FooterDiv> | ||
</FooterContainer> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import styled from 'styled-components'; | ||
import COLORS from '@/styles/colors'; | ||
import { LinkColored } from '@/styles/text'; | ||
|
||
export const FooterContainer = styled.div` | ||
width: 100%; | ||
background-color: ${COLORS.blueMid}; | ||
min-height: 290px; | ||
padding-left: 50px; | ||
padding-right: 50px; | ||
padding-top: 40px; | ||
display: flex; | ||
justify-content: space-between; | ||
`; | ||
export const FooterSection = styled.div` | ||
max-width: 316px; | ||
display: flex; | ||
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: 14px; | ||
font-weight: 400px; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters