diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx
index 89166b6..1ab242f 100644
--- a/frontend/src/App.jsx
+++ b/frontend/src/App.jsx
@@ -1,6 +1,6 @@
import { useEffect } from "react";
import "./App.css";
-import { Route, Routes } from "react-router-dom";
+import { Route, Routes, Navigate } from "react-router-dom";
import axios from "axios";
import TestAuth from "./components/testAuth";
import LoginPage from "./components/authentication/LoginPage";
@@ -13,6 +13,8 @@ import Eisenhower from "./components/EisenhowerMatrix/Eisenhower";
import PrivateRoute from "./PrivateRoute";
import ProfileUpdatePage from "./components/profilePage";
import Dashboard from "./components/dashboard/dashboard";
+import { LandingPage } from "./components/landingPage/LandingPage";
+import PublicRoute from "./PublicRoute";
import { useAuth } from "./hooks/AuthHooks";
@@ -60,10 +62,17 @@ const App = () => {
const NonAuthenticatedComponents = () => {
return (
-
- } />
- } />
+ }>
+ } />
+
+ }>
+ } />
+
+ }>
+ } />
+
+ } />
);
@@ -91,8 +100,7 @@ const AuthenticatedComponents = () => {
}>
} />
- } />
- } />
+ } />
diff --git a/frontend/src/PrivateRoute.jsx b/frontend/src/PrivateRoute.jsx
index b9784f6..01afc6a 100644
--- a/frontend/src/PrivateRoute.jsx
+++ b/frontend/src/PrivateRoute.jsx
@@ -3,7 +3,7 @@ import { useAuth } from "src/hooks/AuthHooks";
const PrivateRoute = () => {
const { isAuthenticated } = useAuth();
- return isAuthenticated ? : ;
+ return isAuthenticated ? : ;
};
export default PrivateRoute;
diff --git a/frontend/src/PublicRoute.jsx b/frontend/src/PublicRoute.jsx
new file mode 100644
index 0000000..ffdc39c
--- /dev/null
+++ b/frontend/src/PublicRoute.jsx
@@ -0,0 +1,9 @@
+import { Navigate, Outlet } from "react-router-dom";
+import { useAuth } from "src/hooks/AuthHooks";
+
+const PublicRoute = () => {
+ const { isAuthenticated } = useAuth();
+ return isAuthenticated ? : ;
+};
+
+export default PublicRoute;
diff --git a/frontend/src/components/dashboard/dashboard.jsx b/frontend/src/components/dashboard/dashboard.jsx
index b1da562..761f0ca 100644
--- a/frontend/src/components/dashboard/dashboard.jsx
+++ b/frontend/src/components/dashboard/dashboard.jsx
@@ -1,24 +1,10 @@
-import {
- Card,
- Grid,
- Tab,
- TabGroup,
- TabList,
- TabPanel,
- TabPanels,
- Text,
- Title,
- Legend,
-} from "@tremor/react";
+import { Card, Grid, Tab, TabGroup, TabList, TabPanel, TabPanels, Text, Title, Legend } from "@tremor/react";
import KpiCard from "./KpiCard";
import { BarChartGraph } from "./Barchart";
import DonutChartGraph from "./DonutChart";
import { AreaChartGraph } from "./Areachart";
import ProgressCircleChart from "./ProgressCircle";
-const valueFormatter = (number) =>
- `$ ${new Intl.NumberFormat("us").format(number).toString()}`;
-
export default function Dashboard() {
return (
@@ -48,8 +34,7 @@ export default function Dashboard() {
+ colors={["indigo"]}>
@@ -60,18 +45,18 @@ export default function Dashboard() {
-
-
- Tasks
-
-
-
-
-
+
+
+ Tasks
+
+
+
+
+
diff --git a/frontend/src/components/landingPage/LandingPage.jsx b/frontend/src/components/landingPage/LandingPage.jsx
new file mode 100644
index 0000000..1fe0e1e
--- /dev/null
+++ b/frontend/src/components/landingPage/LandingPage.jsx
@@ -0,0 +1,58 @@
+export function LandingPage() {
+ return (
+
+
+
+
+
+
+
+
+ Manage your task with{" "}
+
+ TurTask
+
+
+ 😇
+ 🥳
+
+
+
+
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Odio incidunt nam itaque sed eius modi error
+ totam sit illum. Voluptas doloribus asperiores quaerat aperiam. Quidem harum omnis beatae ipsum soluta!
+
+
+
+
+
+
+
+ );
+}
diff --git a/frontend/src/components/signup/Signup.jsx b/frontend/src/components/signup/Signup.jsx
index 3958feb..dd25136 100644
--- a/frontend/src/components/signup/Signup.jsx
+++ b/frontend/src/components/signup/Signup.jsx
@@ -1,39 +1,38 @@
-import React from 'react';
-import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
-import { faGoogle, faGithub } from '@fortawesome/free-brands-svg-icons';
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import { faGoogle, faGithub } from "@fortawesome/free-brands-svg-icons";
function Signup() {
- return (
-
-
-
Create your account
-
- Start spending more time on your own table.
-
-
-
-
-
- Sign Up with Google
-
-
+ return (
+
+
+
Create your account
+
Start spending more time on your own table.
+
+
+
+
+
+
+ Sign Up with Google
+
+
-
-
-
- Sign Up with Github
-
-
+
+
+
+
+
+ Sign Up with Github
+
+
-
-
- Sign Up with your email.
-
-
-
-
+
+ Sign Up with your email.
+
- );
+
+
+ );
}
export default Signup;