diff --git a/components/AccountSettingPage/index.jsx b/components/AccountSettingPage/index.jsx deleted file mode 100644 index 7b0ff58..0000000 --- a/components/AccountSettingPage/index.jsx +++ /dev/null @@ -1,16 +0,0 @@ -// import React, { useState } from "react"; -// import AccountSettings from "../modules/AccountSettings"; -// import PageCard from "../modules/__modules__/Card/PageCard"; - -// const AccountSettingsPage = () => { -// const [isTopNav, setIsTopNav] = useState(false); -// return ( -//
-// -// -// -//
-// ); -// }; - -// export default AccountSettingsPage; diff --git a/components/AccountSettingPage/index.tsx b/components/AccountSettingPage/index.tsx new file mode 100644 index 0000000..43ea3d0 --- /dev/null +++ b/components/AccountSettingPage/index.tsx @@ -0,0 +1,16 @@ +import React, { useState } from "react"; +import AccountSettings from "../modules/AccountSettings"; +import PageCard from "../modules/__modules__/Card/PageCard"; + +const AccountSettingsPage = () => { + const [isTopNav, setIsTopNav] = useState(false); + return ( +
+ + + +
+ ); +}; + +export default AccountSettingsPage; diff --git a/components/BottomPaler/BottomPalyer.jsx b/components/BottomPaler/BottomPalyer.jsx deleted file mode 100644 index 07ca10a..0000000 --- a/components/BottomPaler/BottomPalyer.jsx +++ /dev/null @@ -1,101 +0,0 @@ -// import React from "react"; -// import { -// LoopIcon, -// PlayListIcon, -// ShuffleIcon, -// VolumeDownIcon, -// VolumeUpIcon, -// } from "../modules/__modules/Vectors"; -// import { VNext, VPlay, VPrev } from "../modules/__modules__/_Vectors"; -// import Slider from "@mui/material/Slider"; -// import PropTypes from "prop-types"; - -// const BottomPlayer = ({ isFixed = true }) => { -// return ( -//
-//
-// {isFixed && ( -//
-// Keith -//
-//

Tell me u luv me

-//

Keith Urban

-//
-//
-// )} -//
-// -// -// -//
-//
- -//
-//
-// 00:00 -// -// 00:00 -//
-//
-// -// -// -// -// -//
-//
-// -//
-// -// -// -//
-//
-//
-//
-// ); -// }; - -// BottomPlayer.propTypes = { -// isFixed: PropTypes.bool, -// }; - -// export default BottomPlayer; diff --git a/components/BottomPaler/BottomPalyer.tsx b/components/BottomPaler/BottomPalyer.tsx new file mode 100644 index 0000000..6c34d6e --- /dev/null +++ b/components/BottomPaler/BottomPalyer.tsx @@ -0,0 +1,101 @@ +/* eslint-disable @next/next/no-img-element */ +import React, { FC } from "react"; +import { + LoopIcon, + PlayListIcon, + ShuffleIcon, + VolumeDownIcon, + VolumeUpIcon, +} from "../modules/__modules/Vectors"; +import { VNext, VPlay, VPrev } from "../modules/__modules__/_Vectors"; +import Slider from "@mui/material/Slider"; + +interface IProps { + isFixed?: boolean; +} + +const BottomPlayer: FC = ({ isFixed = true }) => { + return ( +
+
+ {isFixed && ( +
+ Keith +
+

Tell me u luv me

+

Keith Urban

+
+
+ )} +
+ + + +
+
+ +
+
+ 00:00 + + 00:00 +
+
+ + + + + +
+
+ +
+ + + +
+
+
+
+ ); +}; + +export default BottomPlayer; diff --git a/components/lib/atoms/index.js b/components/lib/atoms/index.js deleted file mode 100644 index dd79e3e..0000000 --- a/components/lib/atoms/index.js +++ /dev/null @@ -1,20 +0,0 @@ -// import { atom } from "recoil"; - -// // ----------- atom with one value here ------------------------ - -// const openMenuAtom = atom({ -// key: "openMenuAtom", -// default: false, -// }); - -// const leftNavPinedAtom = atom({ -// key: "leftNavPinedAtom", -// default: false, -// }); - -// const displaySettingsModalAtom = atom({ -// key: "displaysettingsModalAtom", -// default: false, -// }); - -// export { openMenuAtom, leftNavPinedAtom, displaySettingsModalAtom }; diff --git a/components/lib/atoms/index.ts b/components/lib/atoms/index.ts new file mode 100644 index 0000000..29aeb9d --- /dev/null +++ b/components/lib/atoms/index.ts @@ -0,0 +1,20 @@ +import { atom } from "recoil"; + +// ----------- atom with one value here ------------------------ + +const openMenuAtom = atom({ + key: "openMenuAtom", + default: false, +}); + +const leftNavPinedAtom = atom({ + key: "leftNavPinedAtom", + default: false, +}); + +const displaySettingsModalAtom = atom({ + key: "displaysettingsModalAtom", + default: false, +}); + +export { openMenuAtom, leftNavPinedAtom, displaySettingsModalAtom }; diff --git a/components/modules/AccountSettings/index.jsx b/components/modules/AccountSettings/index.jsx deleted file mode 100644 index d54b5a5..0000000 --- a/components/modules/AccountSettings/index.jsx +++ /dev/null @@ -1,112 +0,0 @@ -// import React from "react"; -// import PropTypes from "prop-types"; - -// const AccountSettings = ({ isTopNav }) => { -// return ( -//
-//
-//

