-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate account setting page and all it dependencies files to t…
…ypescript
- Loading branch information
Showing
35 changed files
with
923 additions
and
912 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<div className="bg-globalBg h-screen mobile:h-fit"> | ||
<PageCard setIsTopNav={setIsTopNav}> | ||
<AccountSettings isTopNav={isTopNav} /> | ||
</PageCard> | ||
</div> | ||
); | ||
}; | ||
|
||
export default AccountSettingsPage; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<IProps> = ({ isFixed = true }) => { | ||
return ( | ||
<div | ||
className={`z-20 w-full ${ | ||
isFixed | ||
? "fixed justify-between bg-gray-700 " | ||
: "absolute justify-center items-center" | ||
} bottom-0 pb-2 pt-3 px-6 md:px-8 flex flex-col md:flex-row items-center h-28 md:h-20 opacity-90`} | ||
> | ||
<div | ||
className={`${ | ||
isFixed ? "w-full md:w-3/6 lg:w-2/6 flex box" : "hidden" | ||
}`} | ||
> | ||
{isFixed && ( | ||
<div className={`w-4/6 gap-2 flex`}> | ||
<img | ||
src="https://templates.iqonic.design/muzik/html/images/dashboard/hot-songs/04.png" | ||
alt="Keith" | ||
className="w-14 md:w-14 md:h-14 rounded-lg" | ||
/> | ||
<div className="text-lg font-semibold text-gray-300 capitalize"> | ||
<h1>Tell me u luv me</h1> | ||
<p className="text-base font-medium">Keith Urban</p> | ||
</div> | ||
</div> | ||
)} | ||
<div className="md:hidden w-2/6 flex gap-2 m-auto"> | ||
<VPrev className="w-8 h-8 cursor-pointer text-gray-200" /> | ||
<VPlay className="w-8 h-8 cursor-pointer text-gray-200" /> | ||
<VNext className="w-8 h-8 cursor-pointer text-gray-200" /> | ||
</div> | ||
</div> | ||
|
||
<div | ||
className={`${ | ||
isFixed | ||
? "md:3/6 lg-4/6 mg:gap-6 justify-between" | ||
: "w-full justify-center" | ||
} flex flex-col md:flex-row items-center`} | ||
> | ||
<div className="flex justify-center items-center gap-2"> | ||
<span className="text-gray-200 text-base font-medium">00:00</span> | ||
<Slider | ||
className={`${ | ||
isFixed ? "w-60 md:w-28 lg:w-40" : "w-20" | ||
} mx-1 text-primary`} | ||
/> | ||
<span className="text-gray-200 text-base font-medium">00:00</span> | ||
</div> | ||
<div className="hidden md:flex items-center justify-center gap-3 lg:gap-4 w-1/3"> | ||
<ShuffleIcon | ||
className={`hidden w-6 h-6 text-primary cursor-pointer ${ | ||
!isFixed ? "hidden" : "lg:inline" | ||
}`} | ||
/> | ||
<VPrev className="w-10 h-10 cursor-pointer text-gray-200" /> | ||
<VPlay className="w-10 h-10 cursor-pointer text-gray-200" /> | ||
<VNext className="w-10 h-10 cursor-pointer text-gray-200" /> | ||
<LoopIcon | ||
className={`hidden w-6 h-6 text-primary cursor-pointer ${ | ||
!isFixed ? "hidden" : "lg:inline" | ||
}`} | ||
/> | ||
</div> | ||
<div className="hidden lg:flex items-center justify-center gap-2 w-1/3 "> | ||
<PlayListIcon | ||
className={`w-6 h-6 text-gray-200 ${!isFixed && "hidden"}`} | ||
/> | ||
<div className="flex justify-center items-center gap-1"> | ||
<VolumeDownIcon className="w-6 h-6 text-gray-200" /> | ||
<Slider | ||
className="w-40 mx-1 text-primary" | ||
defaultValue={50} | ||
valueLabelDisplay="auto" | ||
/> | ||
<VolumeUpIcon className="w-6 h-6 text-gray-200" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default BottomPlayer; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { atom } from "recoil"; | ||
|
||
// ----------- atom with one value here ------------------------ | ||
|
||
const openMenuAtom = atom<boolean>({ | ||
key: "openMenuAtom", | ||
default: false, | ||
}); | ||
|
||
const leftNavPinedAtom = atom<boolean>({ | ||
key: "leftNavPinedAtom", | ||
default: false, | ||
}); | ||
|
||
const displaySettingsModalAtom = atom<boolean>({ | ||
key: "displaysettingsModalAtom", | ||
default: false, | ||
}); | ||
|
||
export { openMenuAtom, leftNavPinedAtom, displaySettingsModalAtom }; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.