feat(web): scaffold Vite+React+TS, Tailwind v4, shadcn, router, тёмная console-тема
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { Routes, Route, Navigate } from "react-router-dom"
|
||||
import { Layout } from "@/components/Layout"
|
||||
|
||||
function Placeholder({ name }: { name: string }) {
|
||||
return <div className="p-8 text-2xl">{name}</div>
|
||||
}
|
||||
|
||||
export function App() {
|
||||
return (
|
||||
<Layout>
|
||||
<Routes>
|
||||
<Route path="/" element={<Navigate to="/domains" replace />} />
|
||||
<Route path="/domains" element={<Placeholder name="Domains" />} />
|
||||
<Route path="/domains/:id" element={<Placeholder name="Domain diff" />} />
|
||||
<Route path="/accounts" element={<Placeholder name="Accounts" />} />
|
||||
<Route path="/templates" element={<Placeholder name="Templates" />} />
|
||||
</Routes>
|
||||
</Layout>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user