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
91 changes: 87 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.4.2",
"@fortawesome/free-brands-svg-icons": "^6.4.2",
"@fortawesome/free-regular-svg-icons": "^6.4.2",
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/react-fontawesome": "^0.2.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"axios": "^1.5.1",
"font-awesome": "^4.7.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-lottie-player": "^1.5.5",
Expand Down
2 changes: 2 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {Navbar} from "./components/common/Navbar";
import {Games} from "./pages/Games";
import {Activities} from "./pages/Activities";
import {activities, games} from "./data/content";
import Footer from "./components/common/Footer"

function App() {
return (
Expand All @@ -29,6 +30,7 @@ function App() {
})
}
</Routes>
<Footer />
</div>
);
}
Expand Down
35 changes: 35 additions & 0 deletions src/components/common/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from 'react';
import "../../styles/components/common/Footer.css";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faFacebook, faTwitter } from '@fortawesome/free-brands-svg-icons';
import { faGithub, faInstagram } from '@fortawesome/free-brands-svg-icons';



function Footer() {
const currentYear = new Date().getFullYear();
return (
<footer>
<div className="footer-content">
<p>&copy; {currentYear} ACM FUN </p>
<div className="social-icons">
<a href="#" target="_blank" rel="noopener noreferrer">
<FontAwesomeIcon icon={faFacebook} className="icon" />
</a>
<a href="#" target="_blank" rel="noopener noreferrer">
<FontAwesomeIcon icon={faGithub} className="icon" />
</a>
<a href="#" target="_blank" rel="noopener noreferrer">
<FontAwesomeIcon icon={faTwitter} className="icon" />
</a>
<a href="#" target="_blank" rel="noopener noreferrer">
<FontAwesomeIcon icon={faInstagram} className="icon" />
</a>
</div>
</div>
</footer>
);
}

export default Footer;

35 changes: 35 additions & 0 deletions src/styles/components/common/Footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
footer {
background-color: #4e4e4c;
color: #fff;
padding: 20px 0;
position: absolute;
left: 0;
bottom: 0;
right: 0;
}

.footer-content {
display: flex;
justify-content: space-between;
margin: 0 40px;


}

.social-icons {
display: flex;
align-items: center;
}


.icon {
color: white;
margin-left: 15px;
font-size: 25px;
}

p {
font-size: 15px;


}