Add Hello World page at /hello route
Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
parent
06fae294b8
commit
20422fbb84
2 changed files with 9 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { BrowserRouter, Route, Routes } from "react-router-dom";
|
||||
import { ScrollToTop } from "./components/ScrollToTop";
|
||||
|
||||
import HelloWorld from "./pages/HelloWorld";
|
||||
import Index from "./pages/Index";
|
||||
import { NIP19Page } from "./pages/NIP19Page";
|
||||
import NotFound from "./pages/NotFound";
|
||||
|
|
@ -11,6 +12,7 @@ export function AppRouter() {
|
|||
<ScrollToTop />
|
||||
<Routes>
|
||||
<Route path="/" element={<Index />} />
|
||||
<Route path="/hello" element={<HelloWorld />} />
|
||||
{/* NIP-19 route for npub1, note1, naddr1, nevent1, nprofile1 */}
|
||||
<Route path="/:nip19" element={<NIP19Page />} />
|
||||
{/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */}
|
||||
|
|
|
|||
7
src/pages/HelloWorld.tsx
Normal file
7
src/pages/HelloWorld.tsx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export default function HelloWorld() {
|
||||
return (
|
||||
<div className="flex min-h-screen items-center justify-center">
|
||||
<h1 className="text-4xl font-bold">Hello World</h1>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Reference in a new issue