diff --git a/src/components/ProgresBar.tsx b/src/components/ProgresBar.tsx new file mode 100644 index 0000000..86837f8 --- /dev/null +++ b/src/components/ProgresBar.tsx @@ -0,0 +1,39 @@ +import React from "react"; + +const ProgressBar = (props) => { + const { bgcolor, completed } = props; + + const containerStyles = { + height: 30, + width: '100%', + backgroundColor: "#cacdd2", + borderRadius: 50, + borderWidth: 2, + marginTop: 5 + } + + const fillerStyles = { + height: '100%', + width: `${completed}%`, + backgroundColor: bgcolor, + borderRadius: 'inherit', + textAlign: 'right', + transition: 'width 1s ease-in-out', + } + + const labelStyles = { + padding: 5, + color: 'white', + fontWeight: 'bold' + } + + return ( +
+
+ {`${completed}%`} +
+
+ ); +}; + +export default ProgressBar; \ No newline at end of file diff --git a/src/components/SkillCard.tsx b/src/components/SkillCard.tsx index 502ca78..66c872c 100644 --- a/src/components/SkillCard.tsx +++ b/src/components/SkillCard.tsx @@ -1,6 +1,8 @@ // @ts-ignore import React from 'react'; import { FaCuttlefish, FaPhp, FaPython, FaServer} from 'react-icons/fa'; +//@ts-ignore +import ProgresBar from "./ProgresBar.tsx"; const iconClassName = "mx-auto text-4xl text-gray-800 dark:text-gray-200"; @@ -22,7 +24,7 @@ const SkillCard: React.FC = ({skillName, skillLevel}) => {
{skillIcon}

{skillName}

- +
); } diff --git a/src/components/Skills.tsx b/src/components/Skills.tsx index 96a47fa..54cd894 100644 --- a/src/components/Skills.tsx +++ b/src/components/Skills.tsx @@ -1,5 +1,6 @@ // @ts-ignore import React from 'react'; +// @ts-ignore import SkillCard from './SkillCard.tsx'; function Skills({skills}) {