Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Social media icons to the website #349

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "BioTree Server",
"main": "index.js",
"scripts": {
"scripts": {
"start": "nodemon index.js"
},
"keywords": [
Expand Down
81 changes: 79 additions & 2 deletions site/components/Footer.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
import React from 'react'
import Link from 'next/link'
import { Apple, Play } from 'lucide-react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faInstagram, faDiscord, faFacebook, faTwitter, faWhatsapp } from '@fortawesome/free-brands-svg-icons'
import '@fortawesome/fontawesome-free/css/all.min.css'


const Footer = () => {

const iconStyle = {
color: 'white',
transition: 'transform 0.2s, color 0.2s',
cursor: 'pointer',
fontSize: '2rem',
};

const hoverStyle = {
color: '#f79c42',
transform: 'scale(1.2)',
};



const Footer = () => {
return (

<footer aria-label="Site Footer" className="relative bg-gray-900 text-white py-10 px-6">

{/* Wave Effect (You can add SVG wave here for a design touch) */}
Expand All @@ -24,6 +44,60 @@ const Footer = () => {
<p className="text-sm text-gray-400 mt-2">&copy; {new Date().getFullYear()} BioTree. All rights reserved.</p>
</div>


<div className="flex space-x-4">
<a
href="https://www.instagram.com"
target="_blank"
rel="noopener noreferrer"
style={iconStyle}
onMouseOver={(e) => { e.currentTarget.style.color = hoverStyle.color; e.currentTarget.style.transform = hoverStyle.transform; }}
onMouseOut={(e) => { e.currentTarget.style.color = iconStyle.color; e.currentTarget.style.transform = 'scale(1)'; }}
>
<i className="fab fa-instagram"></i>
</a>
<a
href="https://www.discord.com"
target="_blank"
rel="noopener noreferrer"
style={iconStyle}
onMouseOver={(e) => { e.currentTarget.style.color = hoverStyle.color; e.currentTarget.style.transform = hoverStyle.transform; }}
onMouseOut={(e) => { e.currentTarget.style.color = iconStyle.color; e.currentTarget.style.transform = 'scale(1)'; }}
>
<i className="fab fa-discord"></i>
</a>
<a
href="https://www.facebook.com"
target="_blank"
rel="noopener noreferrer"
style={iconStyle}
onMouseOver={(e) => { e.currentTarget.style.color = hoverStyle.color; e.currentTarget.style.transform = hoverStyle.transform; }}
onMouseOut={(e) => { e.currentTarget.style.color = iconStyle.color; e.currentTarget.style.transform = 'scale(1)'; }}
>
<i className="fab fa-facebook"></i>
</a>
<a
href="https://www.twitter.com"
target="_blank"
rel="noopener noreferrer"
style={iconStyle}
onMouseOver={(e) => { e.currentTarget.style.color = hoverStyle.color; e.currentTarget.style.transform = hoverStyle.transform; }}
onMouseOut={(e) => { e.currentTarget.style.color = iconStyle.color; e.currentTarget.style.transform = 'scale(1)'; }}
>
<i className="fab fa-twitter"></i>
</a>
<a
href="https://www.whatsapp.com"
target="_blank"
rel="noopener noreferrer"
style={iconStyle}
onMouseOver={(e) => { e.currentTarget.style.color = hoverStyle.color; e.currentTarget.style.transform = hoverStyle.transform; }}
onMouseOut={(e) => { e.currentTarget.style.color = iconStyle.color; e.currentTarget.style.transform = 'scale(1)'; }}
>
<i className="fab fa-whatsapp"></i>
</a>
</div>

{/* Right Section: Download the App */}
<div className="flex space-x-4 md:order-3">
<Link href="https://play.google.com/store" target="_blank">
Expand All @@ -41,6 +115,9 @@ const Footer = () => {
</Link>
</div>




{/* Feature: Contact Us */}
<div className="flex flex-col items-start mb-6 md:mb-0">
<h3 className="mb-4 text-lg font-semibold">Contact Us</h3>
Expand Down Expand Up @@ -151,4 +228,4 @@ const Footer = () => {
)
}

export default Footer
export default Footer;
95 changes: 95 additions & 0 deletions site/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 site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
"lint": "next lint"
},
"dependencies": {
<<<<<<< HEAD
"@fortawesome/fontawesome-free": "^6.6.0",
"@fortawesome/free-brands-svg-icons": "^6.6.0",
"@fortawesome/react-fontawesome": "^0.2.2",
=======
"@heroicons/react": "^2.1.5",
>>>>>>> 53b6d387bbc0350739c6f6b87cef6690663dfd28
"eslint": "8.37.0",
"eslint-config-next": "13.2.4",
"framer-motion": "^11.5.4",
Expand Down