doc: add additional links and routes to the home and createpost page
This commit is contained in:
1 parent
4b88213fe5
commit
10e469cc52
1 file changed
+12
+12
@@ -11,7 +11,19 @@ const App = () => {
|
|||||||
<Link to="/">
|
<Link to="/">
|
||||||
<img src={logo} alt="logo" className="w-28 object-contain" />
|
<img src={logo} alt="logo" className="w-28 object-contain" />
|
||||||
</Link>
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/create-post"
|
||||||
|
className="font-inter font-medium bg-[#6469ff] text-white px-4 py-2 rounded-md"
|
||||||
|
>
|
||||||
|
Create
|
||||||
|
</Link>
|
||||||
</header>
|
</header>
|
||||||
|
<main className="sm:p-8 px-4 py-8 w-full bg-[#f9f8fe] min-h-[calc(100vh-73px)]">
|
||||||
|
<Routes>
|
||||||
|
<Route path="/" element={<Home />} />
|
||||||
|
<Route path="/create-post" element={<CreatePost />} />
|
||||||
|
</Routes>
|
||||||
|
</main>
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user