Skip to content

Commit

Permalink
feat: Add example in homepage to link to mutations
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed Sep 5, 2024
1 parent f51401b commit b994790
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
Binary file added website/public/screenshot-mutations.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions website/src/components/Examples/Examples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,21 @@ function Examples(props: Props, ref: any) {
/>
</MUI.CardMedia>
</MUI.Card>
<MUI.Card className={classes.card} elevation={4}>
<img
src="/screenshot-mutations.jpg"
width="100%"
alt="Screenshot of mutations tool"
/>
<MUI.Box className={classes.cardFooter}>
<MUI.Typography className={classes.cardAuthor}>
InteractiveThings
</MUI.Typography>
<MUI.Link className={classes.cardTitle} href="/mutations">
Municipalities change audit
</MUI.Link>
</MUI.Box>
</MUI.Card>
</div>
</Root>
);
Expand All @@ -80,6 +95,30 @@ const useStyles = MUI.makeStyles(
card: {
width: 424,
},

cardFooter: {
backgroundColor: "white",
borderTop: "1px solid #f0f0f0",
padding: theme.spacing(1, 2),
color: "black",
},

cardAuthor: {
fontSize: "13px",
fontWeight: "bold",
display: "inline",
marginRight: "0.375rem",
},

cardTitle: {
fontSize: "13px",
display: "inline",
fontWeight: "normal",

"&:active, &:visited": {
color: "black",
},
},
}),
{ name: "XuiExamples" }
);
Expand Down

0 comments on commit b994790

Please sign in to comment.