"use client";
import React from "react";
export default function MySkillsSection() {
const webDevStack = require("../(utils)/web-dev-stack.json");
const uiStack = require("../(utils)/ui-ux-stack.json");
const [targetStack, setTargetStack] = React.useState("dev");
return (
My Skills
I am well-versed in the full spectrum of design and development. While I started out as a designer, I have focused more on development in the last few years.
{targetStack?.match(/dev/i) ? "Web Dev Tech Stack" : "UI/UX tech stack"}
{/*
My Tech Stack
*/}
{
setTargetStack("dev");
}}
>
Web Dev Stack
{
setTargetStack("design");
}}
>
UI/UX Stack
{targetStack?.match(/dev/i) ? (
{webDevStack.map((item: { title: string; description: string }, index: number) => (
-
{item.title}
{/* */}
{item.description}
{/* */}
))}
) : (
{uiStack.map((item: { title: string; description: string }, index: number) => (
-
{item.title}
{/* */}
{item.description}
{/* */}
))}
)}
);
}