Skip to content

Commit 485ff36

Browse files
committed
feat: added stubs for learn pages (#985)
1 parent 7ab0af0 commit 485ff36

File tree

5 files changed

+40
-9
lines changed

5 files changed

+40
-9
lines changed

app/components/common/Card/components/SectionContentCard/sectionContentCard.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ export const SectionContentCard = ({
3333
<EndIcon {...SVG_ICON_PROPS} />
3434
<StyledStack {...STACK_PROPS}>
3535
<CardTitle component="span">{title}</CardTitle>
36-
<Typography {...TYPOGRAPHY_PROPS}>{secondaryText}</Typography>
36+
{secondaryText && (
37+
<Typography {...TYPOGRAPHY_PROPS}>{secondaryText}</Typography>
38+
)}
3739
</StyledStack>
3840
</CardActionArea>
3941
</StyledCard>

app/docs/learn/faqs.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
breadcrumbs:
3+
- path: "/learn"
4+
text: "Learn"
5+
- path: ""
6+
text: "FAQs"
7+
description: ""
8+
enableOutline: true
9+
title: "FAQs"
10+
---

app/docs/learn/getting-started.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
breadcrumbs:
3+
- path: "/learn"
4+
text: "Learn"
5+
- path: ""
6+
text: "Getting Started"
7+
description: ""
8+
enableOutline: true
9+
title: "Getting Started"
10+
---

app/docs/learn/using-galaxy.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
breadcrumbs:
3+
- path: "/learn"
4+
text: "Learn"
5+
- path: ""
6+
text: "Using Galaxy"
7+
description: ""
8+
enableOutline: true
9+
title: "Using Galaxy"
10+
---

app/views/LearnView/constants.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,26 @@ import { GalaxyIcon } from "./components/icon/GalaxyIcon/galaxyIcon";
88
export const CARDS: ComponentProps<typeof SectionContentCard>[] = [
99
{
1010
StartIcon: RocketLaunchIcon,
11-
cardUrl: "/learn",
12-
secondaryText: "Learn how to get started with BRC",
11+
cardUrl: "/learn/getting-started",
12+
secondaryText: "",
1313
title: "Get Started",
1414
},
1515
{
1616
StartIcon: GalaxyIcon,
17-
cardUrl: "/learn",
18-
secondaryText: "The following is a guided walk-through of using Galaxy",
17+
cardUrl: "/learn/using-galaxy",
18+
secondaryText: "",
1919
title: "Using Galaxy",
2020
},
2121
{
2222
StartIcon: BookmarkStarIcon,
2323
cardUrl: "/learn/featured-analyses",
24-
secondaryText: "Discover and access BRC datasets",
24+
secondaryText: "",
2525
title: "Featured Analyses",
2626
},
2727
{
2828
StartIcon: LiveHelpIcon,
29-
cardUrl: "/learn",
30-
secondaryText:
31-
"The following is a guided walk-through of the BRC documentation",
29+
cardUrl: "/learn/faqs",
30+
secondaryText: "",
3231
title: "FAQs",
3332
},
3433
];

0 commit comments

Comments
 (0)