feat:static page table
This commit is contained in:
parent
3e4dedfff7
commit
24418ddb9b
|
|
@ -0,0 +1,10 @@
|
|||
import StaticPageBuilder from "@/components/main/static-page/static-page-main";
|
||||
import { Card } from "@nextui-org/react";
|
||||
|
||||
export default function StaticPageGenerator() {
|
||||
return (
|
||||
<Card className="rounded-md border bg-transparent p-4">
|
||||
<StaticPageBuilder />
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
|
@ -1,10 +1,26 @@
|
|||
import StaticPageBuilder from "@/components/main/static-page/static-page-main";
|
||||
import { Card } from "@nextui-org/react";
|
||||
import { AddIcon } from "@/components/icons";
|
||||
import StaticPageTable from "@/components/table/static-page-table";
|
||||
import { Button, Card } from "@nextui-org/react";
|
||||
import Link from "next/link";
|
||||
|
||||
export default function StaticPageGenerator() {
|
||||
export default function StaticPageGeneratorList() {
|
||||
return (
|
||||
<Card className="rounded-md border bg-transparent p-4">
|
||||
<StaticPageBuilder />
|
||||
<div className="overflow-x-hidden overflow-y-scroll rounded-lg border-2">
|
||||
<div className="px-2 md:px-4 w-full">
|
||||
<div className="rounded-md mt-4 px-5 py-2 bg-white dark:bg-[#18181b] flex flex-row gap-3">
|
||||
<Link href="/admin/static-page/create">
|
||||
<Button size="md" color="primary" className="w-min">
|
||||
<AddIcon />
|
||||
Create Page
|
||||
</Button>
|
||||
</Link>
|
||||
</div>
|
||||
<div className="bg-white dark:bg-[#18181b] rounded-xl p-2">
|
||||
<StaticPageTable />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
"use client";
|
||||
import { AddIcon } from "@/components/icons";
|
||||
import ArticleTable from "@/components/table/article-table";
|
||||
import { Button, Card } from "@nextui-org/react";
|
||||
import Link from "next/link";
|
||||
|
||||
export default function StaticPageTable() {
|
||||
return <ArticleTable />;
|
||||
}
|
||||
Loading…
Reference in New Issue