Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions public/assets/OpenBC-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 53 additions & 21 deletions src/components/footer/footer.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use '../../app/globals' as *;

.footer-container {
background-color: #FAFAFA;
margin-top: 2rem;
Expand All @@ -19,6 +21,7 @@
&__wrapper {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1.5rem;
align-items: center;

Expand All @@ -36,21 +39,18 @@

&__menu {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
align-self: stretch;
justify-content: flex-start;
align-items: center;
gap: 24px;


@media only screen and (max-width:640px) {
gap: 16px;
}
}

&__logo {
color: #424242;
text-decoration: none;
font-size: 18px;
font-weight: 700;
width: 48px;
cursor: pointer;
}

Expand All @@ -62,19 +62,16 @@
}

&__button {
font-size: 16px;
font-size: 18px;
text-decoration: none;
color: #424242;
transition: all .2s;

&:hover {
text-decoration: underline;
}
font-family: inherit;

&--highlight {
border-radius: 20px;
padding: 0.25rem 1.25rem;
background-color: #E1E1E1;
background-color: #B9DDFF;
color: #1566B5;
}
}

Expand Down Expand Up @@ -102,15 +99,15 @@
}

&__label {
font-weight: 500;
font-size: 18px;
color: #424242;
font-family: inherit;
}

&__input {
display: flex;
font-family: inherit;
padding: 0.5rem 0.75rem;
align-items: center;
gap: 0.75rem;
flex: 1 0 0;
align-self: stretch;
border-radius: 6px;
Expand All @@ -135,6 +132,7 @@
border: 1.8px solid #424242;
text-transform: none;
color: #575757;
font-size: 18px;

@media only screen and (max-width:640px) {
width: 100%;
Expand All @@ -153,14 +151,48 @@

&__link {
color: #737373;
font-size: 14px;
font-weight: 500;
text-decoration: none;
font-size: 16px;
transition: all .2s;
cursor: pointer;
border: none;
background-color: transparent;

&:hover {
color: #424242;
}

}
}

.modal {

position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 400px;
background-color: #FFF;
padding: 24px 16px;
display: flex;
flex-direction: column;
gap: 16px;
border-radius: 4px;
box-shadow: 0px 1px 2px -1px rgba(16, 24, 40, 0.10), 0px 1px 3px 0px rgba(16, 24, 40, 0.10);


&__close {
position: absolute;
right: 8px;
top: 8px;
}


&__title {
text-align: center;
font-family: inherit;
}

&__text {
text-align: center;
}
}
107 changes: 90 additions & 17 deletions src/components/footer/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,32 +1,67 @@
'use client';

import { Box, Button, Container, IconButton, Link } from '@mui/material';
import CloseIcon from '@mui/icons-material/Close';
import {
Box,
Button,
Container,
IconButton,
Link,
Modal,
Typography,
} from '@mui/material';
import Image from 'next/image';
import { useState } from 'react';
import './footer.scss';

function Footer() {
const [open, setOpen] = useState(false);
const handleOpen = () => setOpen(true);
const handleClose = () => setOpen(false);
return (
<Box component="footer" className="footer-container">
<Container className="footer">
<Container className="footer" sx={{ display: 'flex' }}>
<Box className="footer__wrapper">
<Box className="footer__menu">
<Link href="/" className="footer__logo">
OpenBC
<Link href="/">
<Image
src="/assets/OpenBC-logo.svg"
width={48}
height={48}
alt="OpenBC logo"
className="footer__logo"
/>
</Link>
<Box className="footer__buttons">
<Link href="/about" className="footer__button">
<Typography className="footer__button">
<Link
underline="none"
color="inherit"
href="/about"
className="footer__button"
>
About
</Link>
</Typography>
<Typography className="footer__button">
<Link
underline="none"
color="inherit"
href="/join-us"
className="footer__button footer__button--highlight"
>
Join Us!
</Link>
<Link href="#" className="footer__button">
</Typography>

<Typography className="footer__button">
<Link
underline="none"
color="inherit"
href="mailto:openbc.ca@gmail.com"
>
Contact Us
</Link>
</Box>
</Typography>
</Box>
<form className="footer__newsletter">
<label htmlFor="" className="footer__label">
Expand All @@ -38,7 +73,13 @@ function Footer() {
placeholder="Enter your Email."
/>

<Button className="footer__subscribe-button">Subscribe</Button>
<Button
onClick={handleOpen}
className="footer__subscribe-button"
variant="outlined"
>
Subscribe
</Button>
</Box>
</form>
</Box>
Expand All @@ -52,8 +93,8 @@ function Footer() {
<Image
src="/assets/github_Icon.svg"
alt="GitHub"
width={20}
height={20}
width={24}
height={24}
/>
</IconButton>
<IconButton
Expand All @@ -64,18 +105,50 @@ function Footer() {
<Image
src="/assets/linkedin_Icon.svg"
alt="LinkedIn"
width={20}
height={20}
width={24}
height={24}
/>
</IconButton>
</Box>
<Box className="footer__links">
<Link href="#" className="footer__link">
<button onClick={handleOpen} className="footer__link">
Terms of Service
</Link>
<Link href="#" className="footer__link">
</button>
<button onClick={handleOpen} className="footer__link">
Privacy Policy
</Link>
</button>

<Modal
open={open}
onClose={handleClose}
aria-labelledby="modal-modal-title"
aria-describedby="modal-modal-description"
>
<Box className="modal">
<IconButton
onClick={handleClose}
className="modal__close"
color="error"
>
<CloseIcon />
</IconButton>
<Typography
className="modal__title"
variant="h6"
component="h2"
>
OOPS
</Typography>
<Typography
className="modal__text"
variant="body2"
component="h2"
>
We&apos;re actively building this feature to make your
experience even better.
</Typography>
</Box>
</Modal>
</Box>
</Box>
</Container>
Expand Down