diff --git a/components/SingleWorkItem.js b/components/SingleWorkItem.js
new file mode 100644
index 0000000..7042910
--- /dev/null
+++ b/components/SingleWorkItem.js
@@ -0,0 +1,45 @@
+import styles from "../styles/About.module.scss";
+import { useGlobalDispatchContext } from "../context/globalContext";
+
+function SingleWorkItem({
+ company,
+ position,
+ time,
+ description,
+ link,
+ handleWorkHover,
+ handleWorkNotHover,
+}) {
+ const dispatch = useGlobalDispatchContext();
+
+ return (
+
+ handleWorkHover(
+ company.replace(/^(?:https?:\/\/)?(?:www\.)?/i, "").split(".")[0]
+ )
+ }
+ onMouseLeave={handleWorkNotHover}
+ >
+
+ {company} ({time})
+
+ {position}
+
+ dispatch({ type: "CURSOR_STYLES", cursorStyles: "link" })
+ }
+ onMouseLeave={() =>
+ dispatch({ type: "CURSOR_STYLES", cursorStyles: "default" })
+ }
+ >
+ {link.replace(/^(?:https?:\/\/)?(?:www\.)?/i, "")}
+ →
+
+
+ );
+}
+
+export default SingleWorkItem;
diff --git a/package-lock.json b/package-lock.json
index 0546f6c..c8ee08e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -5,6 +5,7 @@
"requires": true,
"packages": {
"": {
+ "name": "nivedin-portfolio-v3",
"version": "0.1.0",
"dependencies": {
"framer-motion": "^4.1.17",
diff --git a/pages/about.js b/pages/about.js
index 35b40ba..6e8d63a 100644
--- a/pages/about.js
+++ b/pages/about.js
@@ -5,6 +5,8 @@ import { motion } from "framer-motion";
import { useEffect, useState } from "react";
import HeadTag from "../components/HeadTag";
import MagneticButton from "../components/MagneticButton";
+import workHistory from "../utils/work-history";
+import SingleWorkItem from "../components/SingleWorkItem";
function AboutPage() {
const dispatch = useGlobalDispatchContext();
@@ -58,12 +60,17 @@ function AboutPage() {
};
const handleWorkHover = (workItem) => {
- if (workItem === "ditalVault") {
+ if (workItem === "hoppscotch") {
+ dispatch({
+ type: "CURSOR_STYLES",
+ cursorStyles: "link-hoppscotch",
+ });
+ } else if (workItem === "ditalvault") {
dispatch({
type: "CURSOR_STYLES",
cursorStyles: "link-digitalvault",
});
- } else if (workItem === "quantek") {
+ } else if (workItem === "myservicecube") {
dispatch({
type: "CURSOR_STYLES",
cursorStyles: "link-quantek",
@@ -207,7 +214,7 @@ function AboutPage() {
A Front End Developer working remotely for{" "}
@@ -217,10 +224,10 @@ function AboutPage() {
dispatch({ type: "CURSOR_STYLES", cursorStyles: "default" })
}
>
- Digital Vault
+ Hoppscotch
{" "}
- Mumbai, Nashik having 1.5 years of experience in web development,
- mostly with Front-end but working on backend as well.
+ having 2 years of experience in web development, mostly with
+ Front-end but working on backend as well.
I am doing my final year B.tech in Computer Science apart
from freelancing.
I think understanding the human experience
is essential for creating useful and effective products that make
@@ -233,7 +240,19 @@ function AboutPage() {
Work History
-
(
+
+ ))}
+ {/*
handleWorkHover("ditalVault")}
onMouseLeave={handleWorkNotHover}
@@ -289,7 +308,7 @@ function AboutPage() {
>
sapne.org.in →
-
+
*/}
{/*
{workHover.hover && (