Update mock things
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Alessio Davoli 2023-12-18 15:55:05 +01:00
parent 1dfbc02c2a
commit bd12df0b8a
8 changed files with 10 additions and 8 deletions

View file

@ -16,7 +16,8 @@ declare global {
"created_at": null, "created_at": null,
"updated_at": null, "updated_at": null,
"deleted_at": null, "deleted_at": null,
"color": string "color": string,
"cover": string,
} }
interface Sport { interface Sport {
"id": 1, "id": 1,

View file

@ -3,11 +3,12 @@
export let id: string; export let id: string;
export let color: string; export let color: string;
export const path = `/paths/${id}`; export const path = `/paths/${id}`;
export let src;
</script> </script>
<a href={path} class="route-card"> <a href={path} class="route-card">
<div class="route-card-left" style="background-color: {color}"> <div class="route-card-left" style="background-color: {color}">
<img src="/images/app-bar-logo.png" alt="logo" /> <img {src} alt="logo" />
</div> </div>
<div class="route-card-center"> <div class="route-card-center">
<div class="name"> <div class="name">
@ -23,11 +24,12 @@
color: inherit; color: inherit;
cursor: pointer; cursor: pointer;
display: grid; display: grid;
grid-template-columns: 100px auto 100px; grid-template-columns: 50px auto 50px;
max-width: 100%; max-width: 100%;
width: calc(100% - 20px); width: calc(100% - 20px);
margin: 0 auto; margin: 0 auto;
height: 100%; height: 100%;
font-size: 28px;
} }
.route-card-right { .route-card-right {
border-top-right-radius: 45px; border-top-right-radius: 45px;
@ -52,7 +54,6 @@
display: grid; display: grid;
place-content: center; place-content: center;
font-weight: bold; font-weight: bold;
font-size: 20px;
padding: 4px; padding: 4px;
max-width: 100%; max-width: 100%;
text-overflow: ellipsis; text-overflow: ellipsis;

View file

@ -7,7 +7,7 @@
"description_en": "Countryside routes", "description_en": "Countryside routes",
"icon": "", "icon": "",
"color": "#de0e1b", "color": "#de0e1b",
"cover": "/storage/api-images/cat_nature.jpg", "cover": "/montagne.png",
"created_at": null, "created_at": null,
"updated_at": null, "updated_at": null,
"deleted_at": null "deleted_at": null
@ -20,7 +20,7 @@
"description_en": "History routes", "description_en": "History routes",
"icon": "", "icon": "",
"color": "#f6ae04", "color": "#f6ae04",
"cover": "/storage/api-images/cat_history.jpg", "cover": "/archi.png",
"created_at": null, "created_at": null,
"updated_at": null, "updated_at": null,
"deleted_at": null "deleted_at": null
@ -33,7 +33,7 @@
"description_en": "Culinarian and traditional routes", "description_en": "Culinarian and traditional routes",
"icon": "", "icon": "",
"color": "#213c8b", "color": "#213c8b",
"cover": "/storage/api-images/cat_trad.jpg", "cover": "/bibbito.png",
"created_at": null, "created_at": null,
"updated_at": null, "updated_at": null,
"deleted_at": null "deleted_at": null

View file

@ -14,7 +14,7 @@
<div id="welcome-message">Benvenuti a <span class="bold">Pianello Val Tidone</span></div> <div id="welcome-message">Benvenuti a <span class="bold">Pianello Val Tidone</span></div>
<div id="route-cards"> <div id="route-cards">
{#each categories as category} {#each categories as category}
<Path color={category.color} name="{category.name_it}" id={String(category.id)} /> <Path src={category.cover} color={category.color} name="{category.name_it}" id={String(category.id)} />
{/each} {/each}
</div> </div>
</main> </main>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
frontend/static/archi.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

BIN
frontend/static/bibbito.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB