Swap out home route content

This commit is contained in:
Neshura 2023-08-08 19:44:27 +02:00
parent 6606b377a2
commit 9ff8a1141d
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -1,59 +1,15 @@
<script>
import Counter from './Counter.svelte';
import welcome from '$lib/images/svelte-welcome.webp';
import welcome_fallback from '$lib/images/svelte-welcome.png';
</script>
<svelte:head>
<title>Home</title>
<meta name="description" content="Svelte demo app" />
<meta name="description" content="chellaris.net landing page" />
</svelte:head>
<section>
<h1>
<span class="welcome">
<picture>
<source srcset={welcome} type="image/webp" />
<img src={welcome_fallback} alt="Welcome" />
</picture>
</span>
to your new<br />SvelteKit app
</h1>
<h2>
try editing <strong>src/routes/+page.svelte</strong>
</h2>
<Counter />
</section>
<style>
section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex: 0.6;
}
h1 {
width: 100%;
}
.welcome {
display: block;
position: relative;
width: 100%;
height: 0;
padding: 0 0 calc(100% * 495 / 2048) 0;
}
.welcome img {
position: absolute;
width: 100%;
height: 100%;
top: 0;
display: block;
}
</style>
<div class="text-column">
<ul>
<li>
<a href="/graphs">Graphs</a>
</li>
<li>
<a href="/legacy-graphs">Game 15 Graphs</a>
</li>
</ul>
</div>