Skip to content

Commit 43f78c2

Browse files
fix(app): fix login page styles (#450)
* Fix login page styles * Remove padding top on mobile * Revert last change * Test different units
1 parent 6e3ab6f commit 43f78c2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ReactNode } from "react";
22

33
export default function LoginPageLayout({ children }: { readonly children: ReactNode }) {
4-
return <div className="absolute top-0 bottom-0 left-0 right-0 bg-primary">{children}</div>;
4+
return <div className="flex min-h-full min-h-[100dvh] items-center bg-primary">{children}</div>;
55
}

apps/app/src/components/LoginForm/BackLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const BackLink = () => {
88
const previousPath = searchParams.get("previousPath") || "/";
99

1010
return (
11-
<Link href={previousPath} className="mt-12 text-sm text-white underline">
11+
<Link href={previousPath} className="text-sm text-white underline">
1212
Powrót do strony głównej
1313
</Link>
1414
);

apps/app/src/components/LoginForm/LoginForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { BackLink } from "./BackLink";
33
import { GitHubLoginButton } from "./GitHubLoginButton";
44

55
export const LoginForm = () => (
6-
<div className="mx-auto flex max-w-[520px] flex-col items-center p-8 pt-[20vmin]">
6+
<div className="mx-auto flex max-w-[520px] flex-col items-center gap-10 p-8">
77
<AppLogo />
8-
<p className="mt-8 mb-10 text-center text-xl text-white">
8+
<p className="text-center text-xl text-white">
99
Stwórz konto już dzisiaj i korzystaj z dodatkowych funkcji serwisu DevFAQ!
1010
</p>
1111
<GitHubLoginButton />

0 commit comments

Comments
 (0)