Add service type
Some checks failed
Run Tests on Code / test (push) Failing after 3m34s

This commit is contained in:
Neshura 2024-01-01 20:10:19 +01:00
parent 7740f011bd
commit 04b1bd79df
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
3 changed files with 13 additions and 2 deletions

View file

@ -4,8 +4,9 @@
import { OpenInNewWindow } from 'radix-icons-svelte';
import { quintInOut } from 'svelte/easing';
import { slide } from 'svelte/transition';
import type { Service } from '$lib/types/data-types';
let { service } = $props();
let { service: Service } = $props();
let hover = $state({
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">
import pages from '$lib/components/pages.json';
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>
<svelte:head>