basic chat intro

This commit is contained in:
Thomas G. Lopes 2025-06-16 13:16:10 +01:00
parent 297deb9459
commit 12b683a9a0
3 changed files with 32 additions and 0 deletions

View file

@ -52,3 +52,4 @@ IDK, calm down
- [ ] Chat branching
- [ ] Image generation
- [ ] Chat sharing
- [ ] 404 page

View file

@ -52,6 +52,7 @@
<PanelLeftIcon />
</Sidebar.Trigger>
<div class="mx-auto flex size-full max-w-3xl flex-col">
{@render children()}
<div class="mt-auto flex w-full flex-col gap-1">
<form class="relative h-18 w-full">
<textarea

View file

@ -1,2 +1,32 @@
<script lang="ts">
import Button from '$lib/components/ui/button/button.svelte';
import { session } from '$lib/state/session.svelte';
import IconAi from '~icons/lucide/sparkles';
</script>
<div class="flex h-full flex-1 flex-col items-center justify-center">
<div class="w-full p-2">
<h2 class="text-left font-serif text-3xl font-semibold">Hey there, Bozo!</h2>
<p class="mt-2 text-left text-lg">
{#if session.current?.user.name}
Oops, I meant {session.current?.user.name}.
{:else}
Be sure to login first.
{/if}
</p>
<div class="mt-2 flex items-center gap-1">
{#each { length: 4 }}
<Button variant="outline" class="rounded-full">
<IconAi />
Create
</Button>
{/each}
</div>
<ul class="mt-2 flex flex-col gap-2">
{#each { length: 3 } as _, i (i)}
<li class={['py-2', i !== 2 && 'border-b']}>Hey AI, write me a poem</li>
{/each}
</ul>
</div>
</div>