diff --git a/app/e-majalah-polri/detail/[id]/layout.tsx b/app/e-majalah-polri/detail/[id]/layout.tsx new file mode 100644 index 0000000..f16043a --- /dev/null +++ b/app/e-majalah-polri/detail/[id]/layout.tsx @@ -0,0 +1,13 @@ +import { HumasLayout } from "@/components/layout/HumasLayout"; + +export default function DetailEMajalahLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( + + {children} + + ); +} diff --git a/app/e-majalah-polri/detail/[id]/page.tsx b/app/e-majalah-polri/detail/[id]/page.tsx new file mode 100644 index 0000000..58417a9 --- /dev/null +++ b/app/e-majalah-polri/detail/[id]/page.tsx @@ -0,0 +1,8 @@ +import EMagazineDetail from '@/components/detail/E-MagazineDetail' +import React from 'react' + +export default function EnewsDetailPage() { + return ( + + ) +} diff --git a/app/portal-ppid/admin/layout.tsx b/app/portal-ppid/admin/layout.tsx new file mode 100644 index 0000000..ca3c9d2 --- /dev/null +++ b/app/portal-ppid/admin/layout.tsx @@ -0,0 +1,13 @@ +import { PPIDAdminLayout } from "@/components/layout/PPIDAdminLayout"; + +export default function LayoutAdmin({ + children, +}: { + children: React.ReactNode; +}) { + return ( + + {children} + + ); +} diff --git a/app/portal-ppid/admin/page.tsx b/app/portal-ppid/admin/page.tsx index d4981e6..05e2f1a 100644 --- a/app/portal-ppid/admin/page.tsx +++ b/app/portal-ppid/admin/page.tsx @@ -1,7 +1,41 @@ import React from 'react' -export default function PPIDAdminPage() { +export default function tes() { return ( -
PPIDAdminPage
+
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
) } diff --git a/components/Landing Page/ENewsPolri.tsx b/components/Landing Page/ENewsPolri.tsx index 1ed6037..4af2e26 100644 --- a/components/Landing Page/ENewsPolri.tsx +++ b/components/Landing Page/ENewsPolri.tsx @@ -26,24 +26,6 @@ export default function ENewsPolri() { }, ]; - // useEffect(() => { - // function updateLimitedData() { - // if (window.matchMedia("(max-width: 767px)").matches) { - // setLimitedData(eNews.slice(0, 1)); - // } else if (window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches) { - // setLimitedData(eNews.slice(0, 2)); - // } else { - // setLimitedData(eNews.slice(0, 3)); - // } - // } - - // updateLimitedData(); - // window.addEventListener('resize', updateLimitedData); - // return () => { - // window.removeEventListener('resize', updateLimitedData); - // }; - // }, [eNews]); - return (

E-Majalah Polri

