forked from gongfudev/new-astro-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.astro
45 lines (43 loc) · 1.02 KB
/
index.astro
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
---
import ShoelaceLayout from "../layouts/ShoelaceLayout.astro";
import CardGrid from "../components/CardGrid.astro";
---
<ShoelaceLayout title="Signals">
<header>
<h1>Signals</h1>
</header>
<main>
<CardGrid>
<sl-card>
<h2>Web App</h2>
Minimal layout, with support for Shoelace components.
<sl-button slot="footer" variant="primary" outline href="./webapp"
>Demo</sl-button
>
</sl-card>
<sl-card>
<h2>Small Signals Demo</h2>
Minimal layout, with support for Shoelace components.
<sl-button slot="footer" variant="primary" outline href="./smalldemo"
>Demo</sl-button
>
</sl-card>
</CardGrid>
</main>
</ShoelaceLayout>
<style>
header,
main {
margin: auto;
width: 1024px;
padding: 1rem;
max-width: calc(100% - 2rem);
}
h1 {
font-size: 4rem;
font-weight: 700;
line-height: 1;
text-align: left;
margin: var(--sl-spacing-4x-large) 0 var(--sl-spacing-3x-large);
}
</style>