Skip to content

Commit

Permalink
Merge pull request #58 from UCCNetsoc/colm/add_footer
Browse files Browse the repository at this point in the history
Colm/add footer
  • Loading branch information
gal authored Feb 25, 2023
2 parents 3f4390a + 3c439cd commit 0fd7527
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
/node_modules
/.pnp
.pnp.js
.cache
dist
package-lock.json
yarn.lock

# testing
Expand Down
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';

import About from './views/About/About';
import Header from './components/Header';
import Home from './views/Home/Home';
import Gaming from './views/Gaming/Gaming';
import Esports from './views/Esports/Esports';
import Technology from './views/Technology/Technology';



function App() {
return (
Expand All @@ -21,6 +20,7 @@ function App() {
<Route path="/esports" element={<Esports />} />
</Routes>
</Router>
<Footer />
</>
);
}
Expand Down
35 changes: 35 additions & 0 deletions src/components/Footer.module.css
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%;
}
45 changes: 45 additions & 0 deletions src/components/Footer.tsx
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;

0 comments on commit 0fd7527

Please sign in to comment.