Just some finessing

This commit is contained in:
Robert Hall
2018-09-24 20:12:29 -06:00
parent 4d807ef43d
commit 6d0da69115
6 changed files with 93 additions and 40 deletions

View File

@@ -2,45 +2,17 @@
<title>Sapper project template</title>
</svelte:head>
<h1>Great success!</h1>
{#if $user}
<Private/>
{:else}
<Public/>
{/if}
<figure>
<img alt='Borat' src='great-success.png'>
<figcaption>HIGH FIVE!</figcaption>
</figure>
<p><strong>Try editing this file (routes/index.html) to test live reloading.</strong></p>
<style>
h1, figure, p {
text-align: center;
margin: 0 auto;
<script>
export default {
components: {
Private: './_private.html',
Public: './_public.html',
},
}
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>
</script>