Skip to content

Commit

Permalink
simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpapa committed Jun 29, 2021
1 parent 1cb4b25 commit 1602e52
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
42 changes: 21 additions & 21 deletions src/App.svelte
@@ -1,30 +1,30 @@
<script>
export let name;
export let name = 'World';
</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>
<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>
main {
text-align: center;
padding: 1em;
max-width: 240px;
margin: 0 auto;
}
main {
text-align: center;
padding: 1em;
max-width: 240px;
margin: 0 auto;
}
h1 {
color: #ff3e00;
text-transform: uppercase;
font-size: 4em;
font-weight: 100;
}
h1 {
color: #ff3e00;
text-transform: uppercase;
font-size: 4em;
font-weight: 100;
}
@media (min-width: 640px) {
main {
max-width: none;
}
}
</style>
@media (min-width: 640px) {
main {
max-width: none;
}
}
</style>
10 changes: 5 additions & 5 deletions src/main.js
@@ -1,10 +1,10 @@
import App from './App.svelte';

const app = new App({
target: document.body,
props: {
name: 'world'
}
target: document.body,
// props: {
// name: 'world'
// }
});

export default app;
export default app;

0 comments on commit 1602e52

Please sign in to comment.