updated nav menu funtionality
This commit is contained in:
parent
312cb1be9b
commit
550fcb21b7
3 changed files with 34 additions and 0 deletions
|
@ -12,6 +12,7 @@ import Img3 from "../assets/bg-3.webp"
|
|||
import { useState } from "react";
|
||||
import NavBag from "./NavBag";
|
||||
import NavSearch from "./NavSearch";
|
||||
import NavMenu from "./NavMenu";
|
||||
|
||||
|
||||
const Home = () => {
|
||||
|
@ -76,6 +77,7 @@ const Home = () => {
|
|||
<AnimatePresence mode="wait">
|
||||
{isActiveBag && <NavBag/>}
|
||||
{isActiveSearch && <NavSearch/>}
|
||||
{isActive && <NavMenu/>}
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
<Slider {...homeSlide}>
|
||||
|
|
29
awwwards_ss4/src/components/NavMenu.jsx
Normal file
29
awwwards_ss4/src/components/NavMenu.jsx
Normal file
|
@ -0,0 +1,29 @@
|
|||
|
||||
|
||||
const NavMenu = () => {
|
||||
return (
|
||||
<div className='overflow-hidden bg-[#FBF8F4] absolute w-[90.5vw] h-[50vh] rounded-b-3xl -z-10 px-4'>
|
||||
<div className='mt-40 grid grid-cols-2'>
|
||||
<div className='px-2 flex flex-col'>
|
||||
<a href="" className="flex gap-1 sm:gap-2 uppercase text-lg sm:text-xl mb-2">Best sellers<span className="text-xs">21</span></a>
|
||||
<a href="" className="flex gap-1 sm:gap-2 uppercase text-lg sm:text-xl mb-2">Latest<span className="text-xs">01</span></a>
|
||||
<a href="" className="flex gap-1 sm:gap-2 uppercase text-lg sm:text-xl mb-2">All<span className="text-xs">21</span></a>
|
||||
</div>
|
||||
<div className='px-2 flex flex-col'>
|
||||
<a href="" className="flex gap-1 sm:gap-2 uppercase text-lg sm:text-xl mb-2">Face<span className="text-xs">04</span></a>
|
||||
<a href="" className="flex gap-1 sm:gap-2 uppercase text-lg sm:text-xl mb-2">Body<span className="text-xs">04</span></a>
|
||||
<a href="" className="flex gap-1 sm:gap-2 uppercase text-lg sm:text-xl mb-2">Kits<span className="text-xs">20</span></a>
|
||||
<a href="" className="flex gap-1 sm:gap-2 uppercase text-lg sm:text-xl mb-2">Tools<span className="text-xs">05</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div className="border border-dashed border-black mt-4 mb-4 mx-2"></div>
|
||||
<div className='px-2 flex flex-col'>
|
||||
<a href="" className="flex gap-1 sm:gap-2 uppercase text-lg sm:text-xl mb-2">Ethos</a>
|
||||
<a href="" className="flex gap-1 sm:gap-2 uppercase text-lg sm:text-xl mb-2">Apothecary</a>
|
||||
<a href="" className="flex gap-1 sm:gap-2 uppercase text-lg sm:text-xl mb-2">journal</a>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default NavMenu
|
|
@ -2,6 +2,9 @@
|
|||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
html{
|
||||
overflow-x: hidden;
|
||||
}
|
||||
body{
|
||||
font-family: "Space Mono", monospace;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue