feat: update titles and enhance update contents page with tags and status selection

This commit is contained in:
fredy.siswanto 2025-03-03 17:53:35 +07:00
parent b42aa6c960
commit 69094b85ed
3 changed files with 45 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import { TitleDashboard } from '~/components/ui/title-dashboard'
export const CreateContentsPage = () => {
return (
<div className="relative">
<TitleDashboard title="Konten" />
<TitleDashboard title="Buat Artikel" />
<div className="mb-8 flex items-center gap-5 rounded-lg bg-gray-50 text-[#363636]">
<div className="w-[400px]">
<Field>

View File

@ -1,3 +1,45 @@
import { Field, Input, Label, Select } from '@headlessui/react'
import { SearchIcon } from '~/components/icons/search'
import DefaultTextEditor from '~/components/ui/text-editor'
import { TitleDashboard } from '~/components/ui/title-dashboard'
export const UpdateContentsPage = () => {
return <div>detail</div>
return (
<div className="relative">
<TitleDashboard title="Update Artikel" />
<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>
<DefaultTextEditor />
</section>
</div>
)
}

View File

@ -73,7 +73,7 @@ export const ContentsPage = () => {
return (
<Button
as="a"
href={`${value}`}
href={`/lg-admin/contents/update/${value}`}
>
Lihat Detail
</Button>