Files
tome/src/components/Welcome.svelte
2025-06-28 19:31:32 -07:00

43 lines
1.5 KiB
Svelte
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script lang="ts">
import { invoke } from '@tauri-apps/api/core';
import { platform } from '@tauri-apps/plugin-os';
import Flex from '$components/Flex.svelte';
import Config from '$lib/models/config.svelte';
async function accept() {
const config = Config.findByOrNew({ key: 'welcome-agreed' });
config.value = true;
await config.save();
if (platform() == 'windows') {
await invoke('restart');
}
}
</script>
<Flex class="w-full items-start overflow-hidden">
<img class="mr-12 h-48 w-48" src="/images/tome.png" alt="tome" />
<Flex class="max-w-[400px] flex-col items-start gap-4 overflow-y-scroll">
<h1 class="text-purple text-3xl">Welcome to Tome</h1>
<p>
Thanks for being an early adopter! We appreciate you kicking the tires of our
<strong>Technical Preview</strong>
as we explore making local LLMs, MCP, and AI app composition a better experience.
</p>
<p>
This is an extremely early build. There will be problems edges are rough features
are lacking we know 🙂 Let us know what you're running into and what you'd like to
see.
</p>
<button
onclick={() => accept()}
class="from-purple-dark to-purple mt-2 rounded-md bg-linear-to-t
p-1 px-4 font-medium hover:cursor-pointer"
>
Sounds good, let's go!
</button>
</Flex>
</Flex>