diff --git a/src/Pages/PremiumBeans.js b/src/Pages/PremiumBeans.js index 28d56da..d8444a3 100644 --- a/src/Pages/PremiumBeans.js +++ b/src/Pages/PremiumBeans.js @@ -7,6 +7,8 @@ const PremiumContainer = styled.div` max-width: 1200px; margin: 0 auto; background-color: #fffbeb; + box-shadow: 1px 1px 5px 6px #888888; + `; const FeatureTitle = styled(motion.h1)` diff --git a/src/componets/Navbar.js b/src/componets/Navbar.js index de0d61e..f979f30 100644 --- a/src/componets/Navbar.js +++ b/src/componets/Navbar.js @@ -1,9 +1,9 @@ -import React, { useState, useEffect } from 'react'; -import { Link, useLocation} from 'react-router-dom'; -import { useSelector, useDispatch } from 'react-redux'; -import { logout } from '../Store/authSlice'; -import styled from 'styled-components'; -import { motion, AnimatePresence } from 'framer-motion'; +import React, { useState, useEffect } from "react"; +import { Link } from "react-router-dom"; +import { useSelector, useDispatch } from "react-redux"; +import { logout } from "../Store/authSlice"; +import styled from "styled-components"; +import { motion, AnimatePresence } from "framer-motion"; const NavbarContainer = styled(motion.nav)` display: flex; @@ -19,7 +19,7 @@ const NavbarContainer = styled(motion.nav)` right: 0; z-index: 1000; transition: all 0.3s ease; - border-bottom: 2px solid #8B4513; + border-bottom: 2px solid #8b4513; &.scrolled { padding: 0.8rem 2rem; @@ -27,13 +27,13 @@ const NavbarContainer = styled(motion.nav)` } &::before { - content: ''; + content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; - background: url('/coffee-beans-pattern.png') repeat; + background: url("/coffee-beans-pattern.png") repeat; opacity: 0.05; pointer-events: none; } @@ -42,17 +42,17 @@ const NavbarContainer = styled(motion.nav)` const Logo = styled(motion.div)` font-size: 2rem; font-weight: 700; - font-family: 'Playfair Display', serif; - + font-family: "Playfair Display", serif; + a { - color: #D2691E; + color: #d2691e; text-decoration: none; - background: linear-gradient(to right, #D2691E, #CD853F); + background: linear-gradient(to right, #d2691e, #cd853f); -webkit-background-clip: text; -webkit-text-fill-color: transparent; transition: all 0.3s ease; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); - + &:hover { opacity: 0.9; } @@ -71,33 +71,29 @@ const NavLinks = styled(motion.div)` const NavLink = styled(motion.div)` position: relative; - + a { - color: #DEB887; + color: #deb887; text-decoration: none; font-weight: 500; font-size: 1.1rem; transition: all 0.3s ease; - font-family: 'Poppins', sans-serif; - + font-family: "Poppins", sans-serif; + &:hover { - color: #FFE4B5; + color: #ffe4b5; } } - &.active a { - text-decoration: underline; - color: #D2691E; - } &::after { - content: '☕'; + content: "☕"; position: absolute; font-size: 0.8rem; bottom: -15px; left: 50%; transform: translateX(-50%) scale(0); transition: transform 0.3s ease; - color: #D2691E; + color: #d2691e; } &:hover::after { @@ -108,10 +104,10 @@ const NavLink = styled(motion.div)` const MobileMenuButton = styled(motion.button)` display: none; background: none; - border: 2px solid #D2691E; + border: 2px solid #d2691e; font-size: 1.8rem; cursor: pointer; - color: #DEB887; + color: #deb887; padding: 0.5rem; border-radius: 8px; transition: all 0.3s ease; @@ -124,7 +120,7 @@ const MobileMenuButton = styled(motion.button)` &:hover { background: rgba(210, 105, 30, 0.2); - color: #FFE4B5; + color: #ffe4b5; } `; @@ -147,21 +143,21 @@ const MobileNavLink = styled(motion.div)` border-radius: 8px; transition: all 0.3s ease; margin-bottom: 0.5rem; - + a { - color: #DEB887; + color: #deb887; text-decoration: none; font-weight: 500; display: block; transition: all 0.3s ease; - font-family: 'Poppins', sans-serif; + font-family: "Poppins", sans-serif; } &:hover { background: rgba(210, 105, 30, 0.2); - + a { - color: #FFE4B5; + color: #ffe4b5; transform: translateX(10px); } } @@ -172,15 +168,14 @@ function Navbar() { const [scrolled, setScrolled] = useState(false); const isLoggedIn = useSelector((state) => state.auth.isLoggedIn); const dispatch = useDispatch(); - const location = useLocation(); useEffect(() => { const handleScroll = () => { setScrolled(window.scrollY > 20); }; - window.addEventListener('scroll', handleScroll); - return () => window.removeEventListener('scroll', handleScroll); + window.addEventListener("scroll", handleScroll); + return () => window.removeEventListener("scroll", handleScroll); }, []); const handleLogout = () => { @@ -197,63 +192,49 @@ function Navbar() { initial={{ y: -100 }} animate={{ y: 0 }} transition={{ duration: 0.5 }} - className={scrolled ? 'scrolled' : ''} + className={scrolled ? "scrolled" : ""} > MsCafe - - {/* */} - + Home - {/* */} - + Shop - - {/* */} - + About - - {/* */} - - Testimonial + + Testimonial + + + Premium Beans - - {/* */} - + Contact - + {isLoggedIn ? ( <> - + Profile - + Cart - Logout ) : ( - + Login )} @@ -263,7 +244,7 @@ function Navbar() { whileHover={{ scale: 1.1 }} whileTap={{ scale: 0.9 }} > - {isOpen ? '×' : '☰'} + {isOpen ? "×" : "☰"} @@ -275,42 +256,63 @@ function Navbar() { transition={{ duration: 0.3 }} > - Home + + Home + - Shop + + Shop + - About + + About + - Testimonial + + Testimonial + - Premium Beans + + Premium Beans + - Contact + + Contact + {isLoggedIn ? ( <> - Profile + + Profile + - Cart + + Cart + - { handleLogout(); toggleMenu(); }} - style={{ cursor: 'pointer' }} + { + handleLogout(); + toggleMenu(); + }} + style={{ cursor: "pointer" }} > Logout ) : ( - Login + + Login + )} @@ -320,4 +322,4 @@ function Navbar() { ); } -export default Navbar; \ No newline at end of file +export default Navbar;