-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added responsive footer to the webpage.
- Loading branch information
Showing
6 changed files
with
262 additions
and
24 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,48 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
.footer-container { | ||
@apply max-w-6xl mx-auto px-4 lg:px-8; | ||
} | ||
|
||
.footer-section { | ||
@apply flex flex-wrap justify-between mb-8; | ||
} | ||
|
||
.footer-section div { | ||
@apply w-full lg:w-1/2 xl:w-1/3 p-4; | ||
} | ||
|
||
.footer-section h4 { | ||
@apply text-xl font-bold mb-4; | ||
} | ||
|
||
.footer-section ul { | ||
@apply list-none mb-0; | ||
} | ||
|
||
.footer-section li { | ||
@apply mb-2; | ||
} | ||
|
||
.footer-section a { | ||
@apply text-white hover:text-gray-400; | ||
} | ||
|
||
.copyright { | ||
@apply text-sm text-center; | ||
} | ||
|
||
/* Custom styles */ | ||
.bg-footer { | ||
background-color: #2f2f2f; | ||
} | ||
|
||
.text-footer { | ||
color: #ffffff; | ||
} | ||
|
||
.hover-footer:hover { | ||
color: #ccc; | ||
} |
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,59 @@ | ||
import React from 'react'; | ||
|
||
const Footer = () => { | ||
return ( | ||
<footer className="bg-gray-800 text-white py-6"> | ||
<div className="container mx-auto text-center"> | ||
<h2 className="text-2xl font-bold mb-4">Stay Connected</h2> | ||
<p className="mb-4"> | ||
Subscribe to our newsletter to get the latest updates! | ||
</p> | ||
<form className="mb-4"> | ||
<input | ||
type="email" | ||
placeholder="Your email address" | ||
className="p-2 rounded-l-md focus:outline-none" | ||
/> | ||
<button className="bg-blue-500 text-white p-2 rounded-r-md hover:bg-blue-600"> | ||
Subscribe | ||
</button> | ||
</form> | ||
<ul className="flex justify-center space-x-4 mb-4"> | ||
<li> | ||
<a href="#" className="hover:text-blue-400"> | ||
Terms of Service | ||
</a> | ||
</li> | ||
<li> | ||
<a href="#" className="hover:text-blue-400"> | ||
Privacy Policy | ||
</a> | ||
</li> | ||
<li> | ||
<a href="#" className="hover:text-blue-400"> | ||
Contact Us | ||
</a> | ||
</li> | ||
</ul> | ||
{/* Social Media Icons */} | ||
<div className="flex justify-center space-x-6 mb-4"> | ||
<a href="#" aria-label="Facebook" className="hover:text-blue-400"> | ||
<i className="fab fa-facebook-f"></i> | ||
</a> | ||
<a href="#" aria-label="Twitter" className="hover:text-blue-400"> | ||
<i className="fab fa-twitter"></i> | ||
</a> | ||
<a href="#" aria-label="Instagram" className="hover:text-blue-400"> | ||
<i className="fab fa-instagram"></i> | ||
</a> | ||
<a href="#" aria-label="LinkedIn" className="hover:text-blue-400"> | ||
<i className="fab fa-linkedin-in"></i> | ||
</a> | ||
</div> | ||
<p className="mt-4">© 2024 dypcetclubs. All rights reserved.</p> | ||
</div> | ||
</footer> | ||
); | ||
}; | ||
|
||
export default Footer; |