-// Account Setting -//

-//
-//
-// -// -//
-//
-// -// -//
-//
-// -// -//
-// -//
-//
-//
-//

-// Social Media -//

-//
-//
-// -// -//
-//
-// -// -//
-//
-// -// -//
-//
-// -// -//
-//
-// -//
-//
-// ); -// }; - -// export default AccountSettings; diff --git a/components/modules/AccountSettings/index.tsx b/components/modules/AccountSettings/index.tsx new file mode 100644 index 0000000..2db38df --- /dev/null +++ b/components/modules/AccountSettings/index.tsx @@ -0,0 +1,115 @@ +import React, { FC } from "react"; + +interface IProps { + isTopNav: boolean; +} + +const AccountSettings: FC = ({ isTopNav }) => { + return ( +
+
+

+ Account Setting +

+
+
+ + +
+
+ + +
+
+ + +
+ +
+
+
+

+ Social Media +

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ ); +}; + +export default AccountSettings; diff --git a/components/modules/NavBar/LeftNav/AdminMenu/AdminSubmenu/index.jsx b/components/modules/NavBar/LeftNav/AdminMenu/AdminSubmenu/index.jsx deleted file mode 100644 index ff49db8..0000000 --- a/components/modules/NavBar/LeftNav/AdminMenu/AdminSubmenu/index.jsx +++ /dev/null @@ -1,48 +0,0 @@ -// import Link from "next/link"; -// import React from "react"; -// import { -// CategoryIcon, -// MicIcon, -// PlayCircleIcon, -// HomeSubMenuIcon, -// } from "../../../../__modules/Vectors"; - -// const AdminSubmenu = () => { -// return ( -//
    -// -//
  • -// -// -// -// DashBoard -//
  • -// -// -//
  • -// -// -// -// Category -//
  • -// -// -//
  • -// -// -// -// Singer -//
  • -// - -//
  • -// -// -// -// Songs -//
  • -//
-// ); -// }; - -// export default AdminSubmenu; diff --git a/components/modules/NavBar/LeftNav/AdminMenu/AdminSubmenu/index.tsx b/components/modules/NavBar/LeftNav/AdminMenu/AdminSubmenu/index.tsx new file mode 100644 index 0000000..758bb20 --- /dev/null +++ b/components/modules/NavBar/LeftNav/AdminMenu/AdminSubmenu/index.tsx @@ -0,0 +1,48 @@ +import Link from "next/link"; +import React from "react"; +import { + CategoryIcon, + MicIcon, + PlayCircleIcon, + HomeSubMenuIcon, +} from "../../../../__modules/Vectors"; + +const AdminSubmenu = () => { + return ( +
    + +
  • + + + + DashBoard +
  • + + +
  • + + + + Category +
  • + + +
  • + + + + Singer +
  • + + +
  • + + + + Songs +
  • +
