diff --git a/src/content/Chart.tsx b/src/content/Chart.tsx index ec96336..465a7f2 100644 --- a/src/content/Chart.tsx +++ b/src/content/Chart.tsx @@ -1,9 +1,50 @@ +import { useState } from 'react' +import ChartCircles, { CircleType } from './ChartCircles' + +export type ActiveItemsType = { + ux: boolean + ui: boolean + dev: boolean + paper: boolean + figma: boolean + react: boolean +} + +const circles: CircleType[] = [ + { + for: 'ux', + size: '421px', + color: '#DDDF73', + top: '10%', + left: '5%', + z: 1, + }, + { + for: 'ui', + size: '564px', + color: '#FEC84B', + top: '2%', + left: '30%', + z: 1, + }, +] + const Chart = () => { + const [activeItems] = useState({ + ux: true, + ui: true, + dev: true, + paper: true, + figma: true, + react: true, + }) + return (
-
-
-
+
+
+ +
lkasdf
lkasdf
diff --git a/src/content/ChartCircles.tsx b/src/content/ChartCircles.tsx new file mode 100644 index 0000000..fe10ccb --- /dev/null +++ b/src/content/ChartCircles.tsx @@ -0,0 +1,38 @@ +import clsx from 'clsx' +import { ActiveItemsType } from './Chart' + +export type CircleType = { + for: string + size: string + color: string + top: string + left: string + z: number +} + +const ChartCircles = ({ + circles, + activeItems, +}: { + circles: CircleType[] + activeItems: ActiveItemsType +}) => { + return ( +
+ {circles.map((circle) => ( +
+ ))} +
+ ) +} +export default ChartCircles