diff --git a/resources/js/components/Partials/Footer.tsx b/resources/js/components/Partials/Footer.tsx index 02b6645..220ab53 100644 --- a/resources/js/components/Partials/Footer.tsx +++ b/resources/js/components/Partials/Footer.tsx @@ -42,7 +42,9 @@ const Footer = () => { Telepon: (021) 8092744 | Fax: (021) 8091056

Email: dinaslh@jakarta.go.id

-

© Copyright 2016

+

+ © Copyright {new Date().getFullYear()} +

diff --git a/resources/js/components/Partials/Navbar.tsx b/resources/js/components/Partials/Navbar.tsx index d29e55a..289fad1 100644 --- a/resources/js/components/Partials/Navbar.tsx +++ b/resources/js/components/Partials/Navbar.tsx @@ -1,5 +1,16 @@ import React, { useState, useEffect } from "react"; -import { Search, LogIn, Menu, X, Moon, Sun } from "lucide-react"; +import { + Search, + LogIn, + Menu, + X, + Moon, + Sun, + Home, + Bell, + FileText, + BookOpen, +} from "lucide-react"; import { NavigationMenu, NavigationMenuList, @@ -33,10 +44,8 @@ interface CustomPageProps extends InertiaPageProps { const Navbar = () => { const { runPosts = [] } = usePage().props; - // const runPosts = props.runPosts || []; const [isScrolled, setIsScrolled] = useState(false); const [isDrawerOpen, setIsDrawerOpen] = useState(false); - // const [searchQuery, setSearchQuery] = useState(""); const { theme, setTheme } = useTheme(); // Handle scroll effect @@ -54,56 +63,43 @@ const Navbar = () => { setTheme(theme === "light" ? "dark" : "light"); }; + const menuItems = [ + { title: "HOME", icon: , href: "/" }, + { + title: "PENGUMUMAN", + icon: , + href: "/pengumuman", + }, + { + title: "UNDANGAN", + icon: , + href: "/undangan", + }, + { + title: "PERATURAN", + icon: , + href: "/peraturan", + }, + ]; + const NavItems: React.FC = ({ mobile = false, onClose }) => ( <> - - - HOME - - - {["PENGUMUMAN", "UNDANGAN", "PERATURAN"].map((item) => ( - + {menuItems.map((item) => ( + - {item} + {item.icon} + {item.title} ))} - {/* -
- setSearchQuery(e.target.value)} - className={`bg-white text-black px-3 py-2 rounded-l-full focus:outline-none w-full ${ - mobile ? "w-32" : "w-40" - }`} - /> - -
-
*/} @@ -134,8 +130,8 @@ const Navbar = () => { /> - - + + @@ -193,22 +189,10 @@ const Navbar = () => { - {/* */} -
LOGIN