Skip to content

Commit

Permalink
for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
pushkar1713 committed Sep 12, 2024
1 parent 39f2d0f commit 5094c83
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions frontend/src/pages/home.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Link } from "react-router-dom";

export const Home = () => {
return (
<div>
<div>this is my home page</div>
<Link to={"/signup"}>
<div>signup</div>
</Link>
</div>
);
};
5 changes: 5 additions & 0 deletions frontend/src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ import SignUp from "./pages/signup";
import SignIn from "./pages/signin";
import { Blogs } from "./pages/blogs";
import { Publish } from "./pages/publish";
import { Home } from "./pages/home";
export const appRouter = createBrowserRouter([
{
path: "/",
element: <App />,
children: [
{
path: "/",
element: <Home />, // Home page at the root path
},
{
path: "/signup",
element: <SignUp />,
Expand Down

0 comments on commit 5094c83

Please sign in to comment.