Skip to content

Commit

Permalink
Address Sean's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1618 committed Dec 10, 2024
1 parent 44d3d53 commit 4825d96
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 781 deletions.
Binary file added public/assets/diamond-pile-left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
343 changes: 0 additions & 343 deletions public/assets/diamond-pile-left.svg

This file was deleted.

Binary file added public/assets/diamond-pile-right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
429 changes: 0 additions & 429 deletions public/assets/diamond-pile-right.svg

This file was deleted.

6 changes: 3 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export const metadata: Metadata = {
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body className={dmSans.className}>{children}</body>
<footer className={dmSans.className}>
<body className={dmSans.className}>
{children}
<Footer />
</footer>
</body>
</html>
);
}
8 changes: 4 additions & 4 deletions src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import Image from 'next/image';
import Instagram from '../../../public/assets/instagram.svg';
import Discord from '../../../public/assets/discord.svg';
import Facebook from '../../../public/assets/facebook.svg';
import DiamondPileLeft from '../../../public/assets/diamond-pile-left.svg';
import DiamondPileRight from '../../../public/assets/diamond-pile-right.svg';
import DiamondPileLeft from '../../../public/assets/diamond-pile-left.png';
import DiamondPileRight from '../../../public/assets/diamond-pile-right.png';

const Footer: React.FC = () => {
return (
<div className={styles.container}>
<DiamondPileLeft className={styles.backgroundLeft} />
<DiamondPileRight className={styles.backgroundRight} />
<Image src={DiamondPileLeft} alt="Pile of diamonds" className={styles.backgroundLeft} />
<Image src={DiamondPileRight} alt="Pile of diamonds" className={styles.backgroundRight} />
<div className={styles.links}>
<Link href="https://acmucsd.com/about">
<Typography variant="body/large">About Us</Typography>
Expand Down
7 changes: 7 additions & 0 deletions src/components/Footer/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
align-items: center;
padding: 8rem vars.$side-padding;
position: relative;
margin: 0 calc(vars.$side-padding * -1);

text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
Expand All @@ -17,13 +18,19 @@
left: 0;
bottom: 0;
z-index: -1;
max-width: min(100%, 580px);
height: auto;
object-fit: contain;
}

.backgroundRight {
position: absolute;
right: 0;
bottom: 0;
z-index: -1;
max-width: min(100%, 850px);
height: auto;
object-fit: contain;
}

.links {
Expand Down
3 changes: 1 addition & 2 deletions src/styles/globals.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
@use './vars.scss' as vars;

html,
body,
footer {
body {
color: vars.$white;
margin: 0;
padding: 0;
Expand Down

0 comments on commit 4825d96

Please sign in to comment.