Closed noahdahlman closed 1 year ago
this commit was where i did the styles and refactoring (still has the container which i removed after in the second PR , it differs a bit from your example as i took it as it was in the index page:
return (
<Box sx={styles.recentActivity} component="section">
<Container maxWidth="xl">
<Typography variant="h2" sx={styles.header}>
Recent Activity
</Typography>
<Typography sx={styles.subheader}>Check out a few of the most recently updated projects on Arbor.</Typography>
<Grid container spacing={3}>
{projects.map(project => (
<Grid item xs={12} sm={4} key={project._id}>
<ProjectCard details={project} />
</Grid>
))}
</Grid>
</Container>
</Box>
Styles to match that of the 'How It Works' section, copied from
sectionHeading
andhowItWorksText
:The component JSX should be refactored to be as so:
Or if you're importing the styles to this file, then you can just reuse those variables stated above as the styles in
sx
._Originally posted by @drewcook in https://github.com/arbor-protocol/ui/pull/229#discussion_r1051632730_