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

fixing navlink alignment #192

Merged
merged 2 commits into from
Jan 4, 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
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/componets/Navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ body.menu-open {
z-index: 1000;
padding: 10px 20px;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: center;
align-items: center;
gap: 3rem;;
}

/*Highlighting current page*/
Expand Down
71 changes: 70 additions & 1 deletion src/componets/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import styled from 'styled-components';
import { motion } from 'framer-motion';

// Styled components for the footer
const FooterContainer = styled.footer`
background-color: #78350f;
color: #fffbeb;
Expand All @@ -28,11 +29,49 @@ const FooterContent = styled.div`
}
`;

const InfoSection = styled.div`
display: flex;
justify-content: space-between;
margin-top: 2rem;
text-align: left;

@media (max-width: 768px) {
flex-direction: column;
text-align: center;
}
`;

const InfoColumn = styled.div`
flex: 1;
margin: 0 1rem;

h3 {
font-size: 1.2rem;
margin-bottom: 1rem;
}

p, a {
font-size: 1rem;
color: #fffbeb;
text-decoration: none;
display: block;
margin-bottom: 0.5rem;
}

a:hover {
color: #fbbf24;
}
`;

const SocialIcons = styled.div`
display: flex;
justify-content: center;
gap: 2rem;
margin-top: 1.5rem;

@media (max-width: 768px) {
gap: 1.2rem;
}
`;

const SocialIcon = styled(motion.a)`
Expand All @@ -45,6 +84,11 @@ const SocialIcon = styled(motion.a)`

&:hover {
color: #fbbf24;
transform: scale(1.2);
}

@media (max-width: 768px) {
font-size: 1.3rem;
}
`;

Expand All @@ -54,13 +98,36 @@ function Footer() {
<FooterContent>
<p>&copy; {new Date().getFullYear()} MsCafe. All rights reserved.</p>
<p>Made with ♥ by Mscoder</p>

{/* Informational Sections */}
<InfoSection>
<InfoColumn>
<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>Contact Us</h3>
<p>Email: contact@mscafe.com</p>
<p>Phone: (123) 456-7890</p>
</InfoColumn>

<InfoColumn>
<h3>Location</h3>
<p>123 Coffee St, Bean Town, USA</p>
<p><a href="https://www.google.com/maps" target="_blank" rel="noopener noreferrer">View on Map</a></p>
</InfoColumn>
</InfoSection>

{/* Social Icons */}
<SocialIcons>
<SocialIcon
href="https://facebook.com"
target="_blank"
rel="noopener noreferrer"
whileHover={{ scale: 1.2 }}
aria-label="Facebook"
role="link"
>
<i className="fab fa-facebook-f"></i>
</SocialIcon>
Expand All @@ -70,6 +137,7 @@ function Footer() {
rel="noopener noreferrer"
whileHover={{ scale: 1.2 }}
aria-label="Twitter"
role="link"
>
<i className="fab fa-twitter"></i>
</SocialIcon>
Expand All @@ -79,6 +147,7 @@ function Footer() {
rel="noopener noreferrer"
whileHover={{ scale: 1.2 }}
aria-label="Instagram"
role="link"
>
<i className="fab fa-instagram"></i>
</SocialIcon>
Expand All @@ -88,4 +157,4 @@ function Footer() {
);
}

export default Footer;
export default Footer;
Loading