This commit is contained in:
parent
7740f011bd
commit
04b1bd79df
3 changed files with 13 additions and 2 deletions
|
@ -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,
|
||||
|
|
9
src/lib/types/data-types.ts
Normal file
9
src/lib/types/data-types.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
export type Service = {
|
||||
name: string;
|
||||
icon: string;
|
||||
href: string;
|
||||
desc: string;
|
||||
warn: string;
|
||||
extLink?: string;
|
||||
id: number;
|
||||
};
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue