-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from UCCNetsoc/colm/add_footer
Colm/add footer
- Loading branch information
Showing
4 changed files
with
85 additions
and
2 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 |
---|---|---|
|
@@ -4,6 +4,9 @@ | |
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.cache | ||
dist | ||
package-lock.json | ||
yarn.lock | ||
|
||
# testing | ||
|
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
footer { | ||
margin: 0 auto; | ||
box-sizing: border-box; | ||
padding: 2em; | ||
|
||
} | ||
|
||
.footer_links { | ||
margin: 1em auto 0 auto; | ||
max-width: 800px; | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-evenly; | ||
} | ||
|
||
.footer_links a { | ||
margin: auto 2em; | ||
padding: 1em; | ||
} | ||
|
||
.footer_links img { | ||
width: 2em; | ||
height: 2em; | ||
} | ||
|
||
iframe { | ||
display: block; | ||
margin: 2em auto; | ||
} | ||
|
||
.logo { | ||
display: block; | ||
margin: 0 auto; | ||
max-width: 90%; | ||
} |
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,45 @@ | ||
import styles from './Footer.module.css' | ||
|
||
const Footer = (): JSX.Element => { | ||
|
||
const footer_links: { icon?: string, url: string, description: string }[] = [ | ||
{ | ||
icon: "/img/discord.svg", | ||
url: "https://discord.netsoc.co", | ||
description: "Join our Discord server" | ||
}, | ||
{ | ||
icon: "/img/google_calendar.png", | ||
url: "https://google.com", | ||
description: "See what events we have coming up" | ||
}, | ||
{ | ||
icon: "https://instagram.com/favicon.ico", | ||
url: "https://instagram.com/uccnetsoc", | ||
description: "Follow us on instagram to be updated with upcoming events" | ||
}, | ||
{ | ||
icon: "/img/github.svg", | ||
url: "https://github.com/uccnetsoc", | ||
description: "Check out our Github" | ||
}, | ||
] | ||
|
||
return ( | ||
<> | ||
<footer> | ||
<section className={styles.footer_links}> | ||
{footer_links.map((link) => ( | ||
<a href={link.url}><img src={link.icon} alt={link.description}/></a> | ||
))} | ||
</section> | ||
<iframe src="https://discord.com/widget?id=248421213628530688&theme=dark" width="350" height="250" allowTransparency={true} | ||
frameBorder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts" title="Discord"> | ||
</iframe> | ||
<img className={styles.logo} src="/img/logo-horizontal.svg" alt="Netsoc" /> | ||
</footer> | ||
</> | ||
) | ||
}; | ||
|
||
export default Footer; |