mirror of https://github.com/TZGyn/shortener
update homepage
parent
21e8c9955b
commit
9f62f49b15
@ -1,5 +1,32 @@
|
|||||||
<h1 class="text-xl">Welcome to SvelteKit</h1>
|
<script lang="ts">
|
||||||
<p>
|
import type { PageData } from './$types'
|
||||||
Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the
|
import * as Card from '$lib/components/ui/card'
|
||||||
documentation
|
import { Button } from '$lib/components/ui/button'
|
||||||
</p>
|
|
||||||
|
export let data: PageData
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class="flex flex-wrap gap-4 p-4">
|
||||||
|
<div class="w-full">
|
||||||
|
<h1 class="text-xl">Welcome to SvelteKit</h1>
|
||||||
|
<p>
|
||||||
|
Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read
|
||||||
|
the documentation
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<Card.Root class="w-[500px]">
|
||||||
|
<Card.Header>
|
||||||
|
<Card.Title>Projects</Card.Title>
|
||||||
|
<Card.Description>Projects</Card.Description>
|
||||||
|
</Card.Header>
|
||||||
|
<Card.Content>
|
||||||
|
<div class="flex w-3/4 flex-col items-stretch gap-2">
|
||||||
|
{#each data.projects as project}
|
||||||
|
<Button href={'/projects/' + project.uuid}>
|
||||||
|
{project.name}
|
||||||
|
</Button>
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
|
</Card.Content>
|
||||||
|
</Card.Root>
|
||||||
|
</div>
|
||||||
|
|||||||
@ -1,9 +0,0 @@
|
|||||||
import type { PageLoad } from './$types'
|
|
||||||
|
|
||||||
export const load: PageLoad = async () => {
|
|
||||||
return {
|
|
||||||
title: 'Authentication Example',
|
|
||||||
data: 'hello',
|
|
||||||
test: 'yo',
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue