diff --git a/app/[locale]/(public)/schedule/page.tsx b/app/[locale]/(public)/schedule/page.tsx index f3096a7b..371a1fce 100644 --- a/app/[locale]/(public)/schedule/page.tsx +++ b/app/[locale]/(public)/schedule/page.tsx @@ -8,8 +8,9 @@ import React, { useEffect, useState } from "react"; import { format } from "date-fns"; import { cn } from "@/lib/utils"; import { Checkbox } from "@/components/ui/checkbox"; +import { Icon } from "@iconify/react/dist/iconify.js"; -const Jadwal = () => { +const Schedule = () => { const city = [ { key: 1, @@ -64,6 +65,9 @@ const Jadwal = () => { const [startDate, setStartDate] = useState(new Date()); const [dateAWeek, setDateAWeek] = useState([]); + const [scheduleSearch, setScheduleSearch] = useState(); + const [todayList, setTodayList] = useState([]); + const curr = new Date(); const startDays = (curr.getDay() + 7 - 1) % 7; @@ -190,7 +194,7 @@ const Jadwal = () => { return ( <> {/* Awal Komponen Kiri */} -
+
- {/* Akhir Komponen Kiri */} - - {/* Awal Komponent Kanan */} -
-
-

HALO

-
-
- {/* Akhir Komponen Kanan */} ); }; -export default Jadwal; +export default Schedule; diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx index c21b8aae..94461251 100644 --- a/app/[locale]/page.tsx +++ b/app/[locale]/page.tsx @@ -9,6 +9,7 @@ import Coverage from "@/components/landing-page/coverage"; import Navbar from "@/components/landing-page/navbar"; import Hero from "@/components/landing-page/hero"; import Footer from "@/components/landing-page/footer"; +import Division from "@/components/landing-page/division"; const Home = ({ params: { locale } }: { params: { locale: string } }) => { return ( @@ -21,6 +22,7 @@ const Home = ({ params: { locale } }: { params: { locale: string } }) => { +
); diff --git a/components/landing-page/Navbar.tsx b/components/landing-page/Navbar.tsx index 7ee10d88..7d7b3624 100644 --- a/components/landing-page/Navbar.tsx +++ b/components/landing-page/Navbar.tsx @@ -14,6 +14,13 @@ const Navbar = () => { const pathname = usePathname(); const params = useParams(); const locale = params?.locale; + const [language, setLanguage] = useState<"id" | "en">("id"); + const [isOpen, setIsOpen] = useState(false); + + const handleLanguageChange = (lang: "id" | "en") => { + setLanguage(lang); + setIsOpen(false); + }; return (
@@ -113,17 +120,54 @@ const Navbar = () => {
- +
+ {/* Tombol Utama */} + + + {/* Dropdown Menu */} + {isOpen && ( +
+ + +
+ )} +
- - 🔍 + + + + + +
- + + Masuk +
@@ -215,8 +259,12 @@ const Navbar = () => {
- - + + Masuk + + + Daftar +
)} diff --git a/components/landing-page/division.tsx b/components/landing-page/division.tsx new file mode 100644 index 00000000..311414cf --- /dev/null +++ b/components/landing-page/division.tsx @@ -0,0 +1,102 @@ +import React, { useState } from "react"; +import { Button } from "../ui/button"; + +const Division = () => { + const [searchTerm, setSearchTerm] = useState(""); + const [seeAllValue, setSeeAllValue] = useState(false); + + const regions = [ + { name: "SIBER", logo: "/assets/satker/siber.png" }, + { name: "DIVKUM", logo: "/assets/satker/divkum.png" }, + { name: "PUSKEU", logo: "/assets/satker/puskeu.png" }, + { name: "SSDM", logo: "/assets/satker/ssdm.png" }, + { name: "ITWASUM", logo: "/assets/satker/itwasum.png" }, + { name: "STIK-PTIK", logo: "/assets/satker/stik-ptik.png" }, + { name: "SATUAN KERJA POLRI", logo: "/assets/satker/satuan-kerja-polri.png" }, + { name: "BRIMOB", logo: "/assets/satker/brimob.png" }, + { name: "DIV HUMAS", logo: "/assets/satker/div-humas.png" }, + { name: "PUSLITBANG", logo: "/assets/satker/puslitbang.png" }, + { name: "BINMAS", logo: "/assets/satker/binmas.png" }, + { name: "DIV TIK", logo: "/assets/satker/div-tik.png" }, + { name: "SPRIPIM", logo: "/assets/satker/spripim.png" }, + { name: "DIVPROPRAM", logo: "/assets/satker/div-propram.png" }, + { name: "KORPS SABHARA BAHARKAM", logo: "/assets/satker/khorp-sabhara-baharkam.png" }, + { name: "PUSDOKKES", logo: "/assets/satker/pusdokkes.png" }, + { name: "BAHARKAM", logo: "/assets/satker/baharkam.png" }, + { name: "POLAIRUD", logo: "/assets/satker/polairud.png" }, + { name: "POLAIR", logo: "/assets/satker/polair.png" }, + { name: "POLUDARA", logo: "/assets/satker/poludara.png" }, + { name: "LEMDIKLAT", logo: "/assets/satker/lemdiklat.png" }, + { name: "AKPOL", logo: "/assets/satker/akpol.png" }, + { name: "KORLANTAS", logo: "/assets/satker/korlantas.png" }, + { name: "PUSINAFIS", logo: "/assets/satker/pusinafis.png" }, + { name: "PUSJARAH", logo: "/assets/satker/pusjarah.png" }, + { name: "PUSIKNAS", logo: "/assets/satker/pusiknas.png" }, + { name: "SLOG", logo: "/assets/satker/slog.png" }, + { name: "BAINTELKAM", logo: "/assets/satker/baintelkam.jpg" }, + { name: "BARESKRIM", logo: "/assets/satker/bareskrim.png" }, + { name: "DIVHUBINTER", logo: "/assets/satker/divhubinter.png" }, + { name: "SETUM", logo: "/assets/satker/setum.png" }, + { name: "PUSLABFOR", logo: "/assets/satker/puslabfor.png" }, + { name: "DENSUS 88", logo: "/assets/satker/densus88.png" }, + { name: "SAHLI KAPOLRI", logo: "/assets/satker/sahli-kapolri.png" }, + { name: "SOPS", logo: "/assets/satker/sops.png" }, + { name: "SRENA", logo: "/assets/satker/srena.png" }, + { name: "SESPIM POLRI", logo: "/assets/satker/sespim-polri.png" }, + { name: "SETUPA POLRI", logo: "/assets/satker/setupa-polri.png" }, + ]; + + return ( +
+ {/* Header */} +

+ Liputan Satker +

+
+ + {/* Pencarian */} +
+ setSearchTerm(e.target.value)} + /> + +
+ + {/* Grid Wilayah */} +
+ {regions.map((region, index) => + !seeAllValue ? ( + index < 7 ? ( +
+
+ {region.name} +
+

{region.name}

+
+ ) : ( + "" + ) + ) : ( +
+
+ {region.name} +
+

{region.name}

+
+ ) + )} +
+
+ +
+
+ ); +}; + +export default Division; diff --git a/public/assets/satker/akpol.png b/public/assets/satker/akpol.png new file mode 100644 index 00000000..d7b95bf1 Binary files /dev/null and b/public/assets/satker/akpol.png differ diff --git a/public/assets/satker/baharkam.png b/public/assets/satker/baharkam.png new file mode 100644 index 00000000..1f541153 Binary files /dev/null and b/public/assets/satker/baharkam.png differ diff --git a/public/assets/satker/baintelkam.jpg b/public/assets/satker/baintelkam.jpg new file mode 100644 index 00000000..7445eab7 Binary files /dev/null and b/public/assets/satker/baintelkam.jpg differ diff --git a/public/assets/satker/bareskrim.png b/public/assets/satker/bareskrim.png new file mode 100644 index 00000000..2aa02f91 Binary files /dev/null and b/public/assets/satker/bareskrim.png differ diff --git a/public/assets/satker/binmas.png b/public/assets/satker/binmas.png new file mode 100644 index 00000000..8e447d67 Binary files /dev/null and b/public/assets/satker/binmas.png differ diff --git a/public/assets/satker/brimob.png b/public/assets/satker/brimob.png new file mode 100644 index 00000000..af0d4601 Binary files /dev/null and b/public/assets/satker/brimob.png differ diff --git a/public/assets/satker/densus88.png b/public/assets/satker/densus88.png new file mode 100644 index 00000000..b4a2a0ac Binary files /dev/null and b/public/assets/satker/densus88.png differ diff --git a/public/assets/satker/div-humas.png b/public/assets/satker/div-humas.png new file mode 100644 index 00000000..9a69cf15 Binary files /dev/null and b/public/assets/satker/div-humas.png differ diff --git a/public/assets/satker/div-propram.png b/public/assets/satker/div-propram.png new file mode 100644 index 00000000..303fa471 Binary files /dev/null and b/public/assets/satker/div-propram.png differ diff --git a/public/assets/satker/div-tik.png b/public/assets/satker/div-tik.png new file mode 100644 index 00000000..83917024 Binary files /dev/null and b/public/assets/satker/div-tik.png differ diff --git a/public/assets/satker/divhubinter.png b/public/assets/satker/divhubinter.png new file mode 100644 index 00000000..186bd63e Binary files /dev/null and b/public/assets/satker/divhubinter.png differ diff --git a/public/assets/satker/divkum.png b/public/assets/satker/divkum.png new file mode 100644 index 00000000..ee66164b Binary files /dev/null and b/public/assets/satker/divkum.png differ diff --git a/public/assets/satker/itwasum.png b/public/assets/satker/itwasum.png new file mode 100644 index 00000000..82ef96fc Binary files /dev/null and b/public/assets/satker/itwasum.png differ diff --git a/public/assets/satker/khorp-sabhara-baharkam.png b/public/assets/satker/khorp-sabhara-baharkam.png new file mode 100644 index 00000000..0b235cb4 Binary files /dev/null and b/public/assets/satker/khorp-sabhara-baharkam.png differ diff --git a/public/assets/satker/korlantas.png b/public/assets/satker/korlantas.png new file mode 100644 index 00000000..17ac5cf8 Binary files /dev/null and b/public/assets/satker/korlantas.png differ diff --git a/public/assets/satker/lemdiklat.png b/public/assets/satker/lemdiklat.png new file mode 100644 index 00000000..da934b6a Binary files /dev/null and b/public/assets/satker/lemdiklat.png differ diff --git a/public/assets/satker/polair.png b/public/assets/satker/polair.png new file mode 100644 index 00000000..4fd8182c Binary files /dev/null and b/public/assets/satker/polair.png differ diff --git a/public/assets/satker/polairud.png b/public/assets/satker/polairud.png new file mode 100644 index 00000000..3b921ea7 Binary files /dev/null and b/public/assets/satker/polairud.png differ diff --git a/public/assets/satker/poludara.png b/public/assets/satker/poludara.png new file mode 100644 index 00000000..b4fb278e Binary files /dev/null and b/public/assets/satker/poludara.png differ diff --git a/public/assets/satker/pusdokkes.png b/public/assets/satker/pusdokkes.png new file mode 100644 index 00000000..78a3d3ad Binary files /dev/null and b/public/assets/satker/pusdokkes.png differ diff --git a/public/assets/satker/pusiknas.png b/public/assets/satker/pusiknas.png new file mode 100644 index 00000000..d5a78c93 Binary files /dev/null and b/public/assets/satker/pusiknas.png differ diff --git a/public/assets/satker/pusinafis.png b/public/assets/satker/pusinafis.png new file mode 100644 index 00000000..e686704c Binary files /dev/null and b/public/assets/satker/pusinafis.png differ diff --git a/public/assets/satker/pusjarah.png b/public/assets/satker/pusjarah.png new file mode 100644 index 00000000..1e89d159 Binary files /dev/null and b/public/assets/satker/pusjarah.png differ diff --git a/public/assets/satker/puskeu.png b/public/assets/satker/puskeu.png new file mode 100644 index 00000000..26ca4985 Binary files /dev/null and b/public/assets/satker/puskeu.png differ diff --git a/public/assets/satker/puslabfor.png b/public/assets/satker/puslabfor.png new file mode 100644 index 00000000..ceba5646 Binary files /dev/null and b/public/assets/satker/puslabfor.png differ diff --git a/public/assets/satker/puslitbang.png b/public/assets/satker/puslitbang.png new file mode 100644 index 00000000..d7587407 Binary files /dev/null and b/public/assets/satker/puslitbang.png differ diff --git a/public/assets/satker/sahli-kapolri.png b/public/assets/satker/sahli-kapolri.png new file mode 100644 index 00000000..fab5d74a Binary files /dev/null and b/public/assets/satker/sahli-kapolri.png differ diff --git a/public/assets/satker/satuan-kerja-polri.png b/public/assets/satker/satuan-kerja-polri.png new file mode 100644 index 00000000..7847e96c Binary files /dev/null and b/public/assets/satker/satuan-kerja-polri.png differ diff --git a/public/assets/satker/sespim-polri.png b/public/assets/satker/sespim-polri.png new file mode 100644 index 00000000..a60b9583 Binary files /dev/null and b/public/assets/satker/sespim-polri.png differ diff --git a/public/assets/satker/setum.png b/public/assets/satker/setum.png new file mode 100644 index 00000000..72cf49fc Binary files /dev/null and b/public/assets/satker/setum.png differ diff --git a/public/assets/satker/setupa-polri.png b/public/assets/satker/setupa-polri.png new file mode 100644 index 00000000..09c07531 Binary files /dev/null and b/public/assets/satker/setupa-polri.png differ diff --git a/public/assets/satker/siber.png b/public/assets/satker/siber.png new file mode 100644 index 00000000..f0292c22 Binary files /dev/null and b/public/assets/satker/siber.png differ diff --git a/public/assets/satker/slog.png b/public/assets/satker/slog.png new file mode 100644 index 00000000..83cd6db9 Binary files /dev/null and b/public/assets/satker/slog.png differ diff --git a/public/assets/satker/sops.png b/public/assets/satker/sops.png new file mode 100644 index 00000000..2f9b5f4a Binary files /dev/null and b/public/assets/satker/sops.png differ diff --git a/public/assets/satker/spripim.png b/public/assets/satker/spripim.png new file mode 100644 index 00000000..4d511fe6 Binary files /dev/null and b/public/assets/satker/spripim.png differ diff --git a/public/assets/satker/srena.png b/public/assets/satker/srena.png new file mode 100644 index 00000000..406f3c3d Binary files /dev/null and b/public/assets/satker/srena.png differ diff --git a/public/assets/satker/ssdm.png b/public/assets/satker/ssdm.png new file mode 100644 index 00000000..6ee36f02 Binary files /dev/null and b/public/assets/satker/ssdm.png differ diff --git a/public/assets/satker/stik-ptik.png b/public/assets/satker/stik-ptik.png new file mode 100644 index 00000000..93ce352b Binary files /dev/null and b/public/assets/satker/stik-ptik.png differ