@@ -52,21 +34,23 @@ export default function ENewsPolri() {
{eNews.map((data: any) => (
- - Woman listing to music - -

{data.title}

-
-
+ + + Woman listing to music + +

{data.title}

+
+
+
))}
diff --git a/components/detail/DetailPage.tsx b/components/detail/DetailPage.tsx index bd97141..1b5b562 100644 --- a/components/detail/DetailPage.tsx +++ b/components/detail/DetailPage.tsx @@ -4,7 +4,7 @@ import Comment from './Comment' import SidebarDetail from '../page/SidebarDetail' import RelatedNews from '../page/RelatedNews' -export default function DetailPage() { +export default function NewsDetailPage() { return ( <>
diff --git a/components/detail/E-MagazineDetail.tsx b/components/detail/E-MagazineDetail.tsx new file mode 100644 index 0000000..c606974 --- /dev/null +++ b/components/detail/E-MagazineDetail.tsx @@ -0,0 +1,60 @@ +'use client' +import { BreadcrumbItem, Breadcrumbs } from '@nextui-org/breadcrumbs' +import { Button } from '@nextui-org/button' +import React from 'react' + +export default function EMagazineDetail() { + return ( +
+
+
E-Majalah Polri
+
+ + Beranda + E-Majalah Polri + Judul + +
+
+
MAJALAH TRIBRATA NEWS SUMSEL EDISI 33/ VII-IX/2023
+
+ emagazine +
+
+ +
+
+
+
Judul
+
Keterangan
+
+
+
Download
+
51
+
+
+
File Size
+
12,.58MB
+
+
+
Download
+
10
+
+
+
Created Date
+
1 Oktober 2024
+
+
+
Last Update
+
1 Oktober 2024
+
+
+
+
+
+ ) +} diff --git a/components/layout/PPIDAdminLayout.tsx b/components/layout/PPIDAdminLayout.tsx new file mode 100644 index 0000000..0aa6056 --- /dev/null +++ b/components/layout/PPIDAdminLayout.tsx @@ -0,0 +1,21 @@ +"use client"; +import React, { Children } from "react"; +import PPIDAdminSidebarWrapper from "../navbar/PPIDAdminSidebarWrapper"; +import PPIDAdminNavbarWrapper from "../navbar/PPIDAdminNavbarWrapper"; + +interface Props { + children: React.ReactNode; + pageTitle?: string; +} + +export const PPIDAdminLayout = ({ children, pageTitle }: Props) => { + + return ( +
+ + + {children} + +
+ ); +}; diff --git a/components/layout/SatKerLayout.tsx b/components/layout/SatKerLayout.tsx index 1ff0065..797e414 100644 --- a/components/layout/SatKerLayout.tsx +++ b/components/layout/SatKerLayout.tsx @@ -1,9 +1,7 @@ "use client"; import React from "react"; -import FooterPPID from "../Portal PPID/FooterPPID"; -import NavbarPPID from "../navbar/NavbarPPID"; -import NavbarSatker from "../navbar/NavbarSatker"; import FooterSatker from "../navbar/FooterSatker"; +import NavbarSatker from "../navbar/NavbarSatker"; interface Props { children: React.ReactNode; diff --git a/components/navbar/PPIDAdminNavbarWrapper.tsx b/components/navbar/PPIDAdminNavbarWrapper.tsx new file mode 100644 index 0000000..2e8074b --- /dev/null +++ b/components/navbar/PPIDAdminNavbarWrapper.tsx @@ -0,0 +1,54 @@ +import { Navbar, NavbarBrand, NavbarContent, NavbarItem } from '@nextui-org/navbar'; +import { Avatar, Dropdown, DropdownItem, DropdownMenu, DropdownTrigger } from '@nextui-org/react'; +import Link from 'next/link'; +import React, { Children } from 'react' +import { ThemeSwitch } from '../theme-switch'; + +interface Props { + children: React.ReactNode; + pageTitle?: string; + pageSubTitle?: string; + pageSubSubTitle?: string; + mainHref?: any; + subHref?: any; +} + +export default function PPIDAdminNavbarWrapper({ children, pageTitle, pageSubTitle, pageSubSubTitle, mainHref, subHref }: Props) { + return ( +
+ + + + + + + + +

Signed in as

+

zoey@example.com

+
+ My Settings + + Log Out + + +
+
+
+
+ {children} +
+ ) +} diff --git a/components/navbar/PPIDAdminSidebarWrapper.tsx b/components/navbar/PPIDAdminSidebarWrapper.tsx new file mode 100644 index 0000000..95c81a4 --- /dev/null +++ b/components/navbar/PPIDAdminSidebarWrapper.tsx @@ -0,0 +1,9 @@ +import React from 'react' + +export default function PPIDAdminSidebarWrapper() { + return ( + + ) +} diff --git a/components/sidebar/PPIDAdminSidebar.tsx b/components/sidebar/PPIDAdminSidebar.tsx new file mode 100644 index 0000000..3b11ecd --- /dev/null +++ b/components/sidebar/PPIDAdminSidebar.tsx @@ -0,0 +1,7 @@ +import React from 'react' + +export default function PPIDAdminSidebar() { + return ( +
tes
+ ) +} diff --git a/components/table/tabel-emajalah-polri.tsx b/components/table/tabel-emajalah-polri.tsx index 8045f42..872357f 100644 --- a/components/table/tabel-emajalah-polri.tsx +++ b/components/table/tabel-emajalah-polri.tsx @@ -64,14 +64,14 @@ export default function ListEnewsPolri() { } ] - const animals = [ + const category = [ { label: "Title", value: "title" }, { label: "Date", value: "date" }, { label: "Created At", value: "createdAt" }, ]; return (
-
+
E-Majalah Polri
@@ -109,7 +109,7 @@ export default function ListEnewsPolri() { // onChange={onChangeFilterEnterprising} > - {animals.map((list: any) => ( + {category.map((list: any) => ( {list.label} ))} @@ -139,7 +139,7 @@ export default function ListEnewsPolri() { // onChange={onChangeFilterEnterprising} > - {animals.map((list: any) => ( + {category.map((list: any) => ( {list.label} ))} @@ -178,7 +178,7 @@ export default function ListEnewsPolri() {
-
+
diff --git a/debug.log b/debug.log new file mode 100644 index 0000000..773803e --- /dev/null +++ b/debug.log @@ -0,0 +1,2 @@ +[0303/221019.644:ERROR:registration_protocol_win.cc(107)] CreateFile: The system cannot find the file specified. (0x2) +[0303/221019.882:ERROR:registration_protocol_win.cc(107)] CreateFile: The system cannot find the file specified. (0x2) diff --git a/public/assets/satker/PERBAIKAN MULTIPOOL.docx b/public/assets/satker/PERBAIKAN MULTIPOOL.docx new file mode 100644 index 0000000..860703b Binary files /dev/null and b/public/assets/satker/PERBAIKAN MULTIPOOL.docx differ diff --git a/public/emagazine.jpeg b/public/emagazine.jpeg new file mode 100644 index 0000000..79071be Binary files /dev/null and b/public/emagazine.jpeg differ