This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(design): update misc UI elements (#38)
- Loading branch information
Showing
31 changed files
with
233 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,46 @@ | ||
import { Grid } from "@material-ui/core"; | ||
import Card from "@material-ui/core/Card"; | ||
import CardActionArea from "@material-ui/core/CardActionArea"; | ||
import CardContent from "@material-ui/core/CardContent"; | ||
import CardMedia from "@material-ui/core/CardMedia"; | ||
import { makeStyles } from "@material-ui/core/styles"; | ||
import { Box, Grid } from "@material-ui/core"; | ||
import Typography from "@material-ui/core/Typography"; | ||
import { graphql, StaticQuery } from "gatsby"; | ||
import Img from "gatsby-image"; | ||
import React, { FC } from "react"; | ||
|
||
import { presentationData } from "../display-data/presentation-data"; | ||
|
||
const useStyles = makeStyles({ | ||
media: { | ||
height: 200, | ||
}, | ||
root: { | ||
width: 400, | ||
}, | ||
}); | ||
export const imageQuery = graphql` | ||
query { | ||
file(relativePath: { eq: "presentation.png" }) { | ||
childImageSharp { | ||
fluid(maxWidth: 600, maxHeight: 320) { | ||
...GatsbyImageSharpFluid | ||
} | ||
} | ||
} | ||
} | ||
`; | ||
|
||
const Presentation: FC = () => { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<Grid container spacing={2} justify="center"> | ||
{presentationData.map((presentationItem) => ( | ||
<Grid item key={presentationItem.title}> | ||
<Card className={classes.root}> | ||
<CardActionArea> | ||
<CardMedia | ||
className={classes.media} | ||
image={presentationItem.image} | ||
title={presentationItem.title} | ||
/> | ||
<CardContent> | ||
<Typography gutterBottom variant="body1" component="h2"> | ||
{presentationItem.title} | ||
const Presentation: FC = () => ( | ||
<StaticQuery | ||
query={imageQuery} | ||
render={(data) => ( | ||
<Grid container spacing={1} alignItems="center"> | ||
<Grid item md={6}> | ||
<Grid container spacing={6}> | ||
{presentationData.map((presentationItem) => ( | ||
<Grid item md={6} key={presentationItem.title}> | ||
<Typography variant="h6" color="textPrimary"> | ||
<Box>{presentationItem.logo}</Box> | ||
<Box>{presentationItem.title}</Box> | ||
</Typography> | ||
</CardContent> | ||
</CardActionArea> | ||
</Card> | ||
</Grid> | ||
))} | ||
</Grid> | ||
</Grid> | ||
<Grid item md={6}> | ||
<Img fluid={data.file.childImageSharp.fluid} /> | ||
</Grid> | ||
))} | ||
</Grid> | ||
); | ||
}; | ||
</Grid> | ||
)} | ||
/> | ||
); | ||
|
||
export default Presentation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import FileCopyIcon from "@material-ui/icons/FileCopy"; | ||
import InfoIcon from "@material-ui/icons/Info"; | ||
import SearchIcon from "@material-ui/icons/Search"; | ||
import StorageIcon from "@material-ui/icons/Storage"; | ||
|
||
import React from "react"; | ||
|
||
export const presentationData = [ | ||
{ | ||
logo: <InfoIcon />, | ||
title: "Obtenez des informations", | ||
}, | ||
{ | ||
logo: <StorageIcon />, | ||
title: "Enrichissez vos données", | ||
}, | ||
{ | ||
logo: <SearchIcon />, | ||
title: "Menez une opération d'audit", | ||
}, | ||
{ | ||
logo: <FileCopyIcon />, | ||
title: "Identifiez les redondances", | ||
}, | ||
]; |
Oops, something went wrong.