55 lines
1.6 KiB
Svelte
55 lines
1.6 KiB
Svelte
<script lang="ts">
|
|
import { Plus, Search, SquarePen } from '@lucide/svelte';
|
|
import Button from '../../../modules/Button.svelte';
|
|
import UsersTable from '../../../modules/panel/users/UsersTable.svelte';
|
|
|
|
function log2() {
|
|
console.log('test');
|
|
}
|
|
|
|
let searchPrompt = $state();
|
|
|
|
$inspect(searchPrompt);
|
|
|
|
function log(newValue: any) {
|
|
console.log(newValue);
|
|
}
|
|
</script>
|
|
|
|
<!-- <ContextMenu items={[{ label: 'test123', action: log2 }]} onClose={() => {}}></ContextMenu> -->
|
|
<div class="mb-4 flex flex-row justify-between">
|
|
<div
|
|
class="
|
|
flex flex-row items-center justify-between
|
|
overflow-clip rounded-md border border-border
|
|
bg-surface-1 has-focus:border-focus-ring
|
|
"
|
|
>
|
|
<input
|
|
type="text"
|
|
class=" w-full px-3 py-2 outline-none placeholder:text-muted"
|
|
placeholder="Search..."
|
|
bind:value={searchPrompt}
|
|
/>
|
|
<Search strokeWidth={2} size={20} class="mx-3"></Search>
|
|
</div>
|
|
<Button class="flex flex-row items-center bg-primary text-text-on-primary">
|
|
<Plus class="ml-1" size={20}></Plus>
|
|
<span class="mx-2">Add User</span>
|
|
</Button>
|
|
</div>
|
|
<div style="grid-template-areas: 'a b';" class=" grid-cols-[2fr 1fr] grid size-full shadow-subtle">
|
|
<div style="grid-area: a;" class=" size-full">
|
|
<UsersTable></UsersTable>
|
|
</div>
|
|
<div style="grid-area: b;" class=" p-4">
|
|
<div class="bg-bg-dark rounded-2xl">
|
|
<div class="flex h-full flex-col items-center justify-center">
|
|
<SquarePen size={128} strokeWidth={1} class="text-gray-800" />
|
|
<p class="text-2xl font-bold text-gray-800">Nothing here but us chickens...</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="w-full"></div>
|