diff --git a/src/components/canvas.tsx b/src/components/canvas.tsx index b47c9cf..09a5b34 100644 --- a/src/components/canvas.tsx +++ b/src/components/canvas.tsx @@ -14,6 +14,7 @@ import { Toolbar } from "@/components/toolbar"; import TransformableText from "@/components/transformable-text"; import LayerBorder from "@/components/layer-border"; import { CANVAS_PADDING_X, CANVAS_PADDING_Y } from "@/consts/canvas-params"; +import Legacy from "@/components/layout/sidebar/legacy"; const Canvas = () => { const dispatch = useAppDispatch(); @@ -129,7 +130,7 @@ const Canvas = () => { } })} - {/**/} + diff --git a/src/components/layer-item.tsx b/src/components/layer-item.tsx index fa05959..417fc8d 100644 --- a/src/components/layer-item.tsx +++ b/src/components/layer-item.tsx @@ -3,6 +3,8 @@ import { useSortable } from "@dnd-kit/sortable"; import { CSS } from "@dnd-kit/utilities"; import { type StageItem, StageItemType } from "@/store/app.slice"; import { useAppDispatch } from "@/hooks"; +import { Button } from "@/components/ui/button"; +import { HiOutlineLockClosed, HiOutlineLockOpen } from "react-icons/hi2"; export default function LayerItem({ item }: { item: StageItem }) { const dispatch = useAppDispatch(); @@ -23,6 +25,8 @@ export default function LayerItem({ item }: { item: StageItem }) { {...listeners} className="m-2 flex items-center justify-between rounded-md border p-2 text-black" > + {item.type} + {item.type === StageItemType.Text ? ( item.params.text < 5 ? ( item.params.text @@ -36,7 +40,10 @@ export default function LayerItem({ item }: { item: StageItem }) { src={item.params.imageUrl} /> )} - {item.type} + ); } diff --git a/src/components/layout/sidebar/legacy.tsx b/src/components/layout/sidebar/legacy.tsx index e69de29..cc76083 100644 --- a/src/components/layout/sidebar/legacy.tsx +++ b/src/components/layout/sidebar/legacy.tsx @@ -0,0 +1,29 @@ +import React from "react"; +import { Layer, Text } from "react-konva"; + +export default function Legacy({ stageParams }) { + return ( + + + + + + {/**/} + + ); +} diff --git a/src/components/legales.tsx b/src/components/legales.tsx deleted file mode 100644 index a6233b4..0000000 --- a/src/components/legales.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import React from "react"; -import { Image, Layer } from "react-konva"; -import women from "../assets/logo.png"; -import useImage from "use-image"; - -export default function Legales() { - const [test] = useImage(women); - return ( - - {women} - - ); -} diff --git a/todo.md b/todo.md index 577eb08..a980566 100644 --- a/todo.md +++ b/todo.md @@ -9,4 +9,12 @@ - Template properties ( assets ) - Canvas sizes - what to add or change? -- \ No newline at end of file + + + + +todo with Andrei + +- lines in canvas with css +- error correction +- questions about legacy type \ No newline at end of file