+ ); +}; + +export default AdminSubmenu; diff --git a/components/modules/NavBar/LeftNav/AdminMenu/index.jsx b/components/modules/NavBar/LeftNav/AdminMenu/index.jsx deleted file mode 100644 index fe59a73..0000000 --- a/components/modules/NavBar/LeftNav/AdminMenu/index.jsx +++ /dev/null @@ -1,40 +0,0 @@ -// import React from "react"; -// import { AdminIcon, ChevronRightIcon } from "../../../__modules/Vectors"; -// import AdminSubmenu from "./AdminSubmenu"; -// import PropTypes from "prop-types"; - -// const AdminMenu = ({ isAdminSubmenu, toggleSubmenu }) => { -// return ( -//
-//
-// -//
-//

Admin

-// -//
-//
-//
-// -//
-//
-// ); -// }; - -// AdminMenu.propTypes = { -// isAdminSubmenu: PropTypes.bool.isRequired, -// toggleSubmenu: PropTypes.func.isRequired, -// }; - -// export default AdminMenu; diff --git a/components/modules/NavBar/LeftNav/AdminMenu/index.tsx b/components/modules/NavBar/LeftNav/AdminMenu/index.tsx new file mode 100644 index 0000000..a2d849b --- /dev/null +++ b/components/modules/NavBar/LeftNav/AdminMenu/index.tsx @@ -0,0 +1,39 @@ +import React, { FC } from "react"; +import { AdminIcon, ChevronRightIcon } from "../../../__modules/Vectors"; +import AdminSubmenu from "./AdminSubmenu"; + +interface IProps { + isAdminSubmenu: boolean; + toggleSubmenu: (menuType: string) => void; +} + +const AdminMenu: FC = ({ isAdminSubmenu, toggleSubmenu }) => { + return ( +
+
+ +
+

Admin

+ +
+
+
+ +
+
+ ); +}; + +export default AdminMenu; diff --git a/components/modules/NavBar/LeftNav/DashBoard/DashboardMenu/index.jsx b/components/modules/NavBar/LeftNav/DashBoard/DashboardMenu/index.jsx deleted file mode 100644 index cc9fc5c..0000000 --- a/components/modules/NavBar/LeftNav/DashBoard/DashboardMenu/index.jsx +++ /dev/null @@ -1,62 +0,0 @@ -// import React from "react"; -// import PropTypes from "prop-types"; -// import { -// HomeSubMenuIcon, -// HeadPhonesIcon, -// FileMusicIcon, -// ArrowExpendUpRighIcon, -// DownLoadOutlineIcon, -// FilePlusIcon, -// FavoriteIcon, -// } from "../../../../__modules/Vectors"; - -// const DashboardMenu = () => { -// return ( -//
    -//
  • -// -// -// -// Home -//
  • -//
  • -// -// -// -// Latest -//
  • -//
  • -// -// -// -// Album -//
  • -//
  • -// -// -// -// Trending -//
  • -//
  • -// -// -// -// Streaming -//
  • -//
  • -// -// -// -// Playlist -//
  • -//
  • -// -// -// -// Favorite -//
  • -//
-// ); -// }; - -// export default DashboardMenu; diff --git a/components/modules/NavBar/LeftNav/DashBoard/DashboardMenu/index.tsx b/components/modules/NavBar/LeftNav/DashBoard/DashboardMenu/index.tsx new file mode 100644 index 0000000..e1c766a --- /dev/null +++ b/components/modules/NavBar/LeftNav/DashBoard/DashboardMenu/index.tsx @@ -0,0 +1,61 @@ +import React from "react"; +import { + HomeSubMenuIcon, + HeadPhonesIcon, + FileMusicIcon, + ArrowExpendUpRighIcon, + DownLoadOutlineIcon, + FilePlusIcon, + FavoriteIcon, +} from "../../../../__modules/Vectors"; + +const DashboardMenu = () => { + return ( +
    +
  • + + + + Home +
  • +
  • + + + + Latest +
  • +
  • + + + + Album +
  • +
  • + + + + Trending +
  • +
  • + + + + Streaming +
  • +
  • + + + + Playlist +
  • +
  • + + + + Favorite +
  • +
+ ); +}; + +export default DashboardMenu; diff --git a/components/modules/NavBar/LeftNav/DashBoard/index.jsx b/components/modules/NavBar/LeftNav/DashBoard/index.jsx deleted file mode 100644 index 75ed824..0000000 --- a/components/modules/NavBar/LeftNav/DashBoard/index.jsx +++ /dev/null @@ -1,40 +0,0 @@ -// import React from "react"; -// import { ChevronRightIcon, HomeIcon } from "../../../__modules/Vectors"; -// import DashboardMenu from "./DashboardMenu"; -// import PropTypes from "prop-types"; - -// const DashBord = ({ isDashboardSubmenu, toggleSubmenu }) => { -// return ( -//
-//
-// -//
-//

