mirror of
https://github.com/BradNut/sapper-lut-site
synced 2025-09-08 17:40:34 +00:00
68 lines
1.1 KiB
Svelte
68 lines
1.1 KiB
Svelte
<script>
|
|
import { goto } from "@sapper/app";
|
|
import Image from "svelte-image";
|
|
import { fadeIn, fadeOut } from "../animate";
|
|
import successkid from "images/successkid.jpg";
|
|
|
|
function doThing() {
|
|
console.log("doing thing");
|
|
goto("/blog");
|
|
}
|
|
</script>
|
|
|
|
<svelte:head>
|
|
<title>Sapper project template</title>
|
|
</svelte:head>
|
|
|
|
<div in:fadeIn out:fadeOut>
|
|
<h1>Great success!</h1>
|
|
|
|
<button on:click={doThing}>Send Me Elsewhere</button>
|
|
|
|
<figure>
|
|
<Image alt="Success Kid" src={successkid} />
|
|
<figcaption>Have fun with Sapper!</figcaption>
|
|
</figure>
|
|
|
|
<p>
|
|
<strong
|
|
>Try editing this file (src/routes/index.svelte) to test live reloading.</strong
|
|
>
|
|
</p>
|
|
</div>
|
|
|
|
<style>
|
|
h1,
|
|
figure,
|
|
p {
|
|
text-align: center;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2.8em;
|
|
text-transform: uppercase;
|
|
font-weight: 700;
|
|
margin: 0 0 0.5em 0;
|
|
}
|
|
|
|
figure {
|
|
margin: 0 0 1em 0;
|
|
}
|
|
|
|
img {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
margin: 0 0 1em 0;
|
|
}
|
|
|
|
p {
|
|
margin: 1em auto;
|
|
}
|
|
|
|
@media (min-width: 480px) {
|
|
h1 {
|
|
font-size: 4em;
|
|
}
|
|
}
|
|
</style>
|