Skip to content

Commit 0810776

Browse files
committed
Replace removed CallToAction component
See withastro/starlight#1784
1 parent 1c8dd9a commit 0810776

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

docs/src/components/Hero.astro

+5-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
import type { Props } from '@astrojs/starlight/props';
3-
import CallToAction from '@astrojs/starlight/components/CallToAction.astro';
4-
import { Code } from '@astrojs/starlight/components';
3+
import { Code, LinkButton } from '@astrojs/starlight/components';
54
import { Content as Tagline } from './tagline.md';
65
---
76

@@ -40,20 +39,12 @@ local k = import "k.libsonnet";
4039
</div>
4140

4241
<div class="sl-flex actions">
43-
<CallToAction
44-
link="./install/"
45-
variant="primary"
46-
icon={{ type: 'icon', name: 'right-arrow' }}
42+
<LinkButton href="./install/" variant="primary" icon="right-arrow"
43+
>Get started</LinkButton
4744
>
48-
Get started
49-
</CallToAction>
50-
<CallToAction
51-
link="./tutorial/overview/"
52-
variant="minimal"
53-
icon={{ type: 'icon', name: 'laptop' }}
45+
<LinkButton href="./tutorial/overview/" variant="minimal" icon="laptop"
46+
>Read the tutorial</LinkButton
5447
>
55-
Read the tutorial
56-
</CallToAction>
5748
</div>
5849
</div>
5950
</div>

0 commit comments

Comments
 (0)