feat: navbar ppid satker dinamic route
This commit is contained in:
parent
3e727dad9b
commit
435b85392d
|
|
@ -0,0 +1,19 @@
|
|||
'use client'
|
||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import React from 'react';
|
||||
|
||||
export default function LayananInformasiLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
const pathname = usePathname();
|
||||
console.log(pathname)
|
||||
|
||||
return (
|
||||
<SatkerLayout>
|
||||
{children}
|
||||
</SatkerLayout>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import Login from '@/components/form/login'
|
||||
import React from 'react'
|
||||
|
||||
export default function PemohononanInformasi() {
|
||||
return (
|
||||
<Login />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import FormObjectionRequest from '@/components/form/form-permohonan-keberatan'
|
||||
import React from 'react'
|
||||
|
||||
export default function PermohonanKeberanatan() {
|
||||
return (
|
||||
<FormObjectionRequest />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import AnnualReport from '@/components/table/laporan-tahunan'
|
||||
import React from 'react'
|
||||
|
||||
export default function ReportTahunan() {
|
||||
return (
|
||||
<AnnualReport />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import FormApplication from '@/components/form/form-permohonan-informasi'
|
||||
import React from 'react'
|
||||
|
||||
export default function RegistrasiPage() {
|
||||
return (
|
||||
<FormApplication />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import StatiticAndRecap from '@/components/detail/StatistikRekapitulas'
|
||||
import React from 'react'
|
||||
|
||||
export default function StatisticPage() {
|
||||
return (
|
||||
<StatiticAndRecap />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
'use client'
|
||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import React from 'react';
|
||||
|
||||
export default function RegulasiLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
const pathname = usePathname();
|
||||
console.log(pathname)
|
||||
|
||||
return (
|
||||
<SatkerLayout>
|
||||
{children}
|
||||
</SatkerLayout>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
import PPIDSidebar from '@/components/Portal PPID/PPIDSidebar'
|
||||
import RegulationTable from '@/components/table/tabel-regulasi'
|
||||
|
||||
export default function RegulasiPage() {
|
||||
return (
|
||||
<div className='md:flex'>
|
||||
<div className='w-auto bg-[#E2E2E2] md:w-2/3 lg:w-[75%] px-2 md:px-0 lg:px-5'>
|
||||
<RegulationTable />
|
||||
</div>
|
||||
<div className='w-auto md:w-1/3 lg:w-[25%]'>
|
||||
<PPIDSidebar />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import ServiceFlow from '@/components/detail/ServiceFlow'
|
||||
import React from 'react'
|
||||
|
||||
export default function ServiceFlowPage() {
|
||||
return (
|
||||
<ServiceFlow />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
'use client'
|
||||
import { PPIDLayout } from '@/components/layout/PPIDLayout';
|
||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import React, { Children } from 'react'
|
||||
|
||||
export default function StandarLayananLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
const pathname = usePathname();
|
||||
console.log(pathname)
|
||||
|
||||
return (
|
||||
<SatkerLayout>
|
||||
{children}
|
||||
</SatkerLayout>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import ServiceAnnouncement from '@/components/detail/ServiceAnnouncement'
|
||||
import React from 'react'
|
||||
|
||||
export default function ServiceAnnouncePage() {
|
||||
return (
|
||||
<ServiceAnnouncement />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import ObjectionMecanism from '@/components/detail/ObjectionMecanism'
|
||||
import React from 'react'
|
||||
|
||||
export default function ObjectionMecanismPage() {
|
||||
return (
|
||||
<ObjectionMecanism />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import RequestDispute from '@/components/detail/RequestDispute'
|
||||
import React from 'react'
|
||||
|
||||
export default function RequestDisputePage() {
|
||||
return (
|
||||
<RequestDispute />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import ServiceFee from '@/components/detail/ServiceFee'
|
||||
import React from 'react'
|
||||
|
||||
export default function ServiceFeePage() {
|
||||
return (
|
||||
<ServiceFee />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import RequestInformation from '@/components/detail/RequestInformation'
|
||||
import React from 'react'
|
||||
|
||||
export default function RequestInformationPage() {
|
||||
return (
|
||||
<RequestInformation />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import ServiceTime from '@/components/detail/ServiceTime'
|
||||
import React from 'react'
|
||||
|
||||
export default function ServiceTimePage() {
|
||||
return (
|
||||
<ServiceTime />
|
||||
)
|
||||
}
|
||||
|
|
@ -1,14 +1,12 @@
|
|||
import { Button } from '@nextui-org/button'
|
||||
import { Input } from '@nextui-org/input'
|
||||
import React from 'react'
|
||||
import { MailIcon } from '../icons'
|
||||
import Link from 'next/link'
|
||||
|
||||
export default function Footer() {
|
||||
return (
|
||||
<div className='relative text-xs leading-4 md:leading-loose lg:leading-8 font-semibold '>
|
||||
<div className='h-[620px] md:h-[720px] lg:h-auto bg-black'>
|
||||
<img src="/footer.png" alt="" className='w-full h-full object-cover object-left-top opacity-50' />
|
||||
<img src="/temp/foot.png" alt="" className='w-full h-full object-cover object-left-top opacity-50' />
|
||||
|
||||
</div>
|
||||
<div className="absolute top-0 left-0 w-full grid grid-cols-3 md:grid-cols-5 lg:grid-cols-5 gap-2 md:gap-4 px-1 md:px-10 lg:px-20 pt-5 md:pt-16 pb-5 md:pb-20 text-white">
|
||||
|
|
|
|||
|
|
@ -81,31 +81,31 @@ export default function NavbarSatker() {
|
|||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}
|
||||
>
|
||||
<Link href='/portal-ppid/informasi-publik/informasi-berkala' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/informasi-publik/informasi-berkala`} color='foreground'>
|
||||
Informasi Berkala
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}>
|
||||
<Link href='/portal-ppid/informasi-publik/informasi-setiap-saat' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/informasi-publik/informasi-setiap-saat`} color='foreground'>
|
||||
Informasi Setiap Saat
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}>
|
||||
<Link href='/portal-ppid/informasi-publik/informasi-dikecualikan' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/informasi-publik/informasi-dikecualikan`} color='foreground'>
|
||||
Informasi Dikecualikan
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}>
|
||||
<Link href='/portal-ppid/informasi-publik/penerangan-satuan' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/informasi-publik/penerangan-satuan`} color='foreground'>
|
||||
Penerangan Satuan
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}>
|
||||
<Link href='/portal-ppid/informasi-publik/uu-dan-peraturan' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/informasi-publik/uu-dan-peraturan`} color='foreground'>
|
||||
UU & Peraturan
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
|
|
@ -204,32 +204,32 @@ export default function NavbarSatker() {
|
|||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}
|
||||
>
|
||||
<Link href='/portal-ppid/layanan-informasi/registrasi-permohonan' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/layanan-informasi/registrasi-permohonan`} color='foreground'>
|
||||
Registrasi Permohonan
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}
|
||||
>
|
||||
<Link href='/portal-ppid/layanan-informasi/permohonan-informasi' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/layanan-informasi/permohonan-informasi`} color='foreground'>
|
||||
Permohonan Informasi
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}>
|
||||
<Link href='/portal-ppid/layanan-informasi/permohonan-keberatan' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/layanan-informasi/permohonan-keberatan`} color='foreground'>
|
||||
Permohonan Keberatan
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}>
|
||||
<Link href='/portal-ppid/layanan-informasi/statistik-rekapitulasi' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/layanan-informasi/statistik-rekapitulasi`} color='foreground'>
|
||||
Statistik / Rekapitulasi
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}>
|
||||
<Link href='/portal-ppid/layanan-informasi/ppid-laporan-tahunan' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/layanan-informasi/ppid-laporan-tahunan`} color='foreground'>
|
||||
Laporan Informasi Publik Tahunan
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
|
|
@ -266,51 +266,51 @@ export default function NavbarSatker() {
|
|||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}
|
||||
>
|
||||
<Link href='/portal-ppid/standar-layanan/alur-pelayanan-informasi-publik' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/standar-layanan/alur-pelayanan-informasi-publik`} color='foreground'>
|
||||
Alur Pelayanan Informasi Publik Polri
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}
|
||||
>
|
||||
<Link href='/portal-ppid/standar-layanan/tata-cara-permohonan-informasi' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/standar-layanan/tata-cara-permohonan-informasi`} color='foreground'>
|
||||
Tata Cara Permohonan Informasi
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}>
|
||||
<Link href='/portal-ppid/standar-layanan/mekanisme-keberatan' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/standar-layanan/mekanisme-keberatan`} color='foreground'>
|
||||
Mekanisme Keberatan
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}>
|
||||
<Link href='/portal-ppid/standar-layanan/mekanisme-permohonan-penyelesaian-sengketa' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/standar-layanan/mekanisme-permohonan-penyelesaian-sengketa`} color='foreground'>
|
||||
Mekanisme Permohonan Penyelesainan Sengketa
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}>
|
||||
<Link href='/portal-ppid/standar-layanan/waktu-pelayanan' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/standar-layanan/waktu-pelayanan`} color='foreground'>
|
||||
Waktu Pelayanan
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}>
|
||||
<Link href='/portal-ppid/standar-layanan/standar-biaya-pelayanan' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/standar-layanan/standar-biaya-pelayanan`} color='foreground'>
|
||||
Standar Biaya Pelayanan
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
<DropdownItem
|
||||
endContent={<ChevronRightIcon />}>
|
||||
<Link href='/portal-ppid/standar-layanan/maklumat-pelayanan' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/standar-layanan/maklumat-pelayanan`} color='foreground'>
|
||||
Maklumat Pelayanan
|
||||
</Link>
|
||||
</DropdownItem>
|
||||
</DropdownMenu>
|
||||
</Dropdown>
|
||||
<NavbarItem>
|
||||
<Link href='/portal-ppid/regulasi' color='foreground'>
|
||||
<Link href={`/portal-ppid/satuan-kerja/${newPathname}/regulasi`} color='foreground'>
|
||||
Regulasi
|
||||
</Link>
|
||||
</NavbarItem>
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 1.0 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 514 KiB |
Loading…
Reference in New Issue