mirror of
https://github.com/runebookai/tome.git
synced 2025-07-21 00:27:30 +03:00
43 lines
1.5 KiB
Svelte
43 lines
1.5 KiB
Svelte
<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>
|