code editor

This commit is contained in:
Виталий Лавшонок
2025-10-27 05:57:18 +03:00
parent 5544fa8b88
commit e2a9e68666
8 changed files with 275 additions and 4 deletions

View File

@@ -5,12 +5,14 @@ import { Route, Routes } from "react-router-dom";
// import { Input } from "./components/input/Input";
// import { Switch } from "./components/switch/Switch";
import Home from "./pages/Home";
import CodeEditor from "./components/codeeditor/CodeEditor";
function App() {
return (
<div className="flex w-full h-full">
<div className="flex w-full h-full ">
<Routes>
<Route path="/home/*" element={<Home/>}/>
<Route path="/editor" element={<div className="box-border p-[50px] w-full h-[800px] relative bg-red-800"><CodeEditor/></div>}/>
<Route path="*" element={<Home/>}/>
</Routes>