diff --git a/components/landing-page/landing-polda-kaltara/welcome-polda-kaltara.tsx b/components/landing-page/landing-polda-kaltara/welcome-polda-kaltara.tsx new file mode 100644 index 00000000..3f54cf92 --- /dev/null +++ b/components/landing-page/landing-polda-kaltara/welcome-polda-kaltara.tsx @@ -0,0 +1,143 @@ +import { useParams, usePathname, useRouter } from "next/navigation"; +import React, { useEffect, useState } from "react"; +import { Icon } from "@iconify/react/dist/iconify.js"; +import { useTranslations } from "next-intl"; +import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from "@/components/ui/select"; + +const WelcomePoldaKaltara = () => { + const router = useRouter(); + const asPath: any = usePathname(); + const params = useParams(); + const poldaName: any = params?.polda_name; + const [categorySelect, setCategorySelect] = useState("0"); + const t = useTranslations("LandingPage"); + const [contentType, setContentType] = useState("all"); + const [search, setSearch] = useState(""); + + useEffect(() => { + function initState() { + console.log(categorySelect); + } + + initState(); + }, [categorySelect]); + + return ( +
+
+ {/* Heading */} +

+ {t("welcome")} Di Polda {poldaName.replace("-", " ")} +

+
+

+ {t("polda")} {poldaName.replace("-", " ")} +

+ + {/* Search Form */} + {/*
*/} + {/* Dropdown */} + {/*
+ + + + + + + {t("content")} + + + + + + + + + + {t("video")} + + + + + + {t("audio")} + + + + + + {t("image")} + + + + + + {t("text")} + + + + +
+ + + + + + +
+
*/} + + {/* Button */} + {/* */} + {/*
*/} + +
+ {/* Dropdown */} +
+ +
+ + + + + + setSearch(e.target.value)} /> +
+
+ + {/* Search Input */} + +
+
+
+ ); +}; + +export default WelcomePoldaKaltara; diff --git a/components/landing-page/search-section.tsx b/components/landing-page/search-section.tsx index ba978b1b..5307d836 100644 --- a/components/landing-page/search-section.tsx +++ b/components/landing-page/search-section.tsx @@ -18,15 +18,13 @@ import ContentCategory from "./content-category"; import AreaCoverageWorkUnits from "./area-coverage-and-work-units"; import EventCalender from "./event-calender"; import UserSurveyBox from "./survey-box"; -import ScrollableContentPolda from "./scrollable-content-polda"; -import LeftBanner from "./left-banner"; -// const LeftBanner = () => ( -//
-// Banner Kiri 1 -// Banner Kiri 2 -//
-// ); +const LeftBanner = () => ( +
+ Banner Kiri 1 + Banner Kiri 2 +
+); const RightBanner = () => (