diff --git a/web/src/components/ui/input.tsx b/web/src/components/ui/input.tsx index 015d5fb..c5e57b5 100644 --- a/web/src/components/ui/input.tsx +++ b/web/src/components/ui/input.tsx @@ -6,7 +6,7 @@ export const Input: FC = ({ className, ...props }) => { return ( diff --git a/web/src/feature/AccountList/index.tsx b/web/src/feature/AccountList/index.tsx index b4fe9db..f86f84b 100644 --- a/web/src/feature/AccountList/index.tsx +++ b/web/src/feature/AccountList/index.tsx @@ -1,6 +1,6 @@ import { useDbContext } from "@/context/db/db"; import { type LocalAccount, useAccountRepo } from "@/repository/account"; -import { User } from "lucide-react"; +import { CirclePlus, User } from "lucide-react"; import { useEffect, useState, type FC } from "react"; const AccountList: FC = () => { @@ -20,7 +20,7 @@ const AccountList: FC = () => {
-
-
- + return ( + <> + {accounts.map((account) => ( +
+
+
+ +
+
+
+

+ {account.label} +

+

+ {account.email} +

+
+ ))} +
+
+
+ +
+
+

+ Add new account +

-
-

{account.label}

-

{account.email}

-
-
- )); + + ); }; export default AccountList; diff --git a/web/src/pages/Agreement/index.tsx b/web/src/pages/Agreement/index.tsx index 3dfe5a2..ffdf543 100644 --- a/web/src/pages/Agreement/index.tsx +++ b/web/src/pages/Agreement/index.tsx @@ -1,39 +1,102 @@ import { type FC } from "react"; -import overlay from "@/assets/overlay.jpg"; import { Card, CardContent } from "@/components/ui/card"; -import AccountList from "@/feature/AccountList"; +import { ArrowLeftRight, User } from "lucide-react"; +import { Button } from "@/components/ui/button"; const AgreementPage: FC = () => { return (
- -
+ +
- icon + /> */} +
+
+ +
+
+ {/* */} + +
+
+ {/* */} + +
+
-

- Select Account +

+ + MDN Lab Services + {" "} + wants to access your Home Account

-

- Choose one of the accounts below in order to proceed to home - lab services and tools. +
+
+ +
+

+ qwer.009771@gmail.com +

+
+

+ This will allow{" "} + + MDN Lab Services + {" "} + to:

{/* */} - - + +
+
+
+
+

View your full name, email and profile image

+
+
+
+
+
+

View your permission from "MDN" group

+
+
+
+ +
+

+ Are you sure you want to trust MDN Lab Services? +

+

+ Please do not share any sensitive, personal, or unnecessary + information unless you trust this service. Protect your + privacy and only provide information that is required for the + intended purpose. +

+
+ +
+ + + +
diff --git a/web/src/pages/Index/index.tsx b/web/src/pages/Index/index.tsx index 5c00ee8..26b34e3 100644 --- a/web/src/pages/Index/index.tsx +++ b/web/src/pages/Index/index.tsx @@ -1,19 +1,22 @@ import { type FC } from "react"; -import overlay from "@/assets/overlay.jpg"; +// import overlay from "@/assets/overlay.jpg"; +// import darkOverlay from "@/assets/dark-overlay.jpg"; + import { Card, CardContent } from "@/components/ui/card"; import AccountList from "@/feature/AccountList"; const IndexPage: FC = () => { + // console.log(overlay); return (
- +
-
+
icon { />
-

+

Select Account

-

+

Choose one of the accounts below in order to proceed to home lab services and tools.

@@ -32,7 +35,7 @@ const IndexPage: FC = () => {
{/* */} - +
diff --git a/web/src/pages/Login/index.tsx b/web/src/pages/Login/index.tsx index c10467f..2891247 100644 --- a/web/src/pages/Login/index.tsx +++ b/web/src/pages/Login/index.tsx @@ -5,7 +5,6 @@ import { Link } from "react-router-dom"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; -import overlay from "@/assets/overlay.jpg"; import { useForm, type SubmitHandler } from "react-hook-form"; import { useCallback, useState } from "react"; import { loginApi } from "@/api/login"; @@ -71,11 +70,10 @@ export default function LoginPage() { return (
- +
-

+

Sign In

-

+

Enter your credentials to access home services and tools.

@@ -96,7 +94,7 @@ export default function LoginPage() {
- +
- + 0 && ( -
+
{error}
)} diff --git a/web/src/pages/Register/index.tsx b/web/src/pages/Register/index.tsx index d0710f9..90b2a5f 100644 --- a/web/src/pages/Register/index.tsx +++ b/web/src/pages/Register/index.tsx @@ -4,7 +4,6 @@ import { Link } from "react-router-dom"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; -import overlay from "@/assets/overlay.jpg"; import { useCallback, useState } from "react"; import { useForm, type SubmitHandler } from "react-hook-form"; @@ -75,11 +74,10 @@ export default function RegisterPage() { return (
- +
-

+

Sign Up

-

+

Fill up this form to start using homelab services and tools.

@@ -235,7 +233,7 @@ export default function RegisterPage() { )} {error.length > 0 && ( -
+
{error}
)}