Skip to content

Commit 693a7bc

Browse files
committed
4031: Refactors components
1 parent baf1da2 commit 693a7bc

12 files changed

Lines changed: 148 additions & 20 deletions

File tree

src/components/content-partials/MonthlyFactSheet.mdx

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/components/content-partials/WhatsNew.mdx

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default from './FyAtAGlance'
1+
export default from './FYAtAGlance'
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import React from 'react';
2+
import { Box, Typography } from '@material-ui/core';
3+
import { makeStyles } from '@material-ui/core/styles'
4+
5+
const useStyles = makeStyles({
6+
h3: {
7+
marginTop: '0.5rem',
8+
marginBottom: '1rem',
9+
textAlign: 'center'
10+
},
11+
})
12+
13+
14+
export default function FYProductionSummary() {
15+
const classes = useStyles()
16+
17+
return (
18+
<Box bgcolor="primary.main" mb={2} pt={0.5} pb={2} pl={3} pr={3} borderRadius={10}>
19+
<Typography variant="h3" className={classes.h3}>
20+
Production
21+
</Typography>
22+
</Box>
23+
)
24+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as FYProductionSummary } from './FYProductionSummary'
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import React from 'react'
2+
import { Box, Typography, Link } from '@material-ui/core'
3+
import { makeStyles } from '@material-ui/core/styles'
4+
5+
const useStyles = makeStyles({
6+
h3: {
7+
marginTop: '0.5rem',
8+
marginBottom: '1rem'
9+
},
10+
})
11+
12+
export default function LPMonthlyFactSheet() {
13+
const classes = useStyles();
14+
15+
return (
16+
<Box bgcolor="primary.main" mb={2} pt={0.5} pb={2} pl={3} pr={3} borderRadius={10}>
17+
<Typography variant="h3" className={classes.h3}>
18+
Monthly Fact Sheet
19+
</Typography>
20+
<Typography variant='inherit'>
21+
<Link href='/fact-sheet'>Fact sheet</Link> summarizing disbursements, revenue, and production data by month on federal and Native American lands.
22+
</Typography>
23+
</Box>
24+
)
25+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as LPMonthlyFactSheet } from './LPMonthlyFactsheet'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import React from 'react';
2+
import FyAtAGlance from '../FYAtAGlance'
3+
import { FYProductionSummary } from '../FYProductionSummary';
4+
import { LPMonthlyFactSheet } from '../LPMonthlyFactsheet'
5+
import { WhatsNew } from '../WhatsNew';
6+
7+
export default function LandingPageSidebar() {
8+
return(
9+
<>
10+
<FyAtAGlance />
11+
12+
<FYProductionSummary />
13+
14+
<LPMonthlyFactSheet />
15+
16+
<WhatsNew />
17+
</>
18+
)
19+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as LandingPageSidebar } from './LandingPageSidebar'
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
import React from 'react';
2+
import { Box, Typography, Link, List, ListItem, ListItemText } from '@material-ui/core';
3+
import { makeStyles } from '@material-ui/core/styles'
4+
5+
const useStyles = makeStyles({
6+
h3: {
7+
marginTop: '0.5rem',
8+
marginBottom: '1rem'
9+
},
10+
changes: {
11+
display: 'block',
12+
marginTop: '1rem'
13+
},
14+
changeList: {
15+
listStyleType: 'disc',
16+
paddingLeft: '1.5rem',
17+
'& .MuiListItem-root': {
18+
display: 'list-item',
19+
listStyleType: 'inherit',
20+
},
21+
'& .MuiListItem-gutters': {
22+
paddingLeft: '0.5rem',
23+
},
24+
'& .MuiListItemText-primary': {
25+
fontSize: '1rem',
26+
}
27+
}
28+
})
29+
30+
export default function WhatsNew() {
31+
const classes = useStyles();
32+
33+
return (
34+
<Box bgcolor="primary.main" mb={4} pt={0.5} pb={2} pl={3} pr={3} borderRadius={10}>
35+
<Typography variant='h3' className={classes.h3}>
36+
What's new
37+
</Typography>
38+
39+
<Typography variant="inherit">
40+
Updated geographical references to reflect the new name Gulf of America for the area formerly called Gulf of Mexico, following Executive Order 14172.
41+
</Typography>
42+
43+
<Typography variant="inherit" className={classes.changes}>
44+
June 13, 2025 changes:
45+
</Typography>
46+
47+
<List className={classes.changeList}>
48+
<ListItem>
49+
<ListItemText
50+
primary={
51+
<>
52+
Added <Link href="downloads/disbursements-by-month/" linkType="default">monthly disbursements data</Link>
53+
</>
54+
}
55+
/>
56+
</ListItem>
57+
58+
<ListItem>
59+
<ListItemText
60+
primary= {
61+
<>
62+
Updated <Link href="fact-sheet/" linkType="default">monthly fact sheet</Link>
63+
</>
64+
}
65+
/>
66+
</ListItem>
67+
</List>
68+
69+
<Typography variant='inherit'>
70+
Review our <Link href="https://github.com/ONRR/nrrd/releases">full release details</Link>.
71+
</Typography>
72+
</Box>
73+
)
74+
}

0 commit comments

Comments
 (0)