diff --git a/package.json b/package.json index 30adcb9..78ddc13 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,8 @@ }, "dependencies": { "@ant-design/cssinjs": "^2.0.1", + "@hugeicons/core-free-icons": "^2.0.0", + "@hugeicons/react": "^1.1.1", "antd": "^6.0.1", "clsx": "^2.1.1", "embla-carousel": "^8.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ce405a6..05cd5a0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,12 @@ importers: '@ant-design/cssinjs': specifier: ^2.0.1 version: 2.0.1(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + '@hugeicons/core-free-icons': + specifier: ^2.0.0 + version: 2.0.0 + '@hugeicons/react': + specifier: ^1.1.1 + version: 1.1.1(react@19.2.0) antd: specifier: ^6.0.1 version: 6.0.1(react-dom@19.2.0(react@19.2.0))(react@19.2.0) @@ -243,6 +249,14 @@ packages: resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@hugeicons/core-free-icons@2.0.0': + resolution: {integrity: sha512-OSfv5k0iB0yG61dcfK7jcf00AIK8EXyQOgtcNJzSBFvm88n9VOelkxihZHJnNwDUFpO/jZI3vZSVp6i1dmRvJQ==} + + '@hugeicons/react@1.1.1': + resolution: {integrity: sha512-BAbFVtx0XZ/yF2poPLFn0N9Ji6ebV/MpI5+WRqooFp3smQDwpL+72m+BBs4KAM5djgWUpg12weyc5SJtTsOwsw==} + peerDependencies: + react: '>=16.0.0' + '@humanfs/core@0.19.1': resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} engines: {node: '>=18.18.0'} @@ -2598,6 +2612,12 @@ snapshots: '@eslint/core': 0.17.0 levn: 0.4.1 + '@hugeicons/core-free-icons@2.0.0': {} + + '@hugeicons/react@1.1.1(react@19.2.0)': + dependencies: + react: 19.2.0 + '@humanfs/core@0.19.1': {} '@humanfs/node@0.16.7': diff --git a/src/Components/Molecules/PublicLayout/index.tsx b/src/Components/Molecules/PublicLayout/index.tsx index f7fd47f..049035f 100644 --- a/src/Components/Molecules/PublicLayout/index.tsx +++ b/src/Components/Molecules/PublicLayout/index.tsx @@ -1,21 +1,27 @@ import Box from "@/Components/Atoms/Box"; import { useBreakpoints } from "@/Contexts/BreakPointContext"; import useClient from "@/Hooks/useClient"; +import { HugeiconsIcon } from "@hugeicons/react"; import { Button, Radio, Space } from "antd"; import { Calendar, Compass, Map, MapPin, Menu, Store } from "lucide-react"; import Link from "next/link"; import { PropsWithChildren, useState } from "react"; +import { DiscoverSquareIcon, Home07Icon, UserSquareIcon } from '@hugeicons/core-free-icons' +import { usePathname } from "next/navigation"; +import { cn } from "@/Functions/cn"; const PublicLayout: React.FC = ({ children }) => { const { isDesktop } = useBreakpoints(); const isClient = useClient(); + const pathname = usePathname() + const [position, setPosition] = useState<'ID' | 'EN'>('ID'); if (!isClient) return; return ( - +