From c33841ecb1f20802d4244f7fe96285f8049f8cb2 Mon Sep 17 00:00:00 2001 From: tamalCodes Date: Wed, 4 Dec 2024 19:45:09 +0530 Subject: [PATCH] fix: more changes to UI --- src/components/private/landing/Landing.jsx | 3 +- src/components/shared/navbar/Navbar.scss | 3 +- src/pages/Home.jsx | 6 +- src/pages/clubs/Clubs.jsx | 40 +++++++---- src/pages/clubs/Clubs.scss | 80 +++++++++++++++++++++- src/pages/events/all/Events.jsx | 12 +--- src/pages/events/all/Events.scss | 5 +- 7 files changed, 118 insertions(+), 31 deletions(-) diff --git a/src/components/private/landing/Landing.jsx b/src/components/private/landing/Landing.jsx index 9df2e4a6..cab4dc9d 100644 --- a/src/components/private/landing/Landing.jsx +++ b/src/components/private/landing/Landing.jsx @@ -2,7 +2,7 @@ import { selectIsLoggedIn } from "@redux/slice/userSlice"; import { useEffect, useState } from "react"; import { useSelector } from "react-redux"; import Vector from "../../../assets/pictures/Banner/Vector.png"; -import { Button } from "../../shared"; +import { Button, Navbar } from "../../shared"; import "./Landing.scss"; const Landing = () => { @@ -21,6 +21,7 @@ const Landing = () => { return ( <> +
diff --git a/src/components/shared/navbar/Navbar.scss b/src/components/shared/navbar/Navbar.scss index 4594d0fd..acf39147 100644 --- a/src/components/shared/navbar/Navbar.scss +++ b/src/components/shared/navbar/Navbar.scss @@ -4,7 +4,8 @@ display: flex; align-items: center; justify-content: space-between; - z-index: 100; + position: sticky; + z-index: 9999; @media screen and (max-width: 430px) { padding: 0.8rem 1.5rem; diff --git a/src/pages/Home.jsx b/src/pages/Home.jsx index 05948e08..91da1ba9 100644 --- a/src/pages/Home.jsx +++ b/src/pages/Home.jsx @@ -1,9 +1,9 @@ import Cookies from "js-cookie"; -import React, { useEffect } from "react"; +import { useEffect } from "react"; import { Helmet } from "react-helmet-async"; import { useDispatch } from "react-redux"; import { Landing } from "../components/private/index.js"; -import { Footer, Navbar } from "../components/shared"; +import { Footer } from "../components/shared"; import { toggleUserLogin, updateUserData } from "../redux/slice/userSlice.js"; import { successCallback } from "../service/MilanApi.js"; import { showErrorToast, showSuccessToast } from "../utils/Toasts.js"; @@ -40,8 +40,6 @@ const Home = () => { - -