forked from theHandsomestNerd/mixed-feelings-by-t
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
componentization and full search expansion for resume items
- Loading branch information
1 parent
b16e31d
commit be96cb2
Showing
12 changed files
with
436 additions
and
193 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
87 changes: 87 additions & 0 deletions
87
...components/templates/my-digital-resume/resume-experience-section/ResumeExperienceItem.tsx
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,87 @@ | ||
import React, {FunctionComponent} from 'react' | ||
|
||
import makeStyles from "@mui/styles/makeStyles"; | ||
import { Theme} from "@mui/material/styles"; | ||
import {Chip, Grid, Typography, useTheme} from "@mui/material"; | ||
import {COLORS} from "../../../../theme/common/ColorPalette"; | ||
import {ResumeExperience} from "../../../BlockContentTypes"; | ||
|
||
export const useStyles = makeStyles((theme: Theme) => ({ | ||
root: { | ||
}, | ||
})) | ||
|
||
interface IProps { | ||
experience: ResumeExperience | ||
} | ||
|
||
const ResumeExperienceItem: FunctionComponent<IProps> = (props:IProps) => { | ||
const classes = useStyles() | ||
|
||
const theme = useTheme() | ||
|
||
React.useEffect(()=>{ | ||
}, []) | ||
|
||
return (<Grid item container alignContent='flex-start' | ||
role={'experiencedivider'} | ||
// style={{ | ||
// borderBottom: `1px solid ${index2 >= (props.sectionData.experiences?.length ?? 0) - 1 ? "transparent" : COLORS.LIGHTGRAY}`, | ||
// // padding: theme.spacing(1.75, 0) | ||
// }} | ||
xs={12}> | ||
<Grid container item role={'experienceheader'}> | ||
<Grid item xs={12} md={4}> | ||
<Typography display='inline' | ||
variant='body2'>{props.experience.companyName}</Typography> | ||
</Grid> | ||
<Grid item xs={6} md={4}> | ||
|
||
<Typography display='inline' | ||
variant='body1'>{props.experience.title}</Typography> | ||
</Grid> | ||
<Grid item xs={6} md={4}> | ||
|
||
<Typography display='inline' | ||
variant='subtitle1'>{props.experience.companySubtitle}</Typography> | ||
</Grid> | ||
</Grid> | ||
<Grid container item> | ||
|
||
|
||
<Grid item sm={4}> | ||
<Typography display='inline' | ||
variant='body1'>{props.experience.dateStart?.toString().replaceAll('-', '.')}</Typography> | ||
|
||
{/*</Grid>*/} | ||
{/*<Grid item xs={1} container justifyContent='center'>*/} | ||
<Typography display='inline' | ||
variant='body1' style={{margin: theme.spacing(0, 1)}}>—</Typography> | ||
|
||
{/*</Grid>*/} | ||
{/*<Grid item xs={2} container>*/} | ||
<Typography display='inline' | ||
variant='body1'>{props.experience.dateEnd?.toString().replaceAll('-', '.')}</Typography> | ||
|
||
</Grid> | ||
|
||
</Grid> | ||
<Grid container item> | ||
<Typography | ||
variant='body1' gutterBottom>{props.experience.description}</Typography> | ||
</Grid> | ||
<Grid container item spacing={1} | ||
style={{overflowX: "scroll", paddingBottom: theme.spacing(1)}} wrap='nowrap'> | ||
{ | ||
props.experience.skillsUsed?.map((skill, index) => { | ||
console.log(skill) | ||
return <Grid item key={index}><Chip role={'experienceskill'} size='small' | ||
color='primary' | ||
label={skill.title}/></Grid> | ||
}) | ||
} | ||
</Grid> | ||
</Grid>) | ||
} | ||
|
||
export default ResumeExperienceItem |
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
Oops, something went wrong.