Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance footer component with quick links and update social media icons #272

Merged
merged 3 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 14 additions & 17 deletions src/Pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const HomeContainer = styled.div`

const HeroSection = styled.section`
display: flex;
padding:0;
margin:0;
top:-2rem;
padding: 0;
margin: 0;
top: -2rem;
flex-direction: column;
align-items: center;
justify-content: center;
Expand All @@ -30,7 +30,7 @@ const HeroSection = styled.section`

width: 100%;

gap:-0.5rem;
gap: -0.5rem;

background-image: linear-gradient(
rgba(44, 19, 11, 0.7),
Expand All @@ -56,8 +56,7 @@ const HeroSection = styled.section`

const Title = styled(motion.h1)`
font-size: 5rem;



font-family: "Playfair Display", serif;
color: #ffe4b5;

Expand All @@ -68,22 +67,20 @@ const Title = styled(motion.h1)`

const Subtitle = styled(motion.p)`
font-size: 1.8rem;

font-family: "Poppins", sans-serif;
color: #deb887;
max-width: 600px;


@media (max-width: 768px) {
font-size: 1.4rem;

}
`;

const StyledButton = styled(Button)`
background: #d2691e;
color: #ffe4b5;
padding:0.8rem;
padding: 0.8rem;
font-size: 1.2rem;
border-radius: 30px;
border: 2px solid #8b4513;
Expand All @@ -99,8 +96,9 @@ const StyledButton = styled(Button)`
}

@media (min-width: 783px) {
font-size:0.8rem;
padding: 0.5rem}
font-size: 0.8rem;
padding: 0.5rem;
}
`;

const FeaturesSection = styled.section`
Expand All @@ -112,8 +110,6 @@ const FeaturesSection = styled.section`
position: relative;
overflow: visible;



@media (max-width: 768px) {
padding: 4rem 2rem;
gap: 2rem;
Expand Down Expand Up @@ -183,9 +179,9 @@ const SpecialtySection = styled.section`
background: #2c130b;
position: relative;

&::before {
content: "Our Specialties";
position: absolute;
& h1 {
width: 100%;
text-align: center;
top: 2rem;
left: 50%;
transform: translateX(-50%);
Expand Down Expand Up @@ -354,6 +350,7 @@ function Home() {
</FeatureCard>
</FeaturesSection>
<SpecialtySection ref={specialtyRef}>
<h1>Our Specialities</h1>
<SpecialtyImage
src="https://img.freepik.com/free-photo/brown-coffee-beans-seed_74190-6651.jpg?ga=GA1.1.1542821208.1727756299&semt=ais_hybrid "
alt="Specialty Coffee 1"
Expand Down
14 changes: 11 additions & 3 deletions src/componets/footer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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
const FooterContainer = styled.footer`
background-color: #78350f;
Expand Down Expand Up @@ -134,10 +134,10 @@ function Footer() {
target="_blank"
rel="noopener noreferrer"
whileHover={{ scale: 1.2 }}
aria-label="Twitter"
aria-label="twitter"
role="link"
>
<i class="fa-brands fa-x-twitter"></i>
<i className="fab fa-twitter"></i>
</SocialIcon>
<SocialIcon
href="https://instagram.com"
Expand All @@ -157,6 +157,14 @@ function Footer() {
<h3>About Us</h3>
<p>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.</p>
</InfoColumn>
<InfoColumn >
<h3>Quick Links</h3>
<Link to="/">Home</Link>
<Link to="/shop">Shop</Link>
<Link to="/about">About</Link>
<Link to="/contact">Contact</Link>
<Link to="/testimonial">Testimonial</Link>
</InfoColumn>

<InfoColumn>
<h3>Contact Us</h3>
Expand Down
Loading