-
Notifications
You must be signed in to change notification settings - Fork 8
feat: update learn section landing page (#985) #1005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new "Learn About BRC" landing page that serves as an organized entry point for learning resources. The implementation includes a reusable card component architecture and updates navigation routing to point to the new landing page.
Key Changes:
- Created a new landing page at
/learnwith a hero section and grid-based card layout - Implemented a generic
SectionContentCardcomponent for consistent UI across sections - Updated breadcrumb paths in documentation files to correctly reference the new Learn landing page
Reviewed Changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
routes/constants.ts |
Updated LEARN route from /learn/featured-analyses to /learn |
pages/learn/index.tsx |
Created new page component for Learn landing with static props |
app/views/LearnView/learnView.tsx |
Implemented LearnView with hero section and card grid layout |
app/views/LearnView/learnView.styles.ts |
Added responsive grid styles for card layout (2 columns on desktop, 1 on mobile) |
app/views/LearnView/constants.ts |
Defined card configurations for Get Started, Using Galaxy, Featured Analyses, and FAQs sections |
app/views/LearnView/components/icon/RocketLaunchIcon/rocketLaunchIcon.tsx |
Created custom "Get Started" icon component with primary color |
app/views/LearnView/components/icon/LiveHelpIcon/liveHelpIcon.tsx |
Created custom FAQ icon component with primary color |
app/views/LearnView/components/icon/GalaxyIcon/galaxyIcon.tsx |
Created custom Galaxy icon with gradient styling |
app/views/LearnView/components/icon/BookmarkStarIcon/bookmarkStarIcon.tsx |
Created custom Featured Analyses icon component |
app/docs/learn/using-galaxy.mdx |
Added new documentation page with Learn breadcrumb |
app/docs/learn/getting-started.mdx |
Added new documentation page with Learn breadcrumb |
app/docs/learn/featured-analyses/evolutionary-dynamics-of-coding-overlaps-in-measles.mdx |
Fixed breadcrumb to include proper Learn path |
app/docs/learn/featured-analyses.mdx |
Fixed breadcrumb to include proper Learn path |
app/docs/learn/faqs.mdx |
Added new documentation page with Learn breadcrumb |
app/components/common/Card/components/SectionContentCard/types.ts |
Defined TypeScript interfaces for card component props |
app/components/common/Card/components/SectionContentCard/sectionContentCard.tsx |
Implemented reusable card component with icon, image, and text support |
app/components/common/Card/components/SectionContentCard/sectionContentCard.styles.ts |
Created styled components for card layout with grid-based design |
app/components/common/Card/components/SectionContentCard/constants.ts |
Defined default props for card, stack, icons, and typography |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
app/components/common/Card/components/SectionContentCard/sectionContentCard.tsx
Show resolved
Hide resolved
app/components/common/Card/components/SectionContentCard/sectionContentCard.styles.ts
Outdated
Show resolved
Hide resolved
app/components/common/Card/components/SectionContentCard/sectionContentCard.tsx
Show resolved
Hide resolved
…onContentCard.styles.ts Co-authored-by: Copilot <[email protected]>
Closes #985.
This pull request introduces a new "Learn About BRC" landing page, refactors the navigation to point to it, and implements a reusable card component for section content. The changes improve the user experience by providing a visually appealing, organized entry point for learning resources, and enhance code maintainability through modularization and reuse.
New "Learn About BRC" landing page and navigation update:
LearnViewpage, which displays a hero section and a grid of informational cards using the newSectionContentCardcomponent (app/views/LearnView/learnView.tsx,pages/learn/index.tsx,app/views/LearnView/constants.ts,app/views/LearnView/learnView.styles.ts). [1] [2] [3] [4]/learnroute now points to the new landing page instead of "Featured Analyses" (routes/constants.ts).Reusable card component for section content:
SectionContentCardcomponent, including its props, styles, and supporting constants for consistent UI (app/components/common/Card/components/SectionContentCard/sectionContentCard.tsx,sectionContentCard.styles.ts,constants.ts,types.ts). [1] [2] [3] [4]app/views/LearnView/components/icon/RocketLaunchIcon/rocketLaunchIcon.tsx,BookmarkStarIcon/bookmarkStarIcon.tsx,LiveHelpIcon/liveHelpIcon.tsx,GalaxyIcon/galaxyIcon.tsx). [1] [2] [3] [4]Breadcrumb and documentation updates:
app/docs/learn/featured-analyses.mdx,app/docs/learn/featured-analyses/evolutionary-dynamics-of-coding-overlaps-in-measles.mdx). [1] [2]