Skip to content

Commit a25751e

Browse files
committed
Added some better messaging to the login pages
- Better login page title and subtitle - Better title and new ‘having issues’ panel on the magic link pages
1 parent 659be8c commit a25751e

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

apps/webapp/app/routes/login._index/route.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ export default function LoginPage() {
6060
<a href="https://trigger.dev">
6161
<LogoIcon className="mb-4 h-16 w-16" />
6262
</a>
63-
<FormTitle divide={false} title="Log in to Trigger.dev" />
63+
<FormTitle divide={false} title="Welcome to Trigger.dev" className="mb-2 pb-0" />
64+
<Paragraph variant="small" className="mb-4">
65+
Create an account or login
66+
</Paragraph>
6467
<Fieldset>
6568
<div className="flex flex-col gap-y-2">
6669
{data.showGithubAuth && (

apps/webapp/app/routes/login.magic/route.tsx

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { Paragraph } from "~/components/primitives/Paragraph";
1717
import { authenticator } from "~/services/auth.server";
1818
import { commitSession, getUserSession } from "~/services/sessionStorage.server";
1919
import magicLinkIcon from "./login.magic.svg";
20-
2120
import type { LoaderType as RootLoader } from "~/root";
2221
import { appEnvTitleTag } from "~/utils";
2322
import { TextLink } from "~/components/primitives/TextLink";
@@ -116,7 +115,10 @@ export default function LoginMagicLinkPage() {
116115
</>
117116
) : (
118117
<>
119-
<FormTitle divide={false} title="Log in to Trigger.dev" />
118+
<FormTitle divide={false} title="Welcome to Trigger.dev" className="mb-2 pb-0" />
119+
<Paragraph variant="small" className="mb-4 text-center">
120+
Create an account or login using your email
121+
</Paragraph>
120122
<Fieldset className="flex w-full flex-col items-center gap-y-2">
121123
<InputGroup>
122124
<Label>Your email address</Label>
@@ -167,6 +169,22 @@ export default function LoginMagicLinkPage() {
167169
</LinkButton>
168170
</>
169171
)}
172+
<div className="mt-8 rounded border border-border px-6 py-4">
173+
<Paragraph variant="small" className="mb-2 text-center">
174+
Having login issues?
175+
</Paragraph>
176+
<Paragraph variant="extra-small" className="text-center">
177+
Ensure the Magic Link email isn't in your spam folder. If the problem persists,{" "}
178+
<TextLink href="mailto:[email protected]" target="_blank">
179+
drop us an email
180+
</TextLink>{" "}
181+
or let us know on{" "}
182+
<TextLink href="https://trigger.dev/discord" target="_blank">
183+
Discord
184+
</TextLink>
185+
.
186+
</Paragraph>
187+
</div>
170188
</div>
171189
</Form>
172190
</MainCenteredContainer>

0 commit comments

Comments
 (0)