This commit is contained in:
parent
1dfbc02c2a
commit
bd12df0b8a
8 changed files with 10 additions and 8 deletions
3
frontend/src/app.d.ts
vendored
3
frontend/src/app.d.ts
vendored
|
@ -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,
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
export let id: string;
|
||||
export let color: string;
|
||||
export const path = `/paths/${id}`;
|
||||
export let src;
|
||||
</script>
|
||||
|
||||
<a href={path} class="route-card">
|
||||
<div class="route-card-left" style="background-color: {color}">
|
||||
<img src="/images/app-bar-logo.png" alt="logo" />
|
||||
<img {src} alt="logo" />
|
||||
</div>
|
||||
<div class="route-card-center">
|
||||
<div class="name">
|
||||
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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={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}
|
||||
</div>
|
||||
</main>
|
||||
|
|
BIN
frontend/static/Pianello - layout app-13.png
Normal file
BIN
frontend/static/Pianello - layout app-13.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.8 KiB |
BIN
frontend/static/archi.png
Normal file
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
BIN
frontend/static/bibbito.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.1 KiB |
BIN
frontend/static/montagne.png
Normal file
BIN
frontend/static/montagne.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.3 KiB |
Loading…
Reference in a new issue