-
Notifications
You must be signed in to change notification settings - Fork 1
Create education page #161
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| const location = useLocation(); | ||
|
|
||
| useEffect(() => { | ||
| document.title = "Educational use | PolicyEngine"; |
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.
Please don't set document.title manually. StaticPageLayout handles this via the <title> tag. This is redundant and inconsistent with other static pages.
SakshiKekre
left a comment
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.
Hi @SongmingFan123, thanks for your work on this! Could you please make the following changes?
- Rebase the branch on latest changes from main. The file is in src/pages/Education.page.tsx but should be in app/src/pages/Education.page.tsx. After rebasing, you'll also see that we have added a static layout for consistency across all static pages. Please use this StaticPageLayout wrapper instead of the custom Container/Center/Stack structure.
- The PR only adds the page file but doesn't add the route to Router.tsx. No navigation can reach this page. Please integrate the page in the app. This way we can look at the Vercel deployment to see how the page looks as you build it.
- Use the HeroSection component for the title/description and ContentSection component for sections.
- BulletsColumn is designed for report output columns, not static page lists. Please use Plain HTML
- (maybe inside RichTextBlock?).
Fixes #138