Skip to content

Commit

Permalink
make it nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Nov 15, 2019
1 parent 45f4a4d commit 883c422
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,29 @@
export let name;
</script>

<main>
<h1>Hello {name}!</h1>
<p>Visit the <a href="https://svelte.dev/tutorial">Svelte tutorial</a> to learn how to build Svelte apps.</p>
</main>

<style>
h1 {
color: purple;
main {
text-align: center;
padding: 1em;
max-width: 240px;
margin: 0 auto;
}
h1 {
color: #ff3e00;
text-transform: uppercase;
font-size: 4em;
font-weight: 100;
}
</style>
<h1>Hello {name}!</h1>
@media (min-width: 640px) {
main {
max-width: none;
}
}
</style>

0 comments on commit 883c422

Please sign in to comment.