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

This commit is contained in:
Alessio Davoli 2023-07-10 20:01:15 +02:00
parent f4ec06a1b1
commit 872109b0fd
7 changed files with 33 additions and 16 deletions

View file

@ -46,10 +46,6 @@
place-items: center;
}
.bold {
font-weight: bold;
}
@font-face {
font-family: 'Roboto-Regular';
src: url('/fonts/roboto/Roboto-Regular.ttf') format('TrueType');

View file

@ -18,6 +18,9 @@
border-radius: 90px;
box-shadow: 0 0 50px #ccc;
background-color: var(--card-background-color);
position: absolute;
bottom: 0;
margin-bottom: 10px;
}
#container > a {

View file

@ -2,10 +2,10 @@
export let route: App.Route;
</script>
<a href="/routes/{route.id}"
><img src="/images/test-1.jpg" alt="route" />
<a href="/routes/{route.id}">
<div id="image" style="background-image: url(/images/test-1.jpg" />
<p>{route.name}</p>
{route.duration}
<p>{route.duration}</p>
</a>
<style>
@ -13,12 +13,19 @@
display: block;
box-shadow: 0 0 50px #ccc;
border-radius: 30px;
padding: 10px;
height: 200px;
max-width: 150px;
max-width: 150px;
}
a img {
#image {
width: 100%;
height: 150px;
object-fit: cover;
border-radius: 30px;
}
a p {
text-decoration: inherit;
color: inherit;
cursor: auto;
padding: 5px;
}
</style>

View file

@ -18,7 +18,8 @@
<style>
img {
position: absolute;
height: 100vh;
z-index: 99;
height: 100%;
margin: 0 auto;
}
</style>

View file

@ -4,7 +4,7 @@
import Splash from '$lib/components/Splash.svelte';
</script>
<Splash></Splash>
<Splash />
<header>
<div id="welcome-message">Benvenuti a <span class="bold">Pianello Val Tidone</span></div>
</header>
@ -17,9 +17,15 @@
</div>
</main>
<style>
main {
width: 100%;
margin: 0px;
font-family: 'Roboto-Regular';
display: grid;
place-items: center;
}
.bold {
font-weight: bold;
}

View file

@ -8,7 +8,8 @@ export async function load({ params }) {
routes: [
{id: 1, name: 'Percorso Pianello 1', image: '/images/test-1.jpg', duration: 123123123},
{id: 2, name: 'Percorso Pianello 2', image: '/images/test-1.jpg', duration: 123123123},
{id: 3, name: 'Percorso Pianello 3', image: '/images/test-1.jpg', duration: 123123123}
{id: 3, name: 'Percorso Pianello 3', image: '/images/test-1.jpg', duration: 123123123},
{id: 4, name: 'Percorso Pianello 4', image: '/images/test-1.jpg', duration: 123123123}
]
}
}

View file

@ -14,7 +14,10 @@
<style>
div {
margin-top: 10px;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 30px;
}
</style>