minor layout improvements
This commit is contained in:
parent
eb2b869015
commit
991355a95a
@ -6,9 +6,10 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
%sveltekit.head%
|
%sveltekit.head%
|
||||||
</head>
|
</head>
|
||||||
<body data-sveltekit-preload-data="hover">
|
<body
|
||||||
<div class="flex min-h-screen flex-col items-center gap-8 p-4 max-sm:px-2">
|
data-sveltekit-preload-data="hover"
|
||||||
|
class="flex min-h-screen flex-col items-center gap-8 p-4 max-sm:px-2"
|
||||||
|
>
|
||||||
%sveltekit.body%
|
%sveltekit.body%
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<header class="flex w-full flex-wrap justify-between gap-x-6 gap-y-4 md:max-w-3xl">
|
<header class="flex w-full flex-wrap justify-between gap-x-6 gap-y-4 xl:max-w-screen-xl">
|
||||||
<span class="font-bold sm:inline-block">VPGen</span>
|
<span class="font-bold sm:inline-block">VPGen</span>
|
||||||
<nav>
|
<nav class="max-w-full">
|
||||||
<ul class="flex flex-wrap items-center gap-6 text-sm">
|
<ul class="flex items-center gap-6 overflow-x-auto text-sm">
|
||||||
<li><a href="/" class={getNavClass(/^\/$/)}>Home</a></li>
|
<li><a href="/" class={getNavClass(/^\/$/)}>Home</a></li>
|
||||||
{#if user}
|
{#if user}
|
||||||
<li><a href="/user" class={getNavClass(/^\/user$/)}>Profile</a></li>
|
<li><a href="/user" class={getNavClass(/^\/user$/)}>Profile</a></li>
|
||||||
@ -27,7 +27,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
<main class="flex min-w-full max-w-full flex-grow flex-col gap-4 md:min-w-[48rem]">
|
<main class="flex min-w-full max-w-full flex-grow flex-col gap-4 xl:min-w-[1280px]">
|
||||||
{@render children()}
|
{@render children()}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<section id="get-started" class="border-l-2 pl-6">
|
<section id="get-started" class="border-l-2 pl-6">
|
||||||
<p>
|
<p>
|
||||||
To get started,
|
To get started,
|
||||||
<Button class="ml-2 p-2" href="/clients?add=New+Client">Create a New Client</Button>
|
<Button class="ml-2" href="/clients?add=New+Client">Create a New Client</Button>
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
<!-- <section id="using-wireguard">-->
|
<!-- <section id="using-wireguard">-->
|
||||||
@ -34,8 +34,8 @@
|
|||||||
<!-- </details>-->
|
<!-- </details>-->
|
||||||
<!-- </section>-->
|
<!-- </section>-->
|
||||||
{:else}
|
{:else}
|
||||||
<AuthForm class="p-4" />
|
<AuthForm />
|
||||||
<p>VPGen is a VPN generator that allows you to create and manage VPN connections.</p>
|
<!-- <p>VPGen is a VPN generator that allows you to create and manage VPN connections.</p>-->
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@ -61,13 +61,13 @@
|
|||||||
</Table.Root>
|
</Table.Root>
|
||||||
|
|
||||||
<!--Floating action button for adding a new client-->
|
<!--Floating action button for adding a new client-->
|
||||||
<!--Not sure if this is the best place for the input field, will think about it later-->
|
|
||||||
<div class="mt-auto flex self-end pt-4">
|
|
||||||
<Dialog.Root bind:open={dialogOpen}>
|
<Dialog.Root bind:open={dialogOpen}>
|
||||||
<Dialog.Trigger class={buttonVariants({ variant: "default" }) + "flex gap-4"}>
|
<div class="mt-auto flex self-end pt-4">
|
||||||
|
<Dialog.Trigger class={buttonVariants({ variant: 'default' }) + ' flex gap-4'}>
|
||||||
<LucidePlus />
|
<LucidePlus />
|
||||||
Add Client
|
New Client
|
||||||
</Dialog.Trigger>
|
</Dialog.Trigger>
|
||||||
|
</div>
|
||||||
<Dialog.Content class="max-w-xs">
|
<Dialog.Content class="max-w-xs">
|
||||||
<form class="contents" method="post" action="?/create">
|
<form class="contents" method="post" action="?/create">
|
||||||
<Dialog.Header class="">
|
<Dialog.Header class="">
|
||||||
@ -91,4 +91,3 @@
|
|||||||
</form>
|
</form>
|
||||||
</Dialog.Content>
|
</Dialog.Content>
|
||||||
</Dialog.Root>
|
</Dialog.Root>
|
||||||
</div>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user