Skip to content

Commit 6802ce5

Browse files
Rebased and updated layout and router
1 parent d277aa7 commit 6802ce5

File tree

2 files changed

+38
-80
lines changed

2 files changed

+38
-80
lines changed

app/src/Router.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { ReportCreationFlow } from './flows/reportCreationFlow';
88
import { SimulationCreationFlow } from './flows/simulationCreationFlow';
99
import DashboardPage from './pages/Dashboard.page';
1010
import DonatePage from './pages/Donate.page';
11+
import EducationPage from './pages/Education.page';
1112
import HomePage from './pages/Home.page';
1213
import PoliciesPage from './pages/Policies.page';
1314
import PopulationsPage from './pages/Populations.page';
@@ -142,6 +143,10 @@ const router = createBrowserRouter(
142143
path: 'terms',
143144
element: <TermsPage />,
144145
},
146+
{
147+
path: 'education',
148+
element: <EducationPage />,
149+
},
145150
{
146151
path: 'methodology',
147152
element: <div>Methodology page</div>,

app/src/pages/Education.page.tsx

Lines changed: 33 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,37 @@
1-
import { useEffect } from "react";
2-
import { useLocation } from "react-router-dom";
3-
import { Container, Title, Text, List, Anchor, Box, Stack } from "@mantine/core";
4-
import { colors, spacing, typography } from "@/designTokens";
1+
import ContentSection from '@/components/shared/static/ContentSection';
2+
import HeroSection from '@/components/shared/static/HeroSection';
3+
import RichTextBlock from '@/components/shared/static/RichTextBlock';
4+
import StaticPageLayout from '@/components/shared/static/StaticPageLayout';
55

6-
const EducationPage = () => {
7-
const location = useLocation();
6+
export default function EducationPage() {
7+
return (
8+
<StaticPageLayout title="Educational use">
9+
<HeroSection
10+
title="Coming soon"
11+
description="We're currently developing comprehensive content about how PolicyEngine can be used in educational settings. This page will include:"
12+
/>
813

9-
useEffect(() => {
10-
document.title = "Educational use | PolicyEngine";
11-
window.scrollTo(0, 0);
12-
}, [location]);
14+
<ContentSection variant="secondary">
15+
<RichTextBlock>
16+
<ul>
17+
<li>Classroom guides for teaching tax and benefit policies</li>
18+
<li>University case studies of PolicyEngine in research and teaching</li>
19+
<li>Educational resources for various learning levels</li>
20+
<li>Integration with educational curricula</li>
21+
<li>Workshop materials and lesson plans</li>
22+
</ul>
23+
</RichTextBlock>
24+
</ContentSection>
1325

14-
return (
15-
<>
16-
<Container size="md" py="xl">
17-
<Box
18-
style={{
19-
maxWidth: "800px",
20-
margin: "0 auto",
21-
textAlign: "center",
22-
padding: "3rem 1rem",
23-
}}
24-
>
25-
<Title
26-
order={2}
27-
ta="center"
28-
mb="lg"
29-
style={{
30-
color: colors.blue[700],
31-
marginBottom: "1.5rem",
32-
}}
33-
>
34-
Coming soon
35-
</Title>
36-
37-
<Text ta="center" size="lg" mb="lg">
38-
We&apos;re currently developing comprehensive content about how
39-
PolicyEngine can be used in educational settings. This page will
40-
include:
41-
</Text>
42-
43-
<Box
44-
style={{
45-
textAlign: "left",
46-
display: "inline-block",
47-
margin: "1.5rem auto",
48-
}}
49-
>
50-
<List spacing="sm" size="lg">
51-
<List.Item style={{ marginBottom: "0.5rem" }}>
52-
Classroom guides for teaching tax and benefit policies
53-
</List.Item>
54-
<List.Item style={{ marginBottom: "0.5rem" }}>
55-
University case studies of PolicyEngine in research and teaching
56-
</List.Item>
57-
<List.Item style={{ marginBottom: "0.5rem" }}>
58-
Educational resources for various learning levels
59-
</List.Item>
60-
<List.Item style={{ marginBottom: "0.5rem" }}>
61-
Integration with educational curricula
62-
</List.Item>
63-
<List.Item style={{ marginBottom: "0.5rem" }}>
64-
Workshop materials and lesson plans
65-
</List.Item>
66-
</List>
67-
</Box>
68-
69-
<Text ta="center" size="lg">
70-
If you&apos;re using PolicyEngine in an educational setting and
71-
would like to contribute your story or resources, please contact us
72-
at{" "}
73-
<Anchor href="mailto:hello@policyengine.org">
74-
hello@policyengine.org
75-
</Anchor>
76-
.
77-
</Text>
78-
</Box>
79-
</Container>
80-
</>
26+
<ContentSection>
27+
<RichTextBlock>
28+
<p>
29+
If you're using PolicyEngine in an educational setting and would like to contribute your
30+
story or resources, please contact us at{' '}
31+
<a href="mailto:hello@policyengine.org">hello@policyengine.org</a>.
32+
</p>
33+
</RichTextBlock>
34+
</ContentSection>
35+
</StaticPageLayout>
8136
);
82-
};
83-
84-
export default EducationPage;
37+
}

0 commit comments

Comments
 (0)