experience company link added

This commit is contained in:
vigneshkanna 2022-10-11 18:22:22 +05:30
parent 83a254e687
commit 3e0af6dad2
3 changed files with 11 additions and 3 deletions

View File

@ -48,6 +48,7 @@ const config = {
position: 'Backend Engineer II',
from: 'September 2021',
to: 'Present',
companyLink: 'https://monstar-lab.com/bd/',
},
{
company: 'My Offer 360 Degree',

View File

@ -2,7 +2,7 @@ import { skeleton } from '../../helpers/utils';
import { Fragment } from 'react';
import PropTypes from 'prop-types';
const ListItem = ({ time, position, company }) => (
const ListItem = ({ time, position, company, link }) => (
<li className="mb-5 ml-4">
<div
className="absolute w-2 h-2 bg-base-300 rounded-full border border-base-300 mt-1.5"
@ -10,7 +10,12 @@ const ListItem = ({ time, position, company }) => (
></div>
<div className="my-0.5 text-xs">{time}</div>
<h3 className="font-semibold">{position}</h3>
<div className="mb-4 font-normal">{company}</div>
<div className="mb-4 font-normal"><a
href={link}
target="_blank"
rel="noreferrer"
className="flex justify-start py-2 px-1 items-center"
>{company}</a></div>
</li>
);
@ -37,7 +42,6 @@ const Experience = ({ experiences, loading }) => {
return array;
};
return (
<>
{experiences?.length !== 0 && (
@ -66,6 +70,7 @@ const Experience = ({ experiences, loading }) => {
time={`${experience.from} - ${experience.to}`}
position={experience.position}
company={experience.company}
link={experience.companyLink ? experience.companyLink: null}
/>
))}
</Fragment>
@ -83,6 +88,7 @@ ListItem.propTypes = {
time: PropTypes.node,
position: PropTypes.node,
company: PropTypes.node,
link: PropTypes.string,
};
Experience.propTypes = {

1
types/index.d.ts vendored
View File

@ -207,6 +207,7 @@ export interface Experience {
position?: string;
from?: string;
to?: string;
companyLink?: string;
}
export interface Education {