DashBoard

-// -//
-//
-//
-// -//
-//
-// ); -// }; - -// DashBord.propTypes = { -// isDashboardSubmenu: PropTypes.bool.isRequired, -// toggleSubmenu: PropTypes.func.isRequired, -// }; - -// export default DashBord; diff --git a/components/modules/NavBar/LeftNav/DashBoard/index.tsx b/components/modules/NavBar/LeftNav/DashBoard/index.tsx new file mode 100644 index 0000000..11a61b4 --- /dev/null +++ b/components/modules/NavBar/LeftNav/DashBoard/index.tsx @@ -0,0 +1,39 @@ +import React, { FC } from "react"; +import { ChevronRightIcon, HomeIcon } from "../../../__modules/Vectors"; +import DashboardMenu from "./DashboardMenu"; + +interface IProps { + isDashboardSubmenu: boolean; + toggleSubmenu: (menuType: string) => void; +} + +const DashBord: FC = ({ isDashboardSubmenu, toggleSubmenu }) => { + return ( +
+
+ +
+

DashBoard

+ +
+
+
+ +
+
+ ); +}; + +export default DashBord; diff --git a/components/modules/NavBar/LeftNav/NavContentIcons/index.jsx b/components/modules/NavBar/LeftNav/NavContentIcons/index.jsx deleted file mode 100644 index c435178..0000000 --- a/components/modules/NavBar/LeftNav/NavContentIcons/index.jsx +++ /dev/null @@ -1,37 +0,0 @@ -// import React from "react"; -// import { -// HomeSubMenuIcon, -// HeadPhonesIcon, -// FileMusicIcon, -// ArrowExpendUpRighIcon, -// DownLoadOutlineIcon, -// FilePlusIcon, -// FavoriteIcon, -// AdminIcon, -// } from "../../../__modules/Vectors"; -// import PropTypes from "prop-types"; - -// const NavContentIcons = ({ isMouseOverLeftNav }) => { -// return ( -//
-// -// -// -// -// -// -// -// -//
-// ); -// }; - -// NavContentIcons.propTypes = { -// isMouseOverLeftNav: PropTypes.bool.isRequired, -// }; - -// export default NavContentIcons; diff --git a/components/modules/NavBar/LeftNav/NavContentIcons/index.tsx b/components/modules/NavBar/LeftNav/NavContentIcons/index.tsx new file mode 100644 index 0000000..a618011 --- /dev/null +++ b/components/modules/NavBar/LeftNav/NavContentIcons/index.tsx @@ -0,0 +1,36 @@ +import React, { FC } from "react"; +import { + HomeSubMenuIcon, + HeadPhonesIcon, + FileMusicIcon, + ArrowExpendUpRighIcon, + DownLoadOutlineIcon, + FilePlusIcon, + FavoriteIcon, + AdminIcon, +} from "../../../__modules/Vectors"; + +interface IProps { + isMouseOverLeftNav: boolean; +} + +const NavContentIcons: FC = ({ isMouseOverLeftNav }) => { + return ( +
+ + + + + + + + +
+ ); +}; + +export default NavContentIcons; diff --git a/components/modules/NavBar/LeftNav/index.jsx b/components/modules/NavBar/LeftNav/index.jsx deleted file mode 100644 index ba27707..0000000 --- a/components/modules/NavBar/LeftNav/index.jsx +++ /dev/null @@ -1,103 +0,0 @@ -// import React, { useState } from "react"; -// import { useRecoilState } from "recoil"; -// import { leftNavPinedAtom, openMenuAtom } from "../../../lib/atoms"; -// import { MoonIcon, SunIcon, CloseIcon, PinIcon } from "../../__modules/Vectors"; -// import NavContentIcons from "./NavContentIcons"; -// import AdminMenu from "./AdminMenu"; -// import DashBord from "./DashBoard"; - -// const LeftNav = () => { -// const [isDarkMode, setIsDarkMode] = useState(false); -// const [isMouseOverLeftNav, setIsMouseOverLeftNav] = useState(false); -// const [isSubmenu, setIsSubMenu] = useState({ -// isAdminSubmenu: false, -// isDashboardSubmenu: true, -// }); -// const { isAdminSubmenu, isDashboardSubmenu } = isSubmenu; -// const [isLeftNavPined, setIsLeftNavPined] = useRecoilState(leftNavPinedAtom); -// const [isMenuOpened, setIsMenuOpened] = useRecoilState(openMenuAtom); - -// const toggleTheme = () => { -// setIsDarkMode(!isDarkMode); -// }; - -// const toggleSubmenu = (menuName) => { -// menuName === "dashboard" -// ? setIsSubMenu({ -// isAdminSubmenu: false, -// isDashboardSubmenu: !isDashboardSubmenu, -// }) -// : setIsSubMenu({ -// isDashboardSubmenu: false, -// isAdminSubmenu: !isAdminSubmenu, -// }); -// }; - -// const onPinLeftNav = () => { -// setIsLeftNavPined(!isLeftNavPined); -// }; - -// return ( -//
setIsMouseOverLeftNav(true)} -// onMouseOut={() => setIsMouseOverLeftNav(isLeftNavPined ? true : false)} -// className={`bg-white shadow-2xl h-full w-fit font-Mulish z-10 fixed top-0 bottom-0 left-0 flex flex-col justify-between transition-all -// ${!isMenuOpened && "mobile:w-0 mobile:overflow-hidden transition-all"} -// `} -// > -//
-//
-//

