From bbdb6355c48e0305cab37d4cffc4458abc74a153 Mon Sep 17 00:00:00 2001 From: Abhinav Shinde <143414991+Abhi9shinde@users.noreply.github.com> Date: Mon, 13 Jan 2025 20:29:54 +0530 Subject: [PATCH] Footer UI Update --- src/componets/footer.js | 88 +++++++++++++++++++++-------------------- 1 file changed, 45 insertions(+), 43 deletions(-) diff --git a/src/componets/footer.js b/src/componets/footer.js index f028651..2fc5f7a 100644 --- a/src/componets/footer.js +++ b/src/componets/footer.js @@ -1,13 +1,13 @@ -import React from 'react'; -import styled from 'styled-components'; -import { motion } from 'framer-motion'; -import { Link } from 'react-router-dom'; +import React from "react"; +import styled from "styled-components"; +import { motion } from "framer-motion"; +import { Link } from "react-router-dom"; -// Styled components for the footer (unchanged) +// Styled components for the footer const FooterContainer = styled.footer` - background-color: #78350f; + background: linear-gradient(135deg, #5b2c1a, #8e5234); color: #fffbeb; - padding: 2rem 3rem 2rem; + padding: 1.5rem 2rem; text-align: center; position: relative; bottom: 0; @@ -20,7 +20,7 @@ const FooterContent = styled.div` margin: 0 auto; p { - margin: 0.5rem 0; + margin: 0.2rem 0; font-size: 1rem; line-height: 1.5rem; @@ -38,8 +38,8 @@ const FooterContent = styled.div` const InfoSection = styled.div` display: flex; justify-content: space-between; - margin-top: 1.3rem; - margin-bottom: 1.3rem; + margin: 2rem 0; + text-align: left; @media (max-width: 768px) { flex-direction: column; @@ -54,31 +54,21 @@ const InfoColumn = styled.div` h3 { font-size: 1.2rem; margin-bottom: 1rem; + color: #ffd6a5; } p, a { font-size: 0.9rem; - color: rgb(255, 255, 255); + color: #fffbeb; text-decoration: none; - display: block; margin-bottom: 0.5rem; + display: block; } a:hover { color: #fbbf24; - } - - @media (max-width: 768px) { - h3 { - font-size: 1.2rem; - margin-bottom: 0rem; - } - - p { - font-size: 1rem; - margin: 0rem; - } + text-decoration: underline; } `; @@ -86,7 +76,7 @@ const SocialIcons = styled.div` display: flex; justify-content: center; gap: 1rem; - margin-top: 1rem; + margin-top: 1.5rem; @media (max-width: 768px) { gap: 1.2rem; @@ -99,11 +89,10 @@ const SocialIcon = styled(motion.a)` text-decoration: none; padding: 0.5rem; border-radius: 50%; - transition: color 0.3s ease; + transition: all 0.3s ease; &:hover { color: #fbbf24; - transform: scale(1.2); } @media (max-width: 768px) { @@ -111,6 +100,14 @@ const SocialIcon = styled(motion.a)` } `; +const Divider = styled.hr` + border: none; + height: 2px; + background: #ffd6a5; + margin: 2rem auto; + width: 80%; +`; + function Footer() { return ( @@ -123,19 +120,18 @@ function Footer() { rel="noopener noreferrer" whileHover={{ scale: 1.2 }} aria-label="Facebook" - role="link" > - + {/* Facebook icon */} - {/* Updated Twitter icon */} + {/* LinkedIn icon */} - + {/* Instagram icon */} - {/* LinkedIn icon */} + {/* GitHub icon */} + {/* Divider */} + + {/* Informational Sections */}

About Us

- Founded in 2010, MsCafe is dedicated to serving the finest coffee with passion and - expertise. We source our beans from sustainable farms across the globe. + Founded in 2010, MsCafe is dedicated to serving the finest coffee + with passion and expertise. We source our beans from sustainable + farms across the globe.

@@ -176,26 +175,29 @@ function Footer() { Contact Testimonial -

Contact Us

Email: contact@mscafe.com

Phone: (123) 456-7890

-

Location

123 Coffee St, Bean Town, USA

- + View on Map

+ {/* Footer Text */}

© {new Date().getFullYear()} MsCafe. All rights reserved.

-

Made with ♥ by Mscoder

+

Made with ♥ by MsCoder

);