Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(app): fix login page styles #450

Merged
merged 4 commits into from
Dec 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/app/src/app/(no-layout)/#/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ReactNode } from "react";

export default function LoginPageLayout({ children }: { readonly children: ReactNode }) {
return <div className="absolute top-0 bottom-0 left-0 right-0 bg-primary">{children}</div>;
return <div className="flex min-h-full min-h-[100dvh] items-center bg-primary">{children}</div>;
}
2 changes: 1 addition & 1 deletion apps/app/src/components/#Form/BackLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const BackLink = () => {
const previousPath = searchParams.get("previousPath") || "/";

return (
<Link href={previousPath} className="mt-12 text-sm text-white underline">
<Link href={previousPath} className="text-sm text-white underline">
Powrót do strony głównej
</Link>
);
Expand Down
4 changes: 2 additions & 2 deletions apps/app/src/components/#Form/#Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { BackLink } from "./BackLink";
import { GitHubLoginButton } from "./GitHubLoginButton";

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