don't make the nav bar with flex quantities

This commit is contained in:
2025-11-09 01:37:19 -06:00
parent 50e102a76e
commit bf9bf35b65
3 changed files with 3 additions and 5 deletions
+1 -4
View File
@@ -8,7 +8,6 @@ export default function Navbar() {
component={Link} component={Link}
to="/" to="/"
variant="outlined" variant="outlined"
className="flex flex-1"
> >
Home Home
</Button> </Button>
@@ -17,11 +16,9 @@ export default function Navbar() {
component={Link} component={Link}
to="/articleList" to="/articleList"
variant="outlined" variant="outlined"
className="flex flex-1"
> >
Article Articles
</Button> </Button>
<div className="flex flex-8"></div>
</div> </div>
); );
}; };
+1 -1
View File
@@ -13,7 +13,7 @@ createRoot(document.getElementById('root')!).render(
<Navbar /> <Navbar />
<Routes> <Routes>
<Route path="/" element={<Home />} /> <Route path="/" element={<Home />} />
<Route path="/article:articleId" element={<Article />} /> <Route path="/article/:articleId" element={<Article />} />
<Route path="/articleList" element={<ArticleList />} /> <Route path="/articleList" element={<ArticleList />} />
</Routes> </Routes>
</BrowserRouter> </BrowserRouter>
+1
View File
@@ -1,4 +1,5 @@
export default function Home() { export default function Home() {
return ( return (
<div id="home"> <div id="home">
<h1>Home</h1> <h1>Home</h1>