generated from uclaacm/next-ts-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
combined board internal and external
- Loading branch information
Showing
42 changed files
with
7,136 additions
and
3,347 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
EVENTS_SPREADSHEET_ID=your_spreadsheet_url_here | ||
DIRECTORY_SPREADSHEET_ID=your_spreadsheet_url_here | ||
LANDING_SPREADSHEET_ID=your_spreadsheet_url_here | ||
SERVICE_ACCOUNT=your_service_account_key_here |
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
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 |
---|---|---|
|
@@ -28,6 +28,7 @@ yarn-error.log* | |
# local env files | ||
.env*.local | ||
.env | ||
.env | ||
|
||
# vercel | ||
.vercel | ||
|
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 +1,2 @@ | ||
**/*.min.css | ||
**/*.min.css | ||
global_variables.module.scss |
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,3 +1,24 @@ | ||
{ | ||
"extends": "stylelint-config-standard-scss" | ||
"extends": "stylelint-config-standard-scss", | ||
"rules": { | ||
"selector-pseudo-class-no-unknown": [ | ||
true, | ||
{ | ||
"ignorePseudoClasses": [ | ||
"export", | ||
"import", | ||
"global", | ||
"local", | ||
"external" | ||
] | ||
} | ||
], | ||
"property-no-unknown": [ | ||
true, | ||
{ | ||
"ignoreProperties": ["composes", "compose-with"], | ||
"ignoreSelectors": [":export"] | ||
} | ||
] | ||
} | ||
} |
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
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
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
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,57 +1,94 @@ | ||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
import React from 'react'; | ||
import WordmarkLogo from '../public/acm-logo-wordmark-extended.png'; | ||
import React, { useEffect, useState } from 'react'; | ||
import discord from '../public/discord.png'; | ||
import email from '../public/email.png'; | ||
import instagram from '../public/instagram.png'; | ||
import styles from '../styles/Footer.module.scss'; | ||
|
||
export default function Footer() { | ||
interface CommitteeData { | ||
committee: string; | ||
name: string; | ||
subtitle: string; | ||
description: string; | ||
logoLink: string; | ||
dcLink: string; | ||
igLink: string; | ||
email: string; | ||
favicon: string; | ||
backgroundImg: string; | ||
} | ||
|
||
const Footer = () => { | ||
const [committeeData, setCommitteeData] = useState<CommitteeData[] | null>( | ||
null, | ||
); | ||
|
||
useEffect(() => { | ||
const fetchData = async () => { | ||
try { | ||
const response = await fetch('/output.json'); | ||
const jsonData = await response.json(); | ||
setCommitteeData(jsonData); | ||
} catch (error) { | ||
console.error('error'); | ||
} | ||
}; | ||
//eslint-disable-next-line | ||
fetchData(); | ||
}, []); | ||
|
||
return ( | ||
<footer> | ||
<section className={styles.socials}> | ||
<section className={styles.footerlogo}> | ||
<Link href="/"> | ||
<a> | ||
<Image src={WordmarkLogo} width={180} height={70} alt="Logo" /> | ||
{committeeData && ( | ||
<section className={styles.socials}> | ||
<section className={styles.footerlogo}> | ||
<Link href="/"> | ||
<a> | ||
<Image | ||
src={committeeData[0].logoLink} | ||
width={100} | ||
height={40} | ||
alt="Logo" | ||
/> | ||
</a> | ||
</Link> | ||
</section> | ||
<section className={styles.footerlogo}> | ||
<a | ||
href={`https://${committeeData[0].igLink}`} | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
<Image | ||
src={instagram} | ||
width={25} | ||
height={25} | ||
alt="Instagram Icon" | ||
/> | ||
</a> | ||
</Link> | ||
</section> | ||
<section className={styles.footerlogo}> | ||
<a | ||
href="https://www.instagram.com/acm.ucla" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
<Image | ||
src={instagram} | ||
width={30} | ||
height={30} | ||
alt="Instagram Icon" | ||
/> | ||
</a> | ||
</section> | ||
<section className={styles.footerlogo}> | ||
<a | ||
href="https://discord.com/invite/eWmzKsY" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
<Image src={discord} width={35} height={30} alt="Discord Icon" /> | ||
</a> | ||
</section> | ||
<section className={styles.footerlogo}> | ||
<a | ||
href="mailto: [email protected]" | ||
target="_blank" | ||
rel="noreferrer" | ||
className={styles.mailanchor} | ||
> | ||
<Image src={email} width={35} height={30} alt="Email Icon" /> | ||
</a> | ||
</section> | ||
<section className={styles.footerlogo}> | ||
<a | ||
href={`https://${committeeData[0].dcLink}`} | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
<Image src={discord} width={30} height={25} alt="Discord Icon" /> | ||
</a> | ||
</section> | ||
<section className={styles.footerlogo}> | ||
<a | ||
href={`mailto:${committeeData[0].email}`} | ||
target="_blank" | ||
rel="noreferrer" | ||
className={styles.mailanchor} | ||
> | ||
<Image src={email} width={25} height={20} alt="Email Icon" /> | ||
</a> | ||
</section> | ||
</section> | ||
</section> | ||
)} | ||
<section className={styles.credit}> | ||
<span> | ||
Made by{' '} | ||
|
@@ -74,4 +111,6 @@ export default function Footer() { | |
</section> | ||
</footer> | ||
); | ||
} | ||
}; | ||
|
||
export default Footer; |
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
Oops, something went wrong.