Group site checklist into sections
This commit is contained in:
parent
b91e9aa4d9
commit
5ac9409b55
@ -1,18 +1,29 @@
|
|||||||
import { cc } from '@/utility/css';
|
import { cc } from '@/utility/css';
|
||||||
|
|
||||||
export default function Checklist({
|
export default function Checklist({
|
||||||
|
title,
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
|
title?: string
|
||||||
children: React.ReactNode
|
children: React.ReactNode
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<div className={cc(
|
<div>
|
||||||
'bg-white dark:bg-black',
|
{title &&
|
||||||
'dark:text-gray-400',
|
<div className={cc(
|
||||||
'border border-gray-200 dark:border-gray-800 rounded-md',
|
'font-bold dark:text-gray-300',
|
||||||
'divide-y divide-gray-200 dark:divide-gray-800',
|
'pl-4 mb-2',
|
||||||
)}>
|
)}>
|
||||||
{children}
|
{title}
|
||||||
|
</div>}
|
||||||
|
<div className={cc(
|
||||||
|
'bg-white dark:bg-black',
|
||||||
|
'dark:text-gray-400',
|
||||||
|
'border border-gray-200 dark:border-gray-800 rounded-md',
|
||||||
|
'divide-y divide-gray-200 dark:divide-gray-800',
|
||||||
|
)}>
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,7 @@ export default function ChecklistRow({
|
|||||||
return (
|
return (
|
||||||
<div className={cc(
|
<div className={cc(
|
||||||
'flex gap-2.5',
|
'flex gap-2.5',
|
||||||
'px-4 py-3',
|
'px-4 pt-2 pb-2.5',
|
||||||
'text-left',
|
'text-left',
|
||||||
)}>
|
)}>
|
||||||
<div className="min-w-[1rem] pt-[1px]">
|
<div className="min-w-[1rem] pt-[1px]">
|
||||||
|
|||||||
@ -101,7 +101,7 @@ export default function SiteChecklistClient({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="text-sm max-w-xl space-y-4">
|
<div className="text-sm max-w-xl space-y-4">
|
||||||
<Checklist>
|
<Checklist title="Site content">
|
||||||
<ChecklistRow
|
<ChecklistRow
|
||||||
title="Add title"
|
title="Add title"
|
||||||
status={hasTitle}
|
status={hasTitle}
|
||||||
@ -119,6 +119,8 @@ export default function SiteChecklistClient({
|
|||||||
Store in environment variable:
|
Store in environment variable:
|
||||||
{renderEnvVars(['NEXT_PUBLIC_SITE_DOMAIN'])}
|
{renderEnvVars(['NEXT_PUBLIC_SITE_DOMAIN'])}
|
||||||
</ChecklistRow>
|
</ChecklistRow>
|
||||||
|
</Checklist>
|
||||||
|
<Checklist title="Storage">
|
||||||
<ChecklistRow
|
<ChecklistRow
|
||||||
title="Setup database"
|
title="Setup database"
|
||||||
status={hasPostgres}
|
status={hasPostgres}
|
||||||
@ -143,6 +145,8 @@ export default function SiteChecklistClient({
|
|||||||
{' '}
|
{' '}
|
||||||
and connect to project
|
and connect to project
|
||||||
</ChecklistRow>
|
</ChecklistRow>
|
||||||
|
</Checklist>
|
||||||
|
<Checklist title="Authentication">
|
||||||
<ChecklistRow
|
<ChecklistRow
|
||||||
title="Setup auth"
|
title="Setup auth"
|
||||||
status={hasAuth}
|
status={hasAuth}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user