-
Notifications
You must be signed in to change notification settings - Fork 0
/
+page.svelte
71 lines (64 loc) · 1.96 KB
/
+page.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
66
67
68
69
70
71
<script lang="ts">
import '@nasa-jpl/stellar/css/index.css';
import '@nasa-jpl/stellar/font/inter/inter.css';
import SolIcon from '@nasa-jpl/stellar/icons/sol.svg?component';
import { Button } from '../lib/index.js';
</script>
<main>
<div class="header">
<div class="st-typography-displayH1 title">Svelte Stellar</div>
<div class="st-typography-displayBody">
A Svelte implementation of the Stellar design system for spacecraft operation tools.
</div>
</div>
<section class="st-card">
<div class="section-row st-typography-header">Button</div>
<div class="section-row">
<Button on:click={() => console.log('Button clicked!')}>Primary</Button>
<Button disabled>Disabled</Button>
<Button secondary>Secondary</Button>
<Button secondary disabled>Secondary Disabled</Button>
<Button tertiary>Tertiary</Button>
<Button tertiary disabled>Tertiary Disabled</Button>
<Button icon><SolIcon /></Button>
<Button icon disabled><SolIcon /></Button>
</div>
<div class="section-row">
<Button on:click={() => console.log('Button clicked!')} large>Primary</Button>
<Button large disabled>Disabled</Button>
<Button large secondary>Secondary</Button>
<Button large secondary disabled>Secondary Disabled</Button>
<Button large tertiary>Tertiary</Button>
<Button large tertiary disabled>Tertiary Disabled</Button>
<Button large icon><SolIcon /></Button>
<Button large icon disabled><SolIcon /></Button>
</div>
</section>
</main>
<style>
main {
display: flex;
flex-direction: column;
gap: var(--st-grid-unit2x);
margin: auto;
max-width: 1000px;
padding: 56px;
}
.header {
display: flex;
flex-direction: column;
gap: var(--st-grid-unit3x);
}
section {
padding: 1rem;
}
.section-row {
display: flex;
flex-direction: row;
gap: 5px;
margin-bottom: 1rem;
}
.title {
font-size: 60px;
}
</style>