Skip to content

Commit 595b4e9

Browse files
feat: use "Start Building" in outro
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
1 parent 7c61802 commit 595b4e9

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

src/components/Hero/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default function Hero(): JSX.Element {
5151
</p>
5252
<p className={`${styles.item}`}></p>
5353
<div className={`${styles.item} ${styles.actions}`}>
54-
<Start position="hero" />
54+
<Start position="hero">Get Started</Start>
5555
<Link
5656
className="button button--juno"
5757
to="/docs/intro"

src/components/Outro/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ export default function Outro(): JSX.Element {
1111
<p className={styles.subText}>
1212
No setup. No DevOps. No strings attached.
1313
</p>
14-
<Start position="footer" className={`button-lg ${styles.start}`} />
14+
<Start position="footer" className={`button-lg ${styles.start}`}>
15+
Start Building
16+
</Start>
1517
</div>
1618
<picture aria-label="An astronaut planting a flag reading 'Juno' on a small planet, giving a thumbs up.">
1719
<MoonIllustration />

src/components/Start/index.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
import Link from "@docusaurus/Link";
22
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
3+
import { ReactNode } from "react";
34
import { trackEvent } from "../../providers/analytics.providers";
45

56
type StartProps = {
67
position: string;
78
className?: string;
9+
children: ReactNode;
810
};
911

1012
export default function Start({
1113
position,
12-
className = ""
14+
className = "",
15+
children
1316
}: StartProps): JSX.Element {
1417
const { siteConfig } = useDocusaurusContext();
1518

@@ -28,7 +31,7 @@ export default function Start({
2831
})
2932
}
3033
>
31-
Get started
34+
{children}
3235
</Link>
3336
);
3437
}

0 commit comments

Comments
 (0)