From 481971749d05dfe9281c942d73ce98cc51f005bd Mon Sep 17 00:00:00 2001 From: Janumala Akhilendra <82641474+JanumalaAkhilendra@users.noreply.github.com> Date: Sat, 11 Jan 2025 18:12:25 +0530 Subject: [PATCH] Added and updated the Footer Icons --- src/componets/footer.js | 78 ++++++++++++++++++++++++----------------- 1 file changed, 46 insertions(+), 32 deletions(-) diff --git a/src/componets/footer.js b/src/componets/footer.js index d4a983d..f028651 100644 --- a/src/componets/footer.js +++ b/src/componets/footer.js @@ -2,7 +2,8 @@ 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 + +// Styled components for the footer (unchanged) const FooterContainer = styled.footer` background-color: #78350f; color: #fffbeb; @@ -12,26 +13,25 @@ const FooterContainer = styled.footer` bottom: 0; width: 100%; box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1); - `; const FooterContent = styled.div` max-width: 1200px; margin: 0 auto; - + p { margin: 0.5rem 0; font-size: 1rem; line-height: 1.5rem; - + &:first-child { font-weight: 500; } } - @media (max-width:768px){ - display:flex; - flex-direction:column; + @media (max-width: 768px) { + display: flex; + flex-direction: column; } `; @@ -40,12 +40,10 @@ const InfoSection = styled.div` justify-content: space-between; margin-top: 1.3rem; margin-bottom: 1.3rem; - // text-align: left; @media (max-width: 768px) { flex-direction: column; - gap:1.5rem; - + gap: 1.5rem; } `; @@ -58,9 +56,10 @@ const InfoColumn = styled.div` margin-bottom: 1rem; } - p, a { + p, + a { font-size: 0.9rem; - color:rgb(255, 255, 255); + color: rgb(255, 255, 255); text-decoration: none; display: block; margin-bottom: 0.5rem; @@ -70,23 +69,23 @@ const InfoColumn = styled.div` color: #fbbf24; } - @media (max-width:768px){ - h3{ - font-size:1.2rem; - margin-bottom:0rem; - } - - p{ - font-size:1rem; - margin:0rem; - } + @media (max-width: 768px) { + h3 { + font-size: 1.2rem; + margin-bottom: 0rem; + } + p { + font-size: 1rem; + margin: 0rem; + } + } `; const SocialIcons = styled.div` display: flex; justify-content: center; - gap: 1rem; //additional gap removed. + gap: 1rem; margin-top: 1rem; @media (max-width: 768px) { @@ -101,7 +100,7 @@ const SocialIcon = styled(motion.a)` padding: 0.5rem; border-radius: 50%; transition: color 0.3s ease; - + &:hover { color: #fbbf24; transform: scale(1.2); @@ -116,7 +115,6 @@ function Footer() { return ( - {/* Social Icons */} - {/* 'className' should've been used instead of 'class'. */} + {/* Updated Twitter icon */} + + {/* LinkedIn icon */} + - + {/* 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. +

- +

Quick Links

Home Shop @@ -175,13 +186,16 @@ function Footer() {

Location

123 Coffee St, Bean Town, USA

-

View on Map

+

+ + View on Map + +

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

Made with ♥ by Mscoder

-
);