|
1 | 1 | import React from 'react'; |
| 2 | +import { Link } from 'react-router-dom'; |
2 | 3 |
|
3 | 4 | const Footer = () => { |
4 | 5 | return ( |
5 | | - <footer className="bg-gray-800 p-4 mt-8"> |
6 | | - <div className="container mx-auto text-center text-gray-300"> |
7 | | - © {new Date().getFullYear()} My Blog. All Rights Reserved. |
| 6 | + <footer className="mt-16 sm:mt-24"> |
| 7 | + <div className="mx-auto max-w-7xl px-6 lg:px-8"> |
| 8 | + <div className="border-t border-gray-700/50 py-12"> |
| 9 | + <div className="grid grid-cols-1 md:grid-cols-2 gap-8"> |
| 10 | + <div> |
| 11 | + <h3 className="text-lg font-semibold text-white">Newsletter</h3> |
| 12 | + <p className="mt-4 text-sm text-gray-400">Subscribe to our newsletter to get the latest updates straight to your inbox.</p> |
| 13 | + <form className="mt-4 flex gap-2"> |
| 14 | + <input type="email" placeholder="Enter your email" className="bg-gray-800 text-white px-4 py-2 rounded-md w-full" /> |
| 15 | + <button type="submit" className="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-md transition-colors">Subscribe</button> |
| 16 | + </form> |
| 17 | + </div> |
| 18 | + <div className="md:text-right"> |
| 19 | + <h3 className="text-lg font-semibold text-white">Follow Us</h3> |
| 20 | + <div className="mt-4 flex md:justify-end gap-4"> |
| 21 | + <a href="#" className="text-gray-400 hover:text-white transition-colors">Twitter</a> |
| 22 | + <a href="#" className="text-gray-400 hover:text-white transition-colors">GitHub</a> |
| 23 | + <a href="#" className="text-gray-400 hover:text-white transition-colors">LinkedIn</a> |
| 24 | + </div> |
| 25 | + </div> |
| 26 | + </div> |
| 27 | + <div className="mt-8 border-t border-gray-700/50 pt-8 flex flex-wrap items-center justify-between gap-4"> |
| 28 | + <div className="flex flex-wrap items-center gap-6 text-sm font-medium text-gray-400"> |
| 29 | + <Link to="/" className="hover:text-white transition-colors">Home</Link> |
| 30 | + <Link to="/blog" className="hover:text-white transition-colors">Blog</Link> |
| 31 | + </div> |
| 32 | + <p className="text-sm text-gray-500"> |
| 33 | + © {new Date().getFullYear()} My Awesome Blog. All rights reserved. |
| 34 | + </p> |
| 35 | + </div> |
| 36 | + </div> |
8 | 37 | </div> |
9 | 38 | </footer> |
10 | 39 | ); |
|
0 commit comments