-
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.
Merge pull request #53 from gugcz/msd-partner
feat: update partners section with msd logo
- Loading branch information
Showing
5 changed files
with
46 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { Button, makeStyles } from '@material-ui/core'; | ||
import Box from '@material-ui/core/Box'; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { PartnersIcon } from '../icons/icons'; | ||
import InfoText from '../common/InfoText/InfoText'; | ||
|
||
|
@@ -53,37 +54,28 @@ const useStyles = makeStyles(({ spacing, breakpoints }) => ({ | |
}, | ||
})); | ||
|
||
export const PartnersSection = () => { | ||
export const PartnersSection = ({ partners = [] }) => { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<Box className={classes.root}> | ||
<InfoText icon={<PartnersIcon size={80} />} title="Partneři" /> | ||
<Box className={classes.gold}> | ||
<a href="https://grow.google/intl/cz/"> | ||
<img | ||
src={'/images/partners/Google_logo_Horizontal_Grey_RGB.png'} | ||
alt="Grow with google" | ||
className={classes.image} | ||
/> | ||
</a> | ||
<a href="https://www.smartemailing.cz/"> | ||
<img | ||
src={'/images/partners/SmartEmailing_logo_RGB_SmartEmailing_Color.png'} | ||
alt="SmartEmailing" | ||
className={classes.image} | ||
/> | ||
</a> | ||
<a href="https://www.dotekomanie.cz/"> | ||
<img src={'/images/partners/dotekomanie.png'} alt="Dotekománie" className={classes.image} /> | ||
</a> | ||
<a href="https://edu.google.com/"> | ||
<img src={'/images/partners/googleedu.png'} alt="Google For Education" className={classes.image} /> | ||
</a> | ||
{partners.map(function (partner, i) { | ||
return ( | ||
<a key={i} href={partner.link}> | ||
<img src={partner.image} alt={partner.name} className={classes.image} /> | ||
</a> | ||
); | ||
})} | ||
</Box> | ||
<Button variant={'contained'} color={'primary'} className={classes.action} href="mailto:[email protected]"> | ||
Stát se partnerem | ||
</Button> | ||
</Box> | ||
); | ||
}; | ||
|
||
PartnersSection.propTypes = { | ||
partners: PropTypes.array, | ||
}; |
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,9 +1,11 @@ | ||
import { stats } from './commonData'; | ||
import { groups } from './groupsData'; | ||
import { partners } from './partnersData'; | ||
|
||
const homePageData = { | ||
stats: stats, | ||
groups: groups, | ||
partners: partners, | ||
}; | ||
|
||
export default homePageData; |
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,29 @@ | ||
const partners = [ | ||
{ | ||
name: 'Grow with Google', | ||
image: '/images/partners/Google_logo_Horizontal_Grey_RGB.png', | ||
link: 'https://grow.google/intl/cz/', | ||
}, | ||
{ | ||
name: 'SmartEmailing', | ||
image: '/images/partners/SmartEmailing_logo_RGB_SmartEmailing_Color.png', | ||
link: 'https://www.smartemailing.cz/', | ||
}, | ||
{ | ||
name: 'Dotekománie', | ||
image: '/images/partners/dotekomanie.png', | ||
link: 'https://www.dotekomanie.cz/', | ||
}, | ||
{ | ||
name: 'Google For Education', | ||
image: '/images/partners/googleedu.png', | ||
link: 'https://edu.google.com/', | ||
}, | ||
{ | ||
name: 'MSD', | ||
image: '/images/partners/msd.webp', | ||
link: 'https://www.msd.cz/en/genai-2024"', | ||
}, | ||
]; | ||
|
||
export { partners }; |
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
Binary file not shown.