diff --git a/gadget-code/frontend/src/pages/SignIn.tsx b/gadget-code/frontend/src/pages/SignIn.tsx index 6fa2684..fd30e1e 100644 --- a/gadget-code/frontend/src/pages/SignIn.tsx +++ b/gadget-code/frontend/src/pages/SignIn.tsx @@ -1,6 +1,7 @@ import { useState } from 'react'; import { Link } from 'react-router-dom'; import { api, AuthResponse, User } from '../lib/api'; +import GadgetGrid from '../components/GadgetGrid'; interface SignInProps { onSuccess: (user: User, token: string) => void; @@ -27,58 +28,79 @@ export default function SignIn({ onSuccess }: SignInProps) { }; return ( -
-
-

Sign In

- {error && ( -
- {error} +
+
+ +
+
+
+
+
+
// AUTHENTICATION REQUIRED
+
SYSTEM ACCESS
+ +
+ Accounts are administered. Contact your administrator for access. +
+ + {error && ( +
+
+ // ERROR: + {error} +
+
+ )} + +
+
+ + setEmail(e.target.value)} + className="w-full px-4 py-2 bg-bg-tertiary border border-border-default rounded text-text-primary font-mono focus:outline-none focus:border-border-highlight" + required + autoComplete="email" + /> +
+
+ + setPassword(e.target.value)} + className="w-full px-4 py-2 bg-bg-tertiary border border-border-default rounded text-text-primary font-mono focus:outline-none focus:border-border-highlight" + required + autoComplete="current-password" + /> +
+
+ + CANCEL + + +
+
+
- )} -
-
- - setEmail(e.target.value)} - className="w-full px-4 py-2 bg-bg-tertiary border border-border-default rounded-lg text-text-primary focus:outline-none focus:border-brand" - required - /> -
-
- - setPassword(e.target.value)} - className="w-full px-4 py-2 bg-bg-tertiary border border-border-default rounded-lg text-text-primary focus:outline-none focus:border-brand" - required - /> -
-
- - Cancel - - -
-
-
-
- ); - } \ No newline at end of file +
+
+
+ ); +}