-// Yokaa -//

-// -// -//
-// -//
-// -// -//
-//
-// -//
-// ); -// }; - -// export default LeftNav; diff --git a/components/modules/NavBar/LeftNav/index.tsx b/components/modules/NavBar/LeftNav/index.tsx new file mode 100644 index 0000000..60da55b --- /dev/null +++ b/components/modules/NavBar/LeftNav/index.tsx @@ -0,0 +1,103 @@ +import React, { useState } from "react"; +import { useRecoilState } from "recoil"; +import { leftNavPinedAtom, openMenuAtom } from "../../../lib/atoms"; +import { MoonIcon, SunIcon, CloseIcon, PinIcon } from "../../__modules/Vectors"; +import NavContentIcons from "./NavContentIcons"; +import AdminMenu from "./AdminMenu"; +import DashBord from "./DashBoard"; + +const LeftNav = () => { + const [isDarkMode, setIsDarkMode] = useState(false); + const [isMouseOverLeftNav, setIsMouseOverLeftNav] = useState(false); + const [isSubmenu, setIsSubMenu] = useState({ + isAdminSubmenu: false, + isDashboardSubmenu: true, + }); + const { isAdminSubmenu, isDashboardSubmenu } = isSubmenu; + const [isLeftNavPined, setIsLeftNavPined] = useRecoilState(leftNavPinedAtom); + const [isMenuOpened, setIsMenuOpened] = useRecoilState(openMenuAtom); + + const toggleTheme = () => { + setIsDarkMode(!isDarkMode); + }; + + const toggleSubmenu = (menuName: string) => { + menuName === "dashboard" + ? setIsSubMenu({ + isAdminSubmenu: false, + isDashboardSubmenu: !isDashboardSubmenu, + }) + : setIsSubMenu({ + isDashboardSubmenu: false, + isAdminSubmenu: !isAdminSubmenu, + }); + }; + + const onPinLeftNav = () => { + setIsLeftNavPined(!isLeftNavPined); + }; + + return ( +
setIsMouseOverLeftNav(true)} + onMouseOut={() => setIsMouseOverLeftNav(isLeftNavPined ? true : false)} + className={`bg-white shadow-2xl h-full w-fit font-Mulish z-10 fixed top-0 bottom-0 left-0 flex flex-col justify-between transition-all + ${!isMenuOpened && "mobile:w-0 mobile:overflow-hidden transition-all"} + `} + > +
+
+

+ Yokaa +

+ + +
+ +
+ + +
+
+ +
+ ); +}; + +export default LeftNav; diff --git a/components/modules/NavBar/TopNav/__modules/NotificationModal/index.jsx b/components/modules/NavBar/TopNav/__modules/NotificationModal/index.jsx deleted file mode 100644 index a9fb6b6..0000000 --- a/components/modules/NavBar/TopNav/__modules/NotificationModal/index.jsx +++ /dev/null @@ -1,39 +0,0 @@ -// import React from "react"; - -// const NotificationModal = () => { -// return ( -//
-//
-//

