Rewrite page in Svelte 5 #49

Merged
Neshura merged 94 commits from rewrite/svelte into main 2024-01-06 14:12:09 +00:00
3 changed files with 13 additions and 2 deletions
Showing only changes of commit 3d31710c3f - Show all commits

View file

@ -4,8 +4,9 @@
import { OpenInNewWindow } from 'radix-icons-svelte'; import { OpenInNewWindow } from 'radix-icons-svelte';
import { quintInOut } from 'svelte/easing'; import { quintInOut } from 'svelte/easing';
import { slide } from 'svelte/transition'; import { slide } from 'svelte/transition';
import type { Service } from '$lib/types/data-types';
let { service } = $props(); let { service: Service } = $props();
let hover = $state({ let hover = $state({
title: false, title: false,

View file

@ -0,0 +1,9 @@
export type Service = {
name: string;
icon: string;
href: string;
desc: string;
warn: string;
extLink?: string;
id: number;
};

View file

@ -3,8 +3,9 @@
<script lang="ts"> <script lang="ts">
import pages from '$lib/components/pages.json'; import pages from '$lib/components/pages.json';
import Card from '$lib/components/Card.svelte'; import Card from '$lib/components/Card.svelte';
import type { Service } from '$lib/types/data-types';
const services = $state(pages.services); const services: Array<Service> = $state(pages.services);
</script> </script>
<svelte:head> <svelte:head>