From 82f74279ed687d5241eaddd71ca0d0be10de3166 Mon Sep 17 00:00:00 2001 From: pious2847 Date: Sun, 27 Apr 2025 13:43:37 +0000 Subject: [PATCH] Refactor Creator and Studio Layouts; Remove Unused Components - Deleted old layout files for Creator and Studio. - Moved and restructured layout components for better organization. - Updated imports in Trash page to reflect new component paths. - Added new layout and page files for Creator and Studio under a new directory structure. - Implemented new ActionButtons and EmptyRecords components for better UI interaction. - Introduced Sidebar component with categorized action buttons for enhanced user experience. --- app/creator/{ => (home)}/layout.tsx | 0 app/creator/{ => (home)}/page.tsx | 0 app/{ => creator}/studio/layout.tsx | 4 ++-- app/creator/trash/page.tsx | 4 ++-- app/studio/page.tsx | 23 ------------------- .../cards/TrashCards.tsx | 0 .../common/ActionButtons.tsx | 0 .../common/EmptyRecords.tsx | 0 .../common/SideBar.tsx | 0 components/custom/Play_Ground.tsx | 2 +- 10 files changed, 5 insertions(+), 28 deletions(-) rename app/creator/{ => (home)}/layout.tsx (100%) rename app/creator/{ => (home)}/page.tsx (100%) rename app/{ => creator}/studio/layout.tsx (97%) delete mode 100644 app/studio/page.tsx rename {app/components => components}/cards/TrashCards.tsx (100%) rename {app/components => components}/common/ActionButtons.tsx (100%) rename {app/components => components}/common/EmptyRecords.tsx (100%) rename {app/components => components}/common/SideBar.tsx (100%) diff --git a/app/creator/layout.tsx b/app/creator/(home)/layout.tsx similarity index 100% rename from app/creator/layout.tsx rename to app/creator/(home)/layout.tsx diff --git a/app/creator/page.tsx b/app/creator/(home)/page.tsx similarity index 100% rename from app/creator/page.tsx rename to app/creator/(home)/page.tsx diff --git a/app/studio/layout.tsx b/app/creator/studio/layout.tsx similarity index 97% rename from app/studio/layout.tsx rename to app/creator/studio/layout.tsx index a49e6c7..ccdf5fa 100644 --- a/app/studio/layout.tsx +++ b/app/creator/studio/layout.tsx @@ -5,7 +5,7 @@ import type { Metadata } from 'next'; import Image from 'next/image'; import Link from 'next/link'; import React from 'react'; -import Sidebar from '../components/common/SideBar'; +import Sidebar from '../../../components/common/SideBar'; export const metadata: Metadata = { title: 'Studio', @@ -97,7 +97,7 @@ function layout({ children }: Props) { {children} {/* Inner Editor SideBar */} -
+
diff --git a/app/creator/trash/page.tsx b/app/creator/trash/page.tsx index d0e779e..2017932 100644 --- a/app/creator/trash/page.tsx +++ b/app/creator/trash/page.tsx @@ -1,7 +1,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs" -import TrashCards, { Trash } from "@/app/components/cards/TrashCards"; -import EmptyRecords from "@/app/components/common/EmptyRecords"; +import TrashCards, { Trash } from "@/components/cards/TrashCards"; +import EmptyRecords from "@/components/common/EmptyRecords"; const TrashPage = () => { const trashData: Trash[] = [ diff --git a/app/studio/page.tsx b/app/studio/page.tsx deleted file mode 100644 index 36da491..0000000 --- a/app/studio/page.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import { Button } from '@/components/ui/button'; -import { AddSquare, Trash } from 'iconsax-react'; -import Image from 'next/image'; -import React from 'react'; - -export default function Studio() { - return ( -
-
-

Page 1/1

-
- - -
- -
-
- image1 -
- -
- ) -} diff --git a/app/components/cards/TrashCards.tsx b/components/cards/TrashCards.tsx similarity index 100% rename from app/components/cards/TrashCards.tsx rename to components/cards/TrashCards.tsx diff --git a/app/components/common/ActionButtons.tsx b/components/common/ActionButtons.tsx similarity index 100% rename from app/components/common/ActionButtons.tsx rename to components/common/ActionButtons.tsx diff --git a/app/components/common/EmptyRecords.tsx b/components/common/EmptyRecords.tsx similarity index 100% rename from app/components/common/EmptyRecords.tsx rename to components/common/EmptyRecords.tsx diff --git a/app/components/common/SideBar.tsx b/components/common/SideBar.tsx similarity index 100% rename from app/components/common/SideBar.tsx rename to components/common/SideBar.tsx diff --git a/components/custom/Play_Ground.tsx b/components/custom/Play_Ground.tsx index e1c84cb..49d5574 100644 --- a/components/custom/Play_Ground.tsx +++ b/components/custom/Play_Ground.tsx @@ -2,7 +2,7 @@ import Frame from "./Frame"; export default function PlayGround() { return ( -
+
);