Compare commits
2 commits
330d19aa94
...
616a62d4b5
Author | SHA1 | Date | |
---|---|---|---|
616a62d4b5 | |||
8f30dd9f54 |
2 changed files with 8 additions and 4 deletions
8
frontend/src/app.d.ts
vendored
8
frontend/src/app.d.ts
vendored
|
@ -15,7 +15,8 @@ declare global {
|
|||
"icon": "",
|
||||
"created_at": null,
|
||||
"updated_at": null,
|
||||
"deleted_at": null
|
||||
"deleted_at": null,
|
||||
"color": string
|
||||
}
|
||||
interface Sport {
|
||||
"id": 1,
|
||||
|
@ -67,5 +68,8 @@ declare global {
|
|||
}
|
||||
}
|
||||
export {
|
||||
Route
|
||||
Route,
|
||||
Category,
|
||||
Sport,
|
||||
SportDetails
|
||||
};
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// import Splash from '$lib/components/Splash.svelte';
|
||||
|
||||
export let data;
|
||||
let categories = data.categories;
|
||||
let categories: App.Category[] = data.categories;
|
||||
</script>
|
||||
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
|||
<div id="welcome-message">Benvenuti a <span class="bold">Pianello Val Tidone</span></div>
|
||||
<div id="route-cards">
|
||||
{#each categories as category}
|
||||
<Path color="#de0e1b" name="{category.name_it}" id="{category.id}" />
|
||||
<Path color={category.color} name="{category.name_it}" id={String(category.id)} />
|
||||
{/each}
|
||||
</div>
|
||||
</main>
|
||||
|
|
Loading…
Reference in a new issue