-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5ddcbe
commit f2ab4d8
Showing
13 changed files
with
520 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import type { Children } from '@kitajs/html' | ||
|
||
export function AdminPanel(props?: { children?: Children }) { | ||
return <div class="container mx-auto grid grid-cols-6 gap-8">{props?.children}</div> | ||
} | ||
|
||
export function AdminPanelSidebar(props?: { children?: Children }) { | ||
return <div class="flex flex-col gap-y-1">{props?.children}</div> | ||
} | ||
|
||
export function AdminPanelLink(props: { href: string; active?: boolean; children: Children }) { | ||
return ( | ||
<a href={props.href} class={['admin-panel-link', props.active && 'active']}> | ||
{props.children} | ||
</a> | ||
) | ||
} | ||
|
||
export function AdminPanelBody(props?: { children?: Children }) { | ||
return <div class="col-span-5">{props?.children}</div> | ||
} | ||
|
||
export function AdminPanelHeader(props?: { children?: Children }) { | ||
return <h1 class="text-[32px] text-abru-light-75 mb-6">{props?.children}</h1> | ||
} | ||
|
||
export function AdminPanelContent(props?: { children?: Children }) { | ||
return <div class="bg-abru-dark-25 rounded-2xl p-8">{props?.children}</div> | ||
} | ||
|
||
export function AdminPanelGroup(props?: { children?: Children }) { | ||
return <div class="bg-abru-light-5 rounded-lg">{props?.children}</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { makeIcon } from './make-icon' | ||
|
||
export const IconBan = makeIcon( | ||
'ban', | ||
<> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none" /> | ||
<path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /> | ||
<path d="M5.7 5.7l12.6 12.6" /> | ||
</>, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { makeIcon } from './make-icon' | ||
|
||
export const IconChartArrowsVertical = makeIcon( | ||
'chart-arrows-vertical', | ||
<> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none" /> | ||
<path d="M18 21v-14" /> | ||
<path d="M9 15l3 -3l3 3" /> | ||
<path d="M15 10l3 -3l3 3" /> | ||
<path d="M3 21l18 0" /> | ||
<path d="M12 21l0 -9" /> | ||
<path d="M3 6l3 -3l3 3" /> | ||
<path d="M6 21v-18" /> | ||
</>, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { makeIcon } from './make-icon' | ||
|
||
export const IconEdit = makeIcon( | ||
'edit', | ||
<> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none" /> | ||
<path d="M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1" /> | ||
<path d="M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z" /> | ||
<path d="M16 5l3 3" /> | ||
</>, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { makeIcon } from './make-icon' | ||
|
||
export const IconUserScan = makeIcon( | ||
'user-scan', | ||
<> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none" /> | ||
<path d="M10 9a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" /> | ||
<path d="M4 8v-2a2 2 0 0 1 2 -2h2" /> | ||
<path d="M4 16v2a2 2 0 0 0 2 2h2" /> | ||
<path d="M16 4h2a2 2 0 0 1 2 2v2" /> | ||
<path d="M16 20h2a2 2 0 0 0 2 -2v-2" /> | ||
<path d="M8 16a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2" /> | ||
</>, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.