-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.svelte
65 lines (54 loc) · 1.06 KB
/
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
58
59
60
61
62
63
64
65
<script>
import Terminal from "../components/Terminal.svelte";
import lines from "../lib/terminal";
</script>
<svelte:head>
<title>Please | On-demand commands</title>
</svelte:head>
<h1>Please!</h1>
<h2>On-demand commands</h2>
<Terminal {lines} />
<div class="learn">
Learn more on
<a class="button" href="https://github.com/pleasecmd/please"> GitHub </a>
</div>
<style>
h1 {
text-align: center;
margin: 0 auto;
}
h1 {
font-size: 4em;
text-transform: uppercase;
font-weight: 700;
margin: 0 0 0.5em 0;
}
h2 {
margin-bottom: 2em;
}
.learn {
padding: 2em;
font-size: 2em;
}
.button {
color: #f8f8f8;
background: #6272a4;
border-radius: 4em;
text-decoration: none;
padding: 0.25em 0.5em;
transition: opacity cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.25s;
line-height: 3em;
font-family: "Raleway", sans-serif;
}
.button:hover {
opacity: 0.8;
}
@media (max-width: 480px) {
h1 {
font-size: 2.5em;
}
.learn {
text-align: center;
}
}
</style>