Update svelte and typescript usage
All checks were successful
Build / build (push) Successful in 22s
All checks were successful
Build / build (push) Successful in 22s
This commit is contained in:
parent
816907b0ea
commit
26bd739638
19 changed files with 237 additions and 934 deletions
|
|
@ -1,9 +1,19 @@
|
|||
<script lang="ts">
|
||||
export let name: string;
|
||||
export let link: string;
|
||||
export let img = "https://placehold.it/600x300";
|
||||
export let size = { width: 600, height: 300 };
|
||||
export let description: string;
|
||||
interface Props {
|
||||
name: string;
|
||||
link: string;
|
||||
img?: string;
|
||||
size?: { width: number; height: number };
|
||||
description: string;
|
||||
}
|
||||
|
||||
let {
|
||||
name,
|
||||
link,
|
||||
img = "https://placehold.it/600x300",
|
||||
size = { width: 600, height: 300 },
|
||||
description
|
||||
}: Props = $props();
|
||||
</script>
|
||||
|
||||
<div class="card">
|
||||
|
|
|
|||
Loading…
Reference in a new issue