diff --git a/src/app/profile/components/Menu.tsx b/src/app/profile/components/Menu.tsx new file mode 100644 index 0000000..08dda08 --- /dev/null +++ b/src/app/profile/components/Menu.tsx @@ -0,0 +1,27 @@ +import { FC } from 'react' +import MenuItem from './MenuItem' +import { Button } from '@/components/ui/button' +import { LogoutCurve } from 'iconsax-react' + +const Menu: FC = () => { + return ( +
+
+ + + + + +
+ + +
+ ) +} + +export default Menu \ No newline at end of file diff --git a/src/app/profile/components/MenuItem.tsx b/src/app/profile/components/MenuItem.tsx new file mode 100644 index 0000000..2d46ab0 --- /dev/null +++ b/src/app/profile/components/MenuItem.tsx @@ -0,0 +1,51 @@ +import { PRIMARY_COLOR } from '@/config/const' +import { clx } from '@/helpers/utils' +import { Heart, Message, MessageText1, ShoppingCart, UserSquare } from 'iconsax-react' +import Link from 'next/link' +import { FC } from 'react' + +type Props = { + icon: 'user' | 'heart' | 'comment' | 'chat' | 'orders', + isActive: boolean, + text: string, + href: string +} + +const MenuItem: FC = (props) => { + + const { icon, isActive, text, href } = props + + const color = isActive ? PRIMARY_COLOR : '#7F7F7F' + + const Icon = () => { + switch (icon) { + case 'user': + return + case 'heart': + return + case 'comment': + return + case 'chat': + return + case 'orders': + return + } + } + + return ( + + +
+ {text} +
+ + ) +} + +export default MenuItem \ No newline at end of file diff --git a/src/app/profile/page.tsx b/src/app/profile/page.tsx index 887d075..4d049c0 100644 --- a/src/app/profile/page.tsx +++ b/src/app/profile/page.tsx @@ -5,6 +5,7 @@ import Input from '@/components/Input' import { Edit2 } from 'lucide-react' import withLayout from '@/hoc/withLayout' import { Heart, ShoppingCart } from 'iconsax-react' +import Menu from './components/Menu' const ProfilePage = () => { const [userInfo, setUserInfo] = useState({ @@ -37,7 +38,8 @@ const ProfilePage = () => { return (
-
+ +
{/* Left Content - Form */}
@@ -171,7 +173,7 @@ const ProfilePage = () => {
-
+
) } diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx index 171f02a..d33c587 100644 --- a/src/components/ui/button.tsx +++ b/src/components/ui/button.tsx @@ -11,7 +11,7 @@ const buttonVariants = cva( variants: { variant: { default: - "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90", + "bg-primary text-primary-foreground shadow-xs hover:opacity-80", destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60", outline: