Swap out home route content
This commit is contained in:
parent
6606b377a2
commit
9ff8a1141d
1 changed files with 11 additions and 55 deletions
|
@ -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>
|
<svelte:head>
|
||||||
<title>Home</title>
|
<title>Home</title>
|
||||||
<meta name="description" content="Svelte demo app" />
|
<meta name="description" content="chellaris.net landing page" />
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<section>
|
<div class="text-column">
|
||||||
<h1>
|
<ul>
|
||||||
<span class="welcome">
|
<li>
|
||||||
<picture>
|
<a href="/graphs">Graphs</a>
|
||||||
<source srcset={welcome} type="image/webp" />
|
</li>
|
||||||
<img src={welcome_fallback} alt="Welcome" />
|
<li>
|
||||||
</picture>
|
<a href="/legacy-graphs">Game 15 Graphs</a>
|
||||||
</span>
|
</li>
|
||||||
|
</ul>
|
||||||
to your new<br />SvelteKit app
|
</div>
|
||||||
</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>
|
|
||||||
|
|
Reference in a new issue