All Notifications

-//

-// 4 -//

-//
-//
-// {Array.from({ length: 5 }).map((_, index) => { -// return ( -//
-// profile -//
-//

G-tech

-//
-//

like

-//

Just now

-//
-//
-//
-// ); -// })} -//
-//
-// ); -// }; - -// export default NotificationModal; diff --git a/components/modules/NavBar/TopNav/__modules/NotificationModal/index.tsx b/components/modules/NavBar/TopNav/__modules/NotificationModal/index.tsx new file mode 100644 index 0000000..421ddb6 --- /dev/null +++ b/components/modules/NavBar/TopNav/__modules/NotificationModal/index.tsx @@ -0,0 +1,40 @@ +/* eslint-disable @next/next/no-img-element */ +import React from "react"; + +const NotificationModal = () => { + return ( +
+
+

All Notifications

+

+ 4 +

+
+
+ {Array.from({ length: 5 }).map((_, index) => { + return ( +
+ profile +
+

G-tech

+
+

like

+

Just now

+
+
+
+ ); + })} +
+
+ ); +}; + +export default NotificationModal; diff --git a/components/modules/NavBar/TopNav/__modules/ProfileMenuModal/index.jsx b/components/modules/NavBar/TopNav/__modules/ProfileMenuModal/index.jsx deleted file mode 100644 index 957b463..0000000 --- a/components/modules/NavBar/TopNav/__modules/ProfileMenuModal/index.jsx +++ /dev/null @@ -1,84 +0,0 @@ -// import React from "react"; -// import { -// AccountIcon, -// EditProfileIcon, -// LockIcon, -// ProfileSheetIcon, -// } from "../../../../__modules/Vectors"; -// import { useRouter } from "next/router"; - -// const ProfileMenuModal = () => { -// const router = useRouter(); -// return ( -//
-//
-//

Hello G-Tech

-//

Available

-//
-//
-//
-//
-// -//
-//
-//
router.push("/account/profile")}> -//

My Profle

-//

-// View personal profile details -//

- -//
-//
-//
-//
-//
-// -//
-//
router.push("/account/edit")} -// > -//

Edit Profle

-//

-// Modify personal profile details -//

-//
-//
-//
-//
-// -//
-//
-//

My Profle

-//

-// Manage Your account parameter -//

-//
-//
-//
router.push("/account/setting")} -// className="flex py-3 border-t border-primary border-opacity-30 items-center hover:bg-primary hover:bg-opacity-20 transition-all cursor-pointer" -// > -//
-// -//
-//
-//

Privacy Setting

-//

-// Control your privacy parameter -//

-//
-//
-//
-// -//
-//
-//
-// ); -// }; - -// export default ProfileMenuModal; diff --git a/components/modules/NavBar/TopNav/__modules/ProfileMenuModal/index.tsx b/components/modules/NavBar/TopNav/__modules/ProfileMenuModal/index.tsx new file mode 100644 index 0000000..9e7d00c --- /dev/null +++ b/components/modules/NavBar/TopNav/__modules/ProfileMenuModal/index.tsx @@ -0,0 +1,84 @@ +import React from "react"; +import { + AccountIcon, + EditProfileIcon, + LockIcon, + ProfileSheetIcon, +} from "../../../../__modules/Vectors"; +import { useRouter } from "next/router"; + +const ProfileMenuModal = () => { + const router = useRouter(); + return ( +
+
+

Hello G-Tech

+

Available

+
+
+
+
+ +
+
+
router.push("/account/profile")} + > +

My Profle

+

+ View personal profile details +

+
+
+
+
+
+ +
+
router.push("/account/edit")} + > +

Edit Profle

+

+ Modify personal profile details +

+
+
+
+
+ +
+
+

My Profle

+

+ Manage Your account parameter +

+
+
+
router.push("/account/setting")} + className="flex py-3 border-t border-primary border-opacity-30 items-center hover:bg-primary hover:bg-opacity-20 transition-all cursor-pointer" + > +
+ +
+
+

Privacy Setting

+

+ Control your privacy parameter +

