-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
134 additions
and
14 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,8 @@ | ||
[ | ||
{ | ||
"about": "Datový portál data.Brno je moderní platforma, která poskytuje široký katalog otevřených dat o městě Brně. Umožňuje přístup k více než 100 datasetům z různých oblastí, včetně dopravy, infrastruktury, životního prostředí a veřejných služeb. Data jsou volně dostupná k použití pro vývoj aplikací, analýz nebo pro osobní účely. Portál podporuje inovace a digitální transformaci města a je skvělým zdrojem pro programátory, kteří chtějí vytvářet nové služby nebo produkty. Interaktivní dashboardy, mapy a sociologické průzkumy poskytují uživatelům ucelený pohled na městské dění.", | ||
"logo": "/img/sponsors/DataBrno.svg", | ||
"name": "Data Brno", | ||
"link": "https://data.brno.cz/" | ||
} | ||
] |
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import React from "react"; | ||
import { Avatar, Box, Card, CardContent, createStyles, Grid, makeStyles, Theme, Typography } from "@material-ui/core"; | ||
|
||
interface IProps { | ||
logo: string; | ||
about: string; | ||
name: string; | ||
link: string; | ||
} | ||
|
||
const useStyles = makeStyles((theme: Theme) => | ||
createStyles({ | ||
root: { | ||
display: "flex", | ||
// margin: theme.spacing(1), | ||
// "& > *": { | ||
// margin: theme.spacing(1), | ||
// }, | ||
height: "100%", | ||
cursor: "pointer", | ||
}, | ||
large: { | ||
width: "80%", | ||
marginLeft: "10%", | ||
height: "100%", | ||
}, | ||
dummy: { | ||
position: "fixed", | ||
marginTop: "50%", | ||
}, | ||
link: { | ||
textDecoration: "none", | ||
color: "#007bff", | ||
}, | ||
greyText: { | ||
color: theme.palette.type === "dark" ? "#c4c4c4" : "#5c5c5c", | ||
}, | ||
}) | ||
); | ||
|
||
export default function SponsorCard({ name, about, link, logo }: IProps) { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<Card className={classes.root} onClick={() => window.open(link, "_blank")}> | ||
<CardContent> | ||
<Grid container justify="center" alignContent="center" alignItems="center"> | ||
<Grid item xs={12} sm={4}> | ||
<Box width="100%"> | ||
<div className={classes.dummy}></div> | ||
<img src={logo} alt="" className={classes.large} /> | ||
</Box> | ||
</Grid> | ||
<Grid item xs={12} sm={8}> | ||
<Typography variant="h5">{name}</Typography> | ||
<hr /> | ||
<Typography variant="caption">{about}</Typography> | ||
</Grid> | ||
</Grid> | ||
</CardContent> | ||
</Card> | ||
); | ||
} |