home page improvements: link to create new client

This commit is contained in:
2024-12-25 17:00:32 -08:00
parent 015bb7b05b
commit 423165e105
3 changed files with 52 additions and 21 deletions

View File

@@ -1,5 +1,6 @@
<script lang="ts">
import { AuthForm } from '$lib/components/app/auth-form';
import { Button } from '$lib/components/ui/button';
const { data } = $props();
const { user } = data;
@@ -9,10 +10,27 @@
<title>VPGen</title>
</svelte:head>
<h1>Welcome to VPGen</h1>
<h1 class="mb-2 scroll-m-20 text-3xl font-extrabold tracking-tight lg:text-4xl">
Welcome to VPGen
</h1>
{#if user }
<p>Hi {user.name}</p>
{#if user}
<p>
Hi {user.name}!
</p>
<section id="get-started" class="border-l-2 pl-6">
<p>
To get started,
<Button class="ml-2 p-2" href="/clients?add=New+Client">Create a New Client</Button>
</p>
</section>
{:else}
<AuthForm class="p-4" />
<p>VPGen is a VPN generator that allows you to create and manage VPN connections.</p>
{/if}
<style>
p {
@apply my-2;
}
</style>