mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-16 07:49:06 +02:00
add theme change + high res icon
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import {title, family_tree} from '$lib/paraglide/messages.js';
|
||||
import { SvelteFlowProvider,Background, BackgroundVariant, SvelteFlow, Controls, MiniMap } from '@xyflow/svelte';
|
||||
import type { Node, Edge, NodeTypes, NodeProps } from '@xyflow/svelte';
|
||||
import ThemeButton from '$lib/theme-select.svelte';
|
||||
|
||||
let nodes = $state.raw<Node[]>([]);
|
||||
let edges = $state.raw<Edge[]>([]);
|
||||
@@ -11,6 +12,10 @@
|
||||
<title>{title({ page: family_tree() })}</title>
|
||||
</svelte:head>
|
||||
|
||||
<div class="absolute top-2 right-2">
|
||||
<ThemeButton />
|
||||
</div>
|
||||
|
||||
<div style="height:100vh;">
|
||||
<SvelteFlowProvider>
|
||||
<SvelteFlow bind:nodes bind:edges class="bg-base-100" fitView onlyRenderVisibleElements>
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 690 KiB |
Reference in New Issue
Block a user