Skip to content

Commit

Permalink
Website Redesign: Release 1 navigation bars orcasound#127
Browse files Browse the repository at this point in the history
* Added footer orca logo, third party platform icons
* Added two columns of navigation items
* Added license logo
  • Loading branch information
yyu233 committed Nov 17, 2023
1 parent d85bd32 commit 57b60b0
Show file tree
Hide file tree
Showing 9 changed files with 218 additions and 24 deletions.
Binary file added public/images/facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/instagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/linkedin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/orcasoundlogo_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/youtube.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
242 changes: 218 additions & 24 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@ import NotificationsIcon from '@mui/icons-material/Notifications'
import TwitterIcon from '@mui/icons-material/Twitter'
import YouTubeIcon from '@mui/icons-material/YouTube'
import { AppBar, Box, Button, styled, Toolbar, Typography } from '@mui/material'
import Image from 'next/image'
import Link from 'next/link'

import facebooklogo from '../../public/images/facebook.png'
import githublogo from '../../public/images/github.png'
import instagramlogo from '../../public/images/instagram.png'
import linkedinlogo from '../../public/images/linkedin.png'
import licenselogo from '../../public/images/orcasound-all-rights-reserved-2023.png'
import orcasoundlogo from '../../public/images/orcasoundlogo_3.png'
import xlogo from '../../public/images/x.png'
import youtubelogo from '../../public/images/youtube.png'
import useIsMobile from '../utils/useIsMobile'

const StyledTypography = styled(Typography)({
Expand Down Expand Up @@ -64,6 +73,96 @@ const blogLink = (
</Link>
)

const supportUsLink = (
<Link href="" passHref>
<StyledTypography variant="h6" component="a">
Support Us
</StyledTypography>
</Link>
)

const learnMoreLink = (
<Link href="" passHref>
<StyledTypography variant="h6" component="a">
Learn More
</StyledTypography>
</Link>
)

const navLinksLeftCol = [
{
name: 'Get Involved',
url: '/getinvolved',
icon: '',
},
{
name: 'Send Feedback',
url: '/',
icon: '',
},
{
name: 'Donate',
url: '/donate',
icon: '',
},
]

const navLinksRightCol = [
{
name: 'About Us',
url: '/about',
icon: '',
},
{
name: 'Learn',
url: '/learn',
icon: '',
},
{
name: 'Listen',
url: '/listen',
icon: '',
},
{
name: 'Blog',
url: '/blog',
icon: '',
},
]

const iconLinks = [
{
name: 'Instagram',
url: 'https://www.instagram.com/orcasoundapp/',
icon: instagramlogo,
},
{
name: 'X',
url: 'https://twitter.com/OrcasoundApp',
icon: xlogo,
},
{
name: 'Facebook',
url: 'https://www.facebook.com/OrcasoundApp/',
icon: facebooklogo,
},
{
name: 'Youtube',
url: 'https://www.youtube.com/channel/UC7b3tOVQg8_fzaZBj4NoAEg',
icon: youtubelogo,
},
{
name: 'Github',
url: '',
icon: githublogo,
},
{
name: 'Linkedin',
url: 'https://www.linkedin.com/company/75491849/admin/',
icon: linkedinlogo,
},
]

export default function Footer() {
const isMobile = useIsMobile()

Expand All @@ -73,7 +172,7 @@ export default function Footer() {
function Mobile() {
return (
<Box sx={{ flexGrow: 1 }}>
<AppBar position="static" sx={{ padding: '20px' }}>
<AppBar position="relative" sx={{ padding: '20px' }}>
<div>{sendFeedbackLink}</div>
<div>{blogLink}</div>
<div>
Expand All @@ -93,32 +192,127 @@ function Desktop() {
return (
<Box sx={{ flexGrow: 1 }}>
<AppBar position="static">
<Toolbar>
<Box sx={{ flexGrow: 1 }}></Box>
{sendFeedbackLink}
{blogLink}
{iconContainer}
<Link href="/donate" passHref>
<Button
variant="contained"
<Box display="flex" sx={{ position: 'relative', height: '400px' }}>
<Box
sx={{
flexGrow: 0.5,
position: 'relative',
top: '70px',
left: '50px',
width: '250px',
height: '180px',
margin: '10px',
}}
>
<Image src={orcasoundlogo} alt="Orcasound"></Image>
</Box>

<Box
display="flex"
flexDirection="column"
sx={{
position: 'relative',
top: '70px',
margin: '10px',
}}
>
<Box
display="flex"
sx={{
color: 'black',
backgroundColor: 'white',
borderRadius: '100px',
'&:hover': { color: 'black', backgroundColor: 'white' },
height: '50px',
margin: '3px',
}}
startIcon={
<NotificationsIcon
sx={(theme) => ({
color: `${theme.palette.secondary.main}`,
})}
/>
}
>
Donate
</Button>
</Link>
</Toolbar>
{supportUsLink}
</Box>

{navLinksLeftCol.map((navLink) => (
<Box
key={navLink.name}
display="flex"
sx={{
margin: '3px',
height: '30px',
}}
>
<Link href={navLink.url} passHref>
<StyledTypography component="a">
{navLink.name}
</StyledTypography>
</Link>
</Box>
))}
</Box>

<Box
display="flex"
flexDirection="column"
sx={{
position: 'relative',
top: '70px',
left: '40px',
margin: '10px',
}}
>
<Box
display="flex"
sx={{
height: '50px',
margin: '3px',
}}
>
{learnMoreLink}
</Box>

{navLinksRightCol.map((navLink) => (
<Box
key={navLink.name}
display="flex"
sx={{
margin: '3px',
height: '30px',
}}
>
<Link href={navLink.url} passHref>
<StyledTypography component="a">
{navLink.name}
</StyledTypography>
</Link>
</Box>
))}
</Box>
</Box>

<Box display="flex" sx={{ position: 'relative' }}>
<Box
display="flex"
sx={{
flexGrow: 0.95,
width: '360px',
height: '60px',
position: 'relative',
top: '160%',
bottom: '30px',
left: '50px',
}}
>
{iconLinks.map((iconLink) => (
<Link key={iconLink.name} href={iconLink.url} passHref>
<Box
component="a"
sx={{
margin: '10px',
}}
>
<Image src={iconLink.icon} alt={iconLink.name}></Image>
</Box>
</Link>
))}
</Box>
<Box>
<Image src={licenselogo} alt="License"></Image>
</Box>
</Box>
</AppBar>
</Box>
)
Expand Down

0 comments on commit 57b60b0

Please sign in to comment.