install mui, make navbar

This commit is contained in:
2025-11-08 23:07:44 -06:00
parent 4cd6e90a00
commit 3f05b9a2a5
5 changed files with 749 additions and 21 deletions
+8
View File
@@ -0,0 +1,8 @@
export default function Navbar() {
return (
<div className="flex-row">
<button />
<button />
</div>
);
};
+4
View File
@@ -3,12 +3,16 @@ import { createRoot } from 'react-dom/client'
import { BrowserRouter, Routes, Route } from 'react-router'
import './index.css'
import Home from './pages/Home.tsx'
import Article from './pages/Article.tsx'
import Navbar from './components/Navbar.tsx'
createRoot(document.getElementById('root')!).render(
<StrictMode>
<Navbar />
<BrowserRouter>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/article:articleId" element={<Article />} />
</Routes>
</BrowserRouter>
</StrictMode>
+7
View File
@@ -0,0 +1,7 @@
export default function Article() {
return (
<div id="article">
<h1>Article</h1>
</div>
);
};