welcome screen UI

This commit is contained in:
2025-12-31 23:37:13 +08:00
parent 401923ef4c
commit 24ebfebcfd
2 changed files with 58 additions and 16 deletions

View File

@@ -1,6 +1,8 @@
<script lang="ts">
import { invoke } from "@tauri-apps/api/core";
import { getCurrentWebviewWindow } from "@tauri-apps/api/webviewWindow";
import DollPreview from "../app-menu/components/doll-preview.svelte";
import ExternalLink from "../../assets/icons/external-link.svelte";
let isContinuing = false;
@@ -17,24 +19,49 @@
};
</script>
<div class="w-full h-full bg-base-100 flex items-center justify-center p-8">
<div class="card w-full max-w-md bg-base-200 shadow-lg">
<div class="card-body gap-4">
<div class="flex flex-col gap-1">
<h1 class="text-2xl font-semibold">Friendolls</h1>
<p class="text-base text-base-content/80">
Passive social app connecting peers through mouse cursor interactions in the form of desktop pets.
</p>
<div class="size-full relative bg-linear-to-br from-base-100 to-[#b7f2ff77]">
<div class="flex flex-row gap-2 justify-between size-full p-6">
<div class="flex flex-col justify-between">
<div class="flex flex-col gap-2 h-full pt-4">
<div class="flex flex-col gap-8 mb-18">
<div class="flex flex-col gap-2">
<div class="flex flex-row gap-2">
<p class="text-xl font-light">meow? nyaaa!!</p>
</div>
<p class="opacity-70 text-3xl font-bold">
a cute passive socialization layer!
</p>
</div>
<div>
<button
class="btn btn-primary"
onclick={handleContinue}
disabled={isContinuing}
>
{#if isContinuing}
Loading...
{:else}
<div class="scale-70">
<ExternalLink />
</div>
Sign in with browser
{/if}
</button>
</div>
<p class="text-xs opacity-50 max-w-60">
An account is needed to identify you for connecting with friends.
</p>
</div>
</div>
<div class="card-actions justify-end pt-2">
<button class="btn btn-primary" onclick={handleContinue} disabled={isContinuing}>
{#if isContinuing}
Loading...
{:else}
Continue
{/if}
</button>
<div>
<p class="uppercase">Pre-release</p>
</div>
</div>
</div>
<div class="absolute bottom-6 right-6 flex flex-col gap-1 justify-between">
<div></div>
<div class="flex flex-col scale-200 origin-bottom-right">
<DollPreview bodyColor="b7f2ff" outlineColor="496065" />
</div>
</div>
</div>