Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add login page #36

Merged
merged 15 commits into from
Feb 23, 2024
2 changes: 2 additions & 0 deletions frontend/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
// "@typescript-eslint/no-explicit-any": "off",
// "@typescript-eslint/no-non-null-assertion": "off",

"@typescript-eslint/no-unsafe-assignment": "warn",

// Avoid bugs.
"@typescript-eslint/no-misused-promises": [
2,
Expand Down
2 changes: 1 addition & 1 deletion frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions frontend/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import CreateUser from "./create_user";
import Login from "./login";

export default function Home() {
return <CreateUser />;
return <Login />;
}
5 changes: 3 additions & 2 deletions frontend/src/pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useMemo } from "react";
import { FieldValues, SubmitHandler, useForm } from "react-hook-form";

import { Textfield } from "@/components/Textfield";
import { Button } from "@/components/ui/button";
import { useWindowSize } from "@/hooks/useWindowSize";
import { cn } from "@/lib/utils";

Expand Down Expand Up @@ -95,9 +96,9 @@ export default function Login() {
Forgot Password?
</h1>
</div>
<button type="submit" className="rounded-md bg-pia_dark_green px-5 py-3 text-white">
<Button type="submit" className="rounded-md bg-pia_dark_green px-5 py-3 text-white">
Sign In
</button>
</Button>
{isMobile && (
<div className="flex items-center justify-center">
<h1 className={cn("text-sm text-black text-pia_accent max-lg:text-sm")}>
Expand Down
Loading