diff --git a/frontend/src/app.d.ts b/frontend/src/app.d.ts index 0106c83..d77aac2 100644 --- a/frontend/src/app.d.ts +++ b/frontend/src/app.d.ts @@ -16,7 +16,8 @@ declare global { "created_at": null, "updated_at": null, "deleted_at": null, - "color": string + "color": string, + "cover": string, } interface Sport { "id": 1, diff --git a/frontend/src/lib/components/Path.svelte b/frontend/src/lib/components/Path.svelte index 0aad579..1f1fd5a 100644 --- a/frontend/src/lib/components/Path.svelte +++ b/frontend/src/lib/components/Path.svelte @@ -3,11 +3,12 @@ export let id: string; export let color: string; export const path = `/paths/${id}`; + export let src;
- logo + logo
@@ -23,11 +24,12 @@ color: inherit; cursor: pointer; display: grid; - grid-template-columns: 100px auto 100px; + grid-template-columns: 50px auto 50px; max-width: 100%; width: calc(100% - 20px); margin: 0 auto; height: 100%; + font-size: 28px; } .route-card-right { border-top-right-radius: 45px; @@ -52,7 +54,6 @@ display: grid; place-content: center; font-weight: bold; - font-size: 20px; padding: 4px; max-width: 100%; text-overflow: ellipsis; diff --git a/frontend/src/lib/mock/routeCategories.json b/frontend/src/lib/mock/routeCategories.json index 12898b8..cc0ddc7 100644 --- a/frontend/src/lib/mock/routeCategories.json +++ b/frontend/src/lib/mock/routeCategories.json @@ -7,7 +7,7 @@ "description_en": "Countryside routes", "icon": "", "color": "#de0e1b", - "cover": "/storage/api-images/cat_nature.jpg", + "cover": "/montagne.png", "created_at": null, "updated_at": null, "deleted_at": null @@ -20,7 +20,7 @@ "description_en": "History routes", "icon": "", "color": "#f6ae04", - "cover": "/storage/api-images/cat_history.jpg", + "cover": "/archi.png", "created_at": null, "updated_at": null, "deleted_at": null @@ -33,7 +33,7 @@ "description_en": "Culinarian and traditional routes", "icon": "", "color": "#213c8b", - "cover": "/storage/api-images/cat_trad.jpg", + "cover": "/bibbito.png", "created_at": null, "updated_at": null, "deleted_at": null diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte index e80eeab..8211678 100644 --- a/frontend/src/routes/+page.svelte +++ b/frontend/src/routes/+page.svelte @@ -14,7 +14,7 @@
Benvenuti a Pianello Val Tidone
{#each categories as category} - + {/each}
diff --git a/frontend/static/Pianello - layout app-13.png b/frontend/static/Pianello - layout app-13.png new file mode 100644 index 0000000..8ba35e6 Binary files /dev/null and b/frontend/static/Pianello - layout app-13.png differ diff --git a/frontend/static/archi.png b/frontend/static/archi.png new file mode 100644 index 0000000..e7ea209 Binary files /dev/null and b/frontend/static/archi.png differ diff --git a/frontend/static/bibbito.png b/frontend/static/bibbito.png new file mode 100644 index 0000000..6506651 Binary files /dev/null and b/frontend/static/bibbito.png differ diff --git a/frontend/static/montagne.png b/frontend/static/montagne.png new file mode 100644 index 0000000..dec3657 Binary files /dev/null and b/frontend/static/montagne.png differ