diff --git a/.vscode/settings.json b/.vscode/settings.json index 6ab3a54..0e0b17f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,5 +3,8 @@ "source.fixAll.eslint": true }, "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", + "[javascriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + } } diff --git a/components/Footer.js b/components/Footer.js index 81dbfa7..c099be2 100644 --- a/components/Footer.js +++ b/components/Footer.js @@ -1,7 +1,140 @@ -import FacebookIcon from '@material-ui/icons/Facebook' -import InstagramIcon from '@material-ui/icons/Instagram' -import LinkedInIcon from '@material-ui/icons/LinkedIn' -import RedditIcon from '@material-ui/icons/Reddit' -import TwitterIcon from '@material-ui/icons/Twitter' +import * as React from 'react' +import AppBar from '@mui/material/AppBar' +import Box from '@mui/material/Box' +import Toolbar from '@mui/material/Toolbar' +import Typography from '@mui/material/Typography' +import Button from '@mui/material/Button' import Link from 'next/link' -import Button from 'react-bootstrap/Button' +import YouTubeIcon from '@mui/icons-material/YouTube' +import InstagramIcon from '@mui/icons-material/Instagram' +import TwitterIcon from '@mui/icons-material/Twitter' +import NotificationsIcon from '@mui/icons-material/Notifications' +import FacebookIcon from '@mui/icons-material/Facebook' +import LinkedInIcon from '@mui/icons-material/LinkedIn' +import useCheckMobileScreen from '../utils/useCheckMobileScreen' +import { makeStyles } from '@mui/styles' + +const useStyles = makeStyles({ + footer_mobile: { + backgroundColor: '#080d26', + padding: '20px', + }, + typo: { + color: 'white', + marginRight: '32px', + '&:hover': { + textDecoration: 'none', + color: 'white', + cursor: 'pointer', + }, + }, + div: { + flexGrow: 1, + }, + icon: { + marginRight: '4px', + color: 'white', + '&:hover': { + cursor: 'pointer', + color: 'white', + }, + }, + iconContainer: { + marginRight: '32px', + }, + footer: { + backgroundColor: '#080d26', + }, +}) + +export default function Footer() { + const classes = useStyles() + const isMobile = useCheckMobileScreen() + + const iconContainer = ( +
+ + + + + + + + + + + + + + + +
+ ) + + const sendFeedbackLink = ( + + + Send Feedback + + + ) + + const blogLink = ( + + + Blog + + + ) + + if (isMobile) + return ( + + +
{sendFeedbackLink}
+
{blogLink}
+
+ + + Donate + + +
+ {iconContainer} +
+
+ ) + return ( + + + +
+ {sendFeedbackLink} + {blogLink} + {iconContainer} + +
+
+
+ ) +} diff --git a/components/Layout.js b/components/Layout.js index e07c6dd..d348c99 100644 --- a/components/Layout.js +++ b/components/Layout.js @@ -2,6 +2,7 @@ import Navbar from 'react-bootstrap/Navbar' import styles from '../styles/Layout.module.css' import Nav from './Nav' +import Footer from './Footer' const Layout = ({ children }) => { return ( @@ -11,6 +12,7 @@ const Layout = ({ children }) => {
{children}
+