Skip to content

Commit

Permalink
Added social media icons
Browse files Browse the repository at this point in the history
  • Loading branch information
sahithinandikula committed Oct 28, 2024
1 parent 8370b0c commit 72e77c0
Show file tree
Hide file tree
Showing 3 changed files with 167 additions and 1 deletion.
76 changes: 75 additions & 1 deletion site/components/Footer.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
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)',
};

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 @@ -21,6 +38,60 @@ const Footer = () => {
<p className="text-sm text-gray-400 mt-2">&copy; {new Date().getFullYear()} Your Company. 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 @@ -38,6 +109,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 @@ -85,4 +159,4 @@ const Footer = () => {
)
}

export default Footer
export default Footer;
89 changes: 89 additions & 0 deletions site/package-lock.json

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

3 changes: 3 additions & 0 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"lint": "next lint"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.6.0",
"@fortawesome/free-brands-svg-icons": "^6.6.0",
"@fortawesome/react-fontawesome": "^0.2.2",
"eslint": "8.37.0",
"eslint-config-next": "13.2.4",
"framer-motion": "^11.5.4",
Expand Down

0 comments on commit 72e77c0

Please sign in to comment.