don't make the nav bar with flex quantities
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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,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>
|
||||||
|
|||||||
Reference in New Issue
Block a user