-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.svelte
57 lines (47 loc) · 827 Bytes
/
index.svelte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<script>
import SapperLogo from 'images/sapper-logo-horizontal.svg';
</script>
<svelte:head>
<title>Sapper project template</title>
</svelte:head>
<h1>Ready for world domination.</h1>
<figure>
<img alt="Eh" src={SapperLogo} />
<figcaption>Have fun with Sapper!</figcaption>
</figure>
<p>
<strong
>Try editing this file (src/routes/index.svelte) to
test live reloading.</strong
>
</p>
<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>