+
+
+
+ +
+
+
+ ); +}; + +export default ProfileMenuModal; diff --git a/components/modules/NavBar/TopNav/index.jsx b/components/modules/NavBar/TopNav/index.jsx deleted file mode 100644 index 0a53597..0000000 --- a/components/modules/NavBar/TopNav/index.jsx +++ /dev/null @@ -1,143 +0,0 @@ -// import React, { useState } from "react"; -// import { -// LoginIcon, -// MenuOutlineIcon, -// MicrophoneIcon, -// NotificationIcon, -// SeachIcon, -// ChevronRightIcon, -// } from "../../__modules/Vectors"; -// import { openMenuAtom } from "../../../lib/atoms"; -// import { useRecoilState } from "recoil"; -// import NotificationModal from "./__modules/NotificationModal"; -// import ProfileMenuModal from "./__modules/ProfileMenuModal"; -// import PropTypes from "prop-types"; -// import Link from "next/link"; - -// const TopNav = ({ setIsTopNav }) => { -// const [isTopMenu, setIsTopMenu] = useState(false); -// const [isMenuOpened, setIsMenuOpened] = useRecoilState(openMenuAtom); -// const [isNotificationModal, setIsNotificationModal] = useState(false); -// const [isProfileMenuModal, setIsProfileMenuModal] = useState(false); - -// const isloggedIn = false; - -// const toggleNoticationNavModals = () => { -// setIsNotificationModal(!isNotificationModal); -// setIsProfileMenuModal(false); -// }; - -// const toggleProfileNavModals = () => { -// setIsProfileMenuModal(!isProfileMenuModal); -// setIsNotificationModal(false); -// }; - -// const toggleTopMenu = () => { -// setIsTopMenu(!isTopMenu); -// setIsTopNav(!isTopMenu); -// }; - -// return ( -// <> -//
-//
-//
    -// -//
  • -// Home -//
  • -// -// -//
  • Latest
  • -// -// -//
  • Album
  • -// -// -//
  • -// Trending -//
  • -// -//
-//
-//
-// -//
-//

-// Yokaa -//

-//
-// -//
-// -//
-// -// -// -//
-//
-// -// -// -//
-//
-//
-//
-//
-// -//
-//
-// -//
-// -// ); -// }; - -// TopNav.propstype = { -// setIsTopNav: PropTypes.func, -// }; - -// export default TopNav; diff --git a/components/modules/NavBar/TopNav/index.tsx b/components/modules/NavBar/TopNav/index.tsx new file mode 100644 index 0000000..ecf991c --- /dev/null +++ b/components/modules/NavBar/TopNav/index.tsx @@ -0,0 +1,143 @@ +/* eslint-disable @next/next/no-img-element */ +import React, { Dispatch, SetStateAction, useState, FC } from "react"; +import { + LoginIcon, + MenuOutlineIcon, + MicrophoneIcon, + NotificationIcon, + SeachIcon, + ChevronRightIcon, +} from "../../__modules/Vectors"; +import { openMenuAtom } from "../../../lib/atoms"; +import { useRecoilState } from "recoil"; +import NotificationModal from "./__modules/NotificationModal"; +import ProfileMenuModal from "./__modules/ProfileMenuModal"; +import Link from "next/link"; + +interface IProps { + setIsTopNav: Dispatch>; +} + +const TopNav: FC = ({ setIsTopNav }) => { + const [isTopMenu, setIsTopMenu] = useState(false); + const [isMenuOpened, setIsMenuOpened] = useRecoilState(openMenuAtom); + const [isNotificationModal, setIsNotificationModal] = useState(false); + const [isProfileMenuModal, setIsProfileMenuModal] = useState(false); + + const isloggedIn = false; + + const toggleNoticationNavModals = () => { + setIsNotificationModal(!isNotificationModal); + setIsProfileMenuModal(false); + }; + + const toggleProfileNavModals = () => { + setIsProfileMenuModal(!isProfileMenuModal); + setIsNotificationModal(false); + }; + + const toggleTopMenu = () => { + setIsTopMenu(!isTopMenu); + setIsTopNav(!isTopMenu); + }; + + return ( + <> +
+
+
    + +
  • + Home +
  • + + +
  • Latest
  • + + +
  • Album
  • + + +
  • + Trending +
  • + +
+
+
+ +
+

+ Yokaa +

