From 3530910b6f8dcbcd9596832c65d2d12b909b2e91 Mon Sep 17 00:00:00 2001 From: Leopoldadmin Date: Mon, 22 Jun 2026 05:55:43 +0000 Subject: [PATCH] feat: Implement main layout with all components and dark/light theme toggle --- frontend/src/App.tsx | 51 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 44 insertions(+), 7 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 322f00a..bf6e942 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,10 +1,47 @@ -function App() { +import React, { useState } from 'react'; +import './App.css'; +import './styles/theme.css'; +import { ThemeProvider, useTheme } from './contexts/ThemeContext'; +import RibbonBar from './components/RibbonBar'; +import SidePanel from './components/SidePanel'; +import CommandLine from './components/CommandLine'; +import StatusBar from './components/StatusBar'; +import CanvasArea from './components/CanvasArea'; + +function AppContent() { + const { theme, toggleTheme } = useTheme(); + const [activeRibbonTab, setActiveRibbonTab] = useState('draw'); + + const handleRibbonTabChange = (tab: string) => { + setActiveRibbonTab(tab); + }; + return ( - <> -

Web CAD

-

Welcome to the Web CAD application

- - ) +
+ +
+ + +
+ + + +
+ ); } -export default App \ No newline at end of file +function App() { + return ( + + + + ); +} + +export default App; \ No newline at end of file