Skip to content

Commit

Permalink
Added some better messaging to the login pages
Browse files Browse the repository at this point in the history
- Better login page title and subtitle
- Better title and new ‘having issues’ panel on the magic link pages
  • Loading branch information
samejr committed Oct 12, 2023
1 parent 659be8c commit a25751e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
5 changes: 4 additions & 1 deletion apps/webapp/app/routes/login._index/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ export default function LoginPage() {
<a href="https://trigger.dev">
<LogoIcon className="mb-4 h-16 w-16" />
</a>
<FormTitle divide={false} title="Log in to Trigger.dev" />
<FormTitle divide={false} title="Welcome to Trigger.dev" className="mb-2 pb-0" />
<Paragraph variant="small" className="mb-4">
Create an account or login
</Paragraph>
<Fieldset>
<div className="flex flex-col gap-y-2">
{data.showGithubAuth && (
Expand Down
22 changes: 20 additions & 2 deletions apps/webapp/app/routes/login.magic/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { Paragraph } from "~/components/primitives/Paragraph";
import { authenticator } from "~/services/auth.server";
import { commitSession, getUserSession } from "~/services/sessionStorage.server";
import magicLinkIcon from "./login.magic.svg";

import type { LoaderType as RootLoader } from "~/root";
import { appEnvTitleTag } from "~/utils";
import { TextLink } from "~/components/primitives/TextLink";
Expand Down Expand Up @@ -116,7 +115,10 @@ export default function LoginMagicLinkPage() {
</>
) : (
<>
<FormTitle divide={false} title="Log in to Trigger.dev" />
<FormTitle divide={false} title="Welcome to Trigger.dev" className="mb-2 pb-0" />
<Paragraph variant="small" className="mb-4 text-center">
Create an account or login using your email
</Paragraph>
<Fieldset className="flex w-full flex-col items-center gap-y-2">
<InputGroup>
<Label>Your email address</Label>
Expand Down Expand Up @@ -167,6 +169,22 @@ export default function LoginMagicLinkPage() {
</LinkButton>
</>
)}
<div className="mt-8 rounded border border-border px-6 py-4">
<Paragraph variant="small" className="mb-2 text-center">
Having login issues?
</Paragraph>
<Paragraph variant="extra-small" className="text-center">
Ensure the Magic Link email isn't in your spam folder. If the problem persists,{" "}
<TextLink href="mailto:[email protected]" target="_blank">
drop us an email
</TextLink>{" "}
or let us know on{" "}
<TextLink href="https://trigger.dev/discord" target="_blank">
Discord
</TextLink>
.
</Paragraph>
</div>
</div>
</Form>
</MainCenteredContainer>
Expand Down

0 comments on commit a25751e

Please sign in to comment.