+
+ +
+ +
+ + + +
+
+ + + +
+
+
+
+
+ +
+
+ +
+ + ); +}; + +export default TopNav; diff --git a/components/modules/NavBar/index.jsx b/components/modules/NavBar/index.jsx deleted file mode 100644 index d484017..0000000 --- a/components/modules/NavBar/index.jsx +++ /dev/null @@ -1,4 +0,0 @@ -// import LeftNav from "./LeftNav"; -// import TopNav from "./TopNav"; - -// export { LeftNav, TopNav }; diff --git a/components/modules/NavBar/index.tsx b/components/modules/NavBar/index.tsx new file mode 100644 index 0000000..ff13f96 --- /dev/null +++ b/components/modules/NavBar/index.tsx @@ -0,0 +1,4 @@ +import LeftNav from "./LeftNav"; +import TopNav from "./TopNav"; + +export { LeftNav, TopNav }; diff --git a/components/modules/__modules__/Card/PageCard.jsx b/components/modules/__modules__/Card/PageCard.jsx deleted file mode 100644 index a1d69d4..0000000 --- a/components/modules/__modules__/Card/PageCard.jsx +++ /dev/null @@ -1,31 +0,0 @@ -// import React from "react"; -// import { useRecoilValue } from "recoil"; -// import { leftNavPinedAtom } from "../../../lib/atoms"; -// import PropTypes from "prop-types"; -// import { LeftNav, TopNav } from "../../NavBar"; -// import BottomPlayer from "../../../BottomPaler/BottomPalyer"; - -// const PageCard = ({ children, setIsTopNav }) => { -// const isLeftNavPined = useRecoilValue(leftNavPinedAtom); -// return ( -// <> -//
-// -// {children} -//
-// -// -// -// ); -// }; - -// PageCard.propTypes = { -// children: PropTypes.element.isRequired, -// setIsTopNav: PropTypes.func, -// }; - -// export default PageCard; diff --git a/components/modules/__modules__/Card/PageCard.tsx b/components/modules/__modules__/Card/PageCard.tsx new file mode 100644 index 0000000..864eec6 --- /dev/null +++ b/components/modules/__modules__/Card/PageCard.tsx @@ -0,0 +1,30 @@ +import React, { Dispatch, FC, SetStateAction } from "react"; +import { useRecoilValue } from "recoil"; +import { leftNavPinedAtom } from "../../../lib/atoms"; +import { LeftNav, TopNav } from "../../NavBar"; +import BottomPlayer from "../../../BottomPaler/BottomPalyer"; + +interface IProps { + children: any; + setIsTopNav: Dispatch>; +} + +const PageCard: FC = ({ children, setIsTopNav }) => { + const isLeftNavPined = useRecoilValue(leftNavPinedAtom); + return ( + <> +
+ + {children} +
+ + + + ); +}; + +export default PageCard; diff --git a/components/modules/__modules__/Card/TopSongCard.tsx b/components/modules/__modules__/Card/TopSongCard.tsx index 7859a89..6178a25 100644 --- a/components/modules/__modules__/Card/TopSongCard.tsx +++ b/components/modules/__modules__/Card/TopSongCard.tsx @@ -1,3 +1,4 @@ +/* eslint-disable @next/next/no-img-element */ import React, { useState } from "react"; import { PauseIcon, PlayCircleIcon } from "../../__modules/Vectors"; @@ -6,14 +7,17 @@ const TopSongCard = (props: any) => { const [isPlaying, setIsPlaying] = useState(false); const [isPlayingIndex, setIsPlayingIndex] = useState(-1); - interface SongoData{ - id:number, title:string, img:"string", artist:string + interface SongoData { + id: number; + title: string; + img: "string"; + artist: string; } return (
- {props.data.map((song : SongoData) => { + {props.data.map((song: SongoData) => { const { id, title, img, artist } = song as SongoData; return (
{ -// return ( -// -// -// -// -// -// -// -// -// -// -// - -// ) -// } - -// export default VWave diff --git a/components/modules/__modules__/_Vectors/wavePlayVector.tsx b/components/modules/__modules__/_Vectors/wavePlayVector.tsx new file mode 100644 index 0000000..c1c83b2 --- /dev/null +++ b/components/modules/__modules__/_Vectors/wavePlayVector.tsx @@ -0,0 +1,28 @@ +import React, { FC } from "react"; + +const VWave: FC<{ className: string }> = ({ className }) => { + return ( + + + + + + + + + + + + ); +}; + +export default VWave;