From 550fcb21b7be965459043ca0287ac1b593b07a94 Mon Sep 17 00:00:00 2001 From: Juthatip McDevitt Date: Mon, 22 Apr 2024 08:45:33 -0500 Subject: [PATCH] updated nav menu funtionality --- awwwards_ss4/src/components/Home.jsx | 2 ++ awwwards_ss4/src/components/NavMenu.jsx | 29 +++++++++++++++++++++++++ awwwards_ss4/src/index.css | 3 +++ 3 files changed, 34 insertions(+) create mode 100644 awwwards_ss4/src/components/NavMenu.jsx diff --git a/awwwards_ss4/src/components/Home.jsx b/awwwards_ss4/src/components/Home.jsx index c61ba66..3a65868 100644 --- a/awwwards_ss4/src/components/Home.jsx +++ b/awwwards_ss4/src/components/Home.jsx @@ -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 = () => { {isActiveBag && } {isActiveSearch && } + {isActive && } diff --git a/awwwards_ss4/src/components/NavMenu.jsx b/awwwards_ss4/src/components/NavMenu.jsx new file mode 100644 index 0000000..21acf0c --- /dev/null +++ b/awwwards_ss4/src/components/NavMenu.jsx @@ -0,0 +1,29 @@ + + +const NavMenu = () => { + return ( +
+
+
+ Best sellers21 + Latest01 + All21 +
+
+ Face04 + Body04 + Kits20 + Tools05 +
+
+
+
+ Ethos + Apothecary + journal +
+
+ ) +} + +export default NavMenu \ No newline at end of file diff --git a/awwwards_ss4/src/index.css b/awwwards_ss4/src/index.css index 5eaa77f..bcfecfd 100644 --- a/awwwards_ss4/src/index.css +++ b/awwwards_ss4/src/index.css @@ -2,6 +2,9 @@ @tailwind components; @tailwind utilities; +html{ + overflow-x: hidden; +} body{ font-family: "Space Mono", monospace; }