-
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
madhuredra
committed
Dec 27, 2023
1 parent
9cbfe19
commit 789289d
Showing
13 changed files
with
173 additions
and
14 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
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,20 @@ | ||
import React from 'react'; | ||
import { Chip } from '@mui/material'; | ||
import { MUI_CHIP } from '../../../utils/constants'; | ||
import { IChipProp } from '../../../interfaces/types'; | ||
import { getRandomLightColor } from '../../../services/functions/functions'; | ||
|
||
|
||
|
||
const MyChip = (props: IChipProp) => | ||
<Chip | ||
size={props.size} | ||
label={props.label} | ||
variant={props.variant} | ||
onClick={props.onClick} | ||
color={props.color} | ||
style={{ ...props.style, backgroundColor: getRandomLightColor() }} | ||
data-testid={MUI_CHIP} | ||
/> | ||
|
||
export default MyChip; |
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,58 @@ | ||
import React, { useEffect } from 'react' | ||
import Typed from 'typed.js'; | ||
import AboutImage from "../../../public/jpeg/About-Image.jpg" | ||
import MyChip from '../../components/atoms/Chip' | ||
import { skillsData, socialMediaData, typeNameAttributes } from '../../services/mocks/mocks' | ||
import { ABOUT_DESC, ABOUT_SUB_DESC, ABOUT_SUB_FOOTER_DESC } from '../../utils/constants'; | ||
import { AboutDiv, LeftAboutDiv, RightAboutDiv, SkillAboutDiv } from '../../utils/styled'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faExternalLink } from '@fortawesome/free-solid-svg-icons'; | ||
|
||
|
||
const About = () => { | ||
const el = React.useRef(null); | ||
|
||
useEffect(() => { | ||
const typed = new Typed(el.current, typeNameAttributes); | ||
|
||
return () => { | ||
typed.destroy(); | ||
}; | ||
}, []); | ||
|
||
|
||
return ( | ||
<AboutDiv> | ||
<LeftAboutDiv> | ||
<img src={AboutImage} /> | ||
</LeftAboutDiv> | ||
<RightAboutDiv> | ||
<h1>{'<About />'}</h1> | ||
<div> | ||
<h2 ref={el}></h2> | ||
<MyChip label='<Software Engineer />' size='small' style={{fontSize:"15px"}} /> | ||
</div> | ||
<div><h3>{ABOUT_DESC}</h3></div> | ||
<div><h3>{ABOUT_SUB_DESC}</h3></div> | ||
<SkillAboutDiv> | ||
{skillsData.map((skill, index) => ( | ||
<MyChip | ||
key={index} | ||
label={skill.label} | ||
size='medium' | ||
style={{ fontSize: "15px" }} | ||
/> | ||
))} | ||
</SkillAboutDiv> | ||
<div> | ||
<a href={`${socialMediaData[0].link}`} target='_blank'> | ||
<FontAwesomeIcon icon={faExternalLink} style={{cursor:"pointer"}} /> | ||
</a> | ||
{ABOUT_SUB_FOOTER_DESC} | ||
</div> | ||
</RightAboutDiv> | ||
</AboutDiv> | ||
) | ||
} | ||
|
||
export default About |
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,7 @@ | ||
export const getRandomLightColor = () => { | ||
const letters = 'ABCDEF'; | ||
let color = '#'; | ||
for (let i = 0; i < 6; i++) | ||
color += letters[Math.floor(Math.random() * 6)]; | ||
return color; | ||
}; |
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