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

Making Nav header sticky #244

Open
wants to merge 1 commit into
base: Dev
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ function Header() {
const { pathname } = useLocation();

return (
<div className="bg-secondary">
<header className="py-2.5 md:px-10 px-5 flex items-center justify-between md:shadow-none shadow-md relative max-w-[1440px] md:mx-auto">
<div className="bg-secondary relative z-30 w-full">
<header className="bg-secondary py-4 md:px-10 px-6 flex items-center justify-between w-full md:shadow-none shadow-md fixed md:mx-auto">
{/* logo */}
<Link to="/" className="md:w-[60px] w-12">
<LazyLoadImage src={logo} alt="logo" className="w-full" />
Expand Down
4 changes: 2 additions & 2 deletions src/components/shop/CartIcon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ function CartIcon() {
<SectionWrapper>
<div className="flex justify-end ">
<div className="w-12 md:w-16 h-12 md:h-16 rounded-full p-0.5 md:p-1 bg-white border shadow-lg cursor-pointer">
<div className="flex w-full h-full p-1.5 md:p-2 rounded-full justify-center items-center bg-green-dark">
<MdAddShoppingCart color="white" className="h-full w-full" />
<div className="flex w-full h-full p-1 md:p-2 rounded-full justify-center items-center bg-green-dark">
<MdAddShoppingCart color="white" className="h-full w-full" size="10"/>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/landingPage/sections/HeroSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ function HeroSection() {
}, []);

return (
<section className="py-16 flex items-center justify-center flex-col md:gap-10 max-w-1440 mx-auto">
<section className=" flex items-center justify-center flex-col md:gap-10 max-w-1440 mx-auto">
{/* Hero section Description */}
<div className="px-3 md:px-0 max-w-[625px] flex flex-col items-center gap-4">
<div className="px-3 mt-32 max-md:mt-24 md:px-0 max-w-[625px] flex flex-col items-center gap-4">
<h1 className="md:text-[40px] text-2xl leading-tight font-medium text-gray-900 text-center">
Accelerating <span className="text-primary">growth </span>
and
Expand Down
Loading