feat: enhance layout and button functionality in subscriptions page
This commit is contained in:
parent
6d8e352ffc
commit
dc794a29d3
@ -52,44 +52,50 @@ export const SubscriptionsPage = () => {
|
|||||||
return (
|
return (
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
<TitleDashboard title="Subscription" />
|
<TitleDashboard title="Subscription" />
|
||||||
<Button
|
|
||||||
className="float-right mt-7 h-10 w-[160px] rounded-md"
|
|
||||||
onClick={switchView}
|
|
||||||
>
|
|
||||||
{SubscribtionOpen ? 'Subscriptions' : 'Save'}
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
{SubscribtionOpen && (
|
{SubscribtionOpen && (
|
||||||
<>
|
<>
|
||||||
<div className="mb-8 flex items-center gap-5 rounded-lg bg-gray-50 text-[#363636]">
|
<div className="mb-8 flex items-end justify-between">
|
||||||
<div className="w-[400px]">
|
<div className="flex items-center gap-5 rounded-lg bg-gray-50 text-[#363636]">
|
||||||
<Field>
|
<div className="w-[400px]">
|
||||||
<Label className="mb-2 block text-sm font-medium">
|
<Field>
|
||||||
Cari User
|
<Label className="mb-2 block text-sm font-medium">
|
||||||
</Label>
|
Cari User
|
||||||
<div className="relative">
|
</Label>
|
||||||
<Input
|
<div className="relative">
|
||||||
type="text"
|
<Input
|
||||||
placeholder="Cari Nama"
|
type="text"
|
||||||
className="w-full rounded-lg bg-white p-2 pr-10 pl-4 shadow focus:ring-1 focus:ring-[#2E2F7C] focus:outline-none"
|
placeholder="Cari Nama"
|
||||||
/>
|
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 className="absolute inset-y-0 right-0 flex items-center pr-3">
|
||||||
|
<SearchIcon className="h-5 w-5" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</Field>
|
||||||
</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>
|
</div>
|
||||||
|
|
||||||
<div className="w-[235px]">
|
<Button
|
||||||
<Field>
|
className="rounded-md"
|
||||||
<Label className="mb-2 block text-sm font-medium">Status</Label>
|
size="lg"
|
||||||
<Select className="w-full rounded-lg bg-white p-2 shadow focus:ring-1 focus:ring-[#2E2F7C] focus:outline-none">
|
onClick={switchView}
|
||||||
<option>Pilih Status</option>
|
>
|
||||||
<option>Aktif</option>
|
Subscription Settings
|
||||||
<option>Nonaktif</option>
|
</Button>
|
||||||
</Select>
|
|
||||||
</Field>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<UiTable
|
<UiTable
|
||||||
@ -108,48 +114,57 @@ export const SubscriptionsPage = () => {
|
|||||||
|
|
||||||
{!SubscribtionOpen && (
|
{!SubscribtionOpen && (
|
||||||
<>
|
<>
|
||||||
<div className="mb-8 flex items-end gap-5 rounded-lg bg-gray-50 text-[#363636]">
|
<div className="mb-8 flex items-end justify-between">
|
||||||
<div className="w-[300px]">
|
<div className="flex items-end gap-5 rounded-lg bg-gray-50 text-[#363636]">
|
||||||
<Field>
|
<div className="w-[300px]">
|
||||||
<Label className="mb-2 block text-sm font-medium">
|
<Field>
|
||||||
Subscription Name
|
<Label className="mb-2 block text-sm font-medium">
|
||||||
</Label>
|
Subscription Name
|
||||||
<div className="relative">
|
</Label>
|
||||||
<Input
|
<div className="relative">
|
||||||
type="text"
|
<Input
|
||||||
placeholder="Subscription Name"
|
type="text"
|
||||||
className="w-full rounded-lg bg-white p-2 pr-10 pl-4 shadow focus:ring-1 focus:ring-[#2E2F7C] focus:outline-none"
|
placeholder="Subscription Name"
|
||||||
/>
|
className="w-full rounded-lg bg-white p-2 pr-10 pl-4 shadow focus:ring-1 focus:ring-[#2E2F7C] focus:outline-none"
|
||||||
</div>
|
/>
|
||||||
</Field>
|
</div>
|
||||||
</div>
|
</Field>
|
||||||
<div className="w-[300px]">
|
</div>
|
||||||
<Field>
|
<div className="w-[300px]">
|
||||||
<Label className="mb-2 block text-sm font-medium">
|
<Field>
|
||||||
Subscription Price
|
<Label className="mb-2 block text-sm font-medium">
|
||||||
</Label>
|
Subscription Price
|
||||||
<div className="relative">
|
</Label>
|
||||||
<Input
|
<div className="relative">
|
||||||
type="text"
|
<Input
|
||||||
placeholder="Subscription Price"
|
type="text"
|
||||||
className="w-full rounded-lg bg-white p-2 pr-10 pl-4 shadow focus:ring-1 focus:ring-[#2E2F7C] focus:outline-none"
|
placeholder="Subscription Price"
|
||||||
/>
|
className="w-full rounded-lg bg-white p-2 pr-10 pl-4 shadow focus:ring-1 focus:ring-[#2E2F7C] focus:outline-none"
|
||||||
</div>
|
/>
|
||||||
</Field>
|
</div>
|
||||||
</div>
|
</Field>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="w-[300px]">
|
<div className="w-[300px]">
|
||||||
<Field>
|
<Field>
|
||||||
<Label className="mb-2 block text-sm font-medium">
|
<Label className="mb-2 block text-sm font-medium">
|
||||||
Subscription Length (Days)
|
Subscription Length (Days)
|
||||||
</Label>
|
</Label>
|
||||||
<Input
|
<Input
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Subscription Length (Days)"
|
placeholder="Subscription Length (Days)"
|
||||||
className="w-full rounded-lg bg-white p-2 shadow focus:ring-1 focus:ring-[#2E2F7C] focus:outline-none"
|
className="w-full rounded-lg bg-white p-2 shadow focus:ring-1 focus:ring-[#2E2F7C] focus:outline-none"
|
||||||
></Input>
|
></Input>
|
||||||
</Field>
|
</Field>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<Button
|
||||||
|
className="rounded-md"
|
||||||
|
size="lg"
|
||||||
|
onClick={switchView}
|
||||||
|
>
|
||||||
|
Save
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<UiTable
|
<UiTable
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user