diff --git a/src/App.tsx b/src/App.tsx
index e473ce1..a74d371 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,10 +1,33 @@
+import { createHashRouter, RouterProvider } from 'react-router-dom';
+
+import MainLayout from '@/layouts/MainLayout';
+import LoginPage from '@pages/LoginPage';
+import MainPage from '@pages/MainPage';
+import WelcomePage from '@pages/WelcomePage';
+
+const router = createHashRouter([
+ {
+ path: '/',
+ element: ,
+ children: [
+ {
+ path: '/',
+ element: ,
+ },
+ {
+ path: 'login',
+ element: ,
+ },
+ {
+ path: 'mainpage',
+ element: ,
+ },
+ ],
+ },
+]);
+
function App() {
- return (
-
-
Hello, I'm the future graphiql app!
-
Trulala
-
- );
+ return ;
}
export default App;
diff --git a/src/layouts/MainLayout.tsx b/src/layouts/MainLayout.tsx
new file mode 100644
index 0000000..e2b9ccc
--- /dev/null
+++ b/src/layouts/MainLayout.tsx
@@ -0,0 +1,13 @@
+import { Outlet } from 'react-router-dom';
+
+export default function MainLayout() {
+ return (
+
+
+
+
+
+ );
+}
diff --git a/src/pages/.gitkeep b/src/pages/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/src/pages/LoginPage.tsx b/src/pages/LoginPage.tsx
new file mode 100644
index 0000000..5152c3b
--- /dev/null
+++ b/src/pages/LoginPage.tsx
@@ -0,0 +1,3 @@
+export default function LoginPage() {
+ return Here is my fancy login page!;
+}
diff --git a/src/pages/MainPage.tsx b/src/pages/MainPage.tsx
new file mode 100644
index 0000000..a92be59
--- /dev/null
+++ b/src/pages/MainPage.tsx
@@ -0,0 +1,3 @@
+export default function LoginPage() {
+ return Here is my fancy main page!;
+}
diff --git a/src/pages/WelcomePage.tsx b/src/pages/WelcomePage.tsx
new file mode 100644
index 0000000..1ab3d41
--- /dev/null
+++ b/src/pages/WelcomePage.tsx
@@ -0,0 +1,13 @@
+import { Link } from 'react-router-dom';
+
+export default function LoginPage() {
+ return (
+
+ Here is my fancy welcome page!
+
+ login
+ main page
+
+
+ );
+}