This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change Topics styles and add course Features (#157) * Change Topics styles and add course Features * make features a step down Change Topics styles and add course Features make features a step down Implement new Six-months Course Page Design new
- Loading branch information
1 parent
6ab3a62
commit 34da2dd
Showing
18 changed files
with
1,343 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,118 @@ | ||
import { | ||
Box, | ||
Container, | ||
Grid, | ||
makeStyles, | ||
Typography | ||
} from '@material-ui/core'; | ||
import clsx from 'clsx'; | ||
import React from 'react'; | ||
|
||
const useStyles = makeStyles(theme => ({ | ||
root: { | ||
color: '#FFF', | ||
paddingTop: 80, | ||
paddingBottom: 60, | ||
paddingLeft: 70, | ||
paddingRight: 70, | ||
[theme.breakpoints.down('md')]: { | ||
paddingLeft: 15, | ||
paddingRight: 15 | ||
} | ||
}, | ||
extraPadding: { | ||
padding: '0 70px 0px 0px', | ||
textAlign: 'justify', | ||
[theme.breakpoints.down('sm')]: { | ||
padding: '0' | ||
} | ||
}, | ||
image: { | ||
perspectiveOrigin: 'left center', | ||
transformStyle: 'preserve-3d', | ||
perspective: 1500, | ||
'& > img': { | ||
maxWidth: '100%', | ||
height: 'auto', | ||
backfaceVisibility: 'hidden' | ||
}, | ||
[theme.breakpoints.down('md')]: { | ||
alignItems: 'center', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
height: '100%', | ||
justifyContent: 'center' | ||
} | ||
}, | ||
hide: { | ||
display: 'none' | ||
} | ||
})); | ||
|
||
function Hero({ | ||
title, | ||
title2, | ||
subtitle, | ||
firstComponent, | ||
secondComponent, | ||
imageUrl, | ||
className, | ||
...rest | ||
}) { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<div | ||
className={clsx(classes.root, className)} | ||
{...rest} | ||
style={{ | ||
backgroundImage: `url(${imageUrl})`, | ||
backgroundSize: 'cover', | ||
backgroundRepeat: 'no-repeat', | ||
backgroundPositionY: 'center', | ||
backgroundPositionX: 'center' | ||
}} | ||
> | ||
<Container maxWidth="lg"> | ||
<Grid container spacing={3}> | ||
<Grid item xs={12} md={6}> | ||
<Box | ||
display="flex" | ||
flexDirection="column" | ||
justifyContent="center" | ||
height="100%" | ||
className={clsx(classes.extraPadding)} | ||
> | ||
<Typography align="left" variant="h3" gutterBottom> | ||
{title} | ||
</Typography> | ||
<Typography | ||
variant="h2" | ||
style={{ | ||
fontWeight: 800, | ||
margin: '8px 0px 16px' | ||
}} | ||
> | ||
{' '} | ||
{title2} | ||
</Typography> | ||
<Typography variant="h4"> | ||
Training that gives you Industrial Exposure | ||
</Typography> | ||
<Box mt={5}>{firstComponent}</Box> | ||
<Box mt={2} mb={3}> | ||
<Grid container xs={12} md={12}> | ||
<Grid item xs={12} md={12}> | ||
{secondComponent} | ||
</Grid> | ||
</Grid> | ||
</Box> | ||
</Box> | ||
</Grid> | ||
</Grid> | ||
</Container> | ||
</div> | ||
); | ||
} | ||
|
||
export default Hero; |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { Box, makeStyles, Typography } from '@material-ui/core'; | ||
import clsx from 'clsx'; | ||
import React from 'react'; | ||
import TrainingHero from '../../../components/Hero/TrainingHero'; | ||
|
||
const useStyles = makeStyles(theme => ({ | ||
root: {}, | ||
box: { | ||
backgroundColor: '#fff', | ||
marginRight: '8px', | ||
color: '#000', | ||
padding: '4px 12px', | ||
width: 'min-content', | ||
borderRadius: '8px', | ||
display: 'inline-block' | ||
} | ||
})); | ||
|
||
export default function Hero() { | ||
return ( | ||
<TrainingHero | ||
title="Introducing CodeForCause" | ||
title2="6 Months Training" | ||
subtitle="Training that gives you Industrial Exposure" | ||
imageUrl="/static/images/backs/training.svg" | ||
firstComponent={<BoxTab text="Duration 6 Months" />} | ||
secondComponent={ | ||
<> | ||
<BoxTab text="20 Projects" /> | ||
<BoxTab text="Certificates" /> | ||
</> | ||
} | ||
/> | ||
); | ||
} | ||
|
||
export function BoxTab({ text, className = '' }) { | ||
const classes = useStyles(); | ||
return ( | ||
<Box className={clsx(classes.box, className)}> | ||
<Typography noWrap>{text}</Typography> | ||
</Box> | ||
); | ||
} |
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,19 @@ | ||
import React from 'react'; | ||
|
||
export default function HexagonSvg({ fill, ...rest }) { | ||
return ( | ||
<svg | ||
width="52" | ||
height="59" | ||
viewBox="0 0 52 59" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
{...rest} | ||
> | ||
<path | ||
d="M26 0L51.9808 14.75V44.25L26 59L0.0192375 44.25V14.75L26 0Z" | ||
fill={fill} | ||
/> | ||
</svg> | ||
); | ||
} |
Oops, something went wrong.