feat: add create and update contents pages with admin dashboard layout
This commit is contained in:
parent
9da31472f9
commit
1486d3a7b7
42
app/pages/contents-create/index.tsx
Normal file
42
app/pages/contents-create/index.tsx
Normal file
@ -0,0 +1,42 @@
|
||||
import { Field, Input, Label, Select } from '@headlessui/react'
|
||||
|
||||
import { SearchIcon } from '~/components/icons/search'
|
||||
import { TitleDashboard } from '~/components/ui/title-dashboard'
|
||||
|
||||
export const CreateContentsPage = () => {
|
||||
return (
|
||||
<div className="relative">
|
||||
<TitleDashboard title="Konten" />
|
||||
<div className="mb-8 flex items-center gap-5 rounded-lg bg-gray-50 text-[#363636]">
|
||||
<div className="w-[400px]">
|
||||
<Field>
|
||||
<Label className="mb-2 block text-sm font-medium">Pilih Tags</Label>
|
||||
<div className="relative">
|
||||
<Input
|
||||
type="text"
|
||||
placeholder="Cari Tags"
|
||||
className="w-full rounded-lg bg-white p-2 pr-10 pl-4 shadow focus:ring-1 focus:ring-[#2E2F7C] focus:outline-none"
|
||||
/>
|
||||
<div className="absolute inset-y-0 right-0 flex items-center pr-3">
|
||||
<SearchIcon className="h-5 w-5" />
|
||||
</div>
|
||||
</div>
|
||||
</Field>
|
||||
</div>
|
||||
|
||||
<div className="w-[235px]">
|
||||
<Field>
|
||||
<Label className="mb-2 block text-sm font-medium">Status</Label>
|
||||
<Select className="w-full rounded-lg bg-white p-2 shadow focus:ring-1 focus:ring-[#2E2F7C] focus:outline-none">
|
||||
<option>Pilih Status</option>
|
||||
<option>Aktif</option>
|
||||
<option>Nonaktif</option>
|
||||
</Select>
|
||||
</Field>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section></section>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
3
app/pages/contents-update/index.tsx
Normal file
3
app/pages/contents-update/index.tsx
Normal file
@ -0,0 +1,3 @@
|
||||
export const UpdateContentsPage = () => {
|
||||
return <div>detail</div>
|
||||
}
|
||||
11
app/routes/_admin.lg-admin.contents.create.tsx
Normal file
11
app/routes/_admin.lg-admin.contents.create.tsx
Normal file
@ -0,0 +1,11 @@
|
||||
import { AdminDashboardLayout } from '~/layouts/admin/dashboard'
|
||||
import { CreateContentsPage } from '~/pages/contents-create'
|
||||
|
||||
const DashboardContentsLayout = () => {
|
||||
return (
|
||||
<AdminDashboardLayout>
|
||||
<CreateContentsPage />
|
||||
</AdminDashboardLayout>
|
||||
)
|
||||
}
|
||||
export default DashboardContentsLayout
|
||||
11
app/routes/_admin.lg-admin.contents.update.$id.tsx
Normal file
11
app/routes/_admin.lg-admin.contents.update.$id.tsx
Normal file
@ -0,0 +1,11 @@
|
||||
import { AdminDashboardLayout } from '~/layouts/admin/dashboard'
|
||||
import { UpdateContentsPage } from '~/pages/contents-update'
|
||||
|
||||
const DashboardContentsLayout = () => {
|
||||
return (
|
||||
<AdminDashboardLayout>
|
||||
<UpdateContentsPage />
|
||||
</AdminDashboardLayout>
|
||||
)
|
||||
}
|
||||
export default DashboardContentsLayout
|
||||
Loading…
x
Reference in New Issue
Block a user