Skip to content

Commit

Permalink
feat: add clearer sign up CTA to modal (#172)
Browse files Browse the repository at this point in the history
## Motivation

Add a clearer "Sign up" CTA to the sign in modal.

## Merge Checklist

_Choose all relevant options below by adding an `x` now or at any time
before submitting for review_

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [x] PR has a changeset
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [x] PR includes documentation if necessary
- [x] All commits have been signed

## Additional Context

If this is a relatively large or complex change, provide more details
here that will help reviewers
  • Loading branch information
horsefacts authored May 22, 2024
1 parent 0d36ff2 commit 5c0623d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/violet-books-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@farcaster/auth-kit": patch
---

feat: add sign up CTA to modal
11 changes: 11 additions & 0 deletions packages/auth-kit/src/components/QRCodeDialog/QRCodeDialog.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ export const instructions = style({
color: "rgba(0, 0, 0, 0.5)",
});

export const signUp = style({
textDecoration: "none",
color: "#7C65C1",
});

export const createAccount = style({
marginTop: 8,
fontSize: 15.5,
color: "rgba(0, 0, 0, 0.5)",
});

export const qrCodeImage = style({
maxWidth: 480,
width: "100%",
Expand Down
11 changes: 10 additions & 1 deletion packages/auth-kit/src/components/QRCodeDialog/QRCodeDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { AuthClientError } from "@farcaster/auth-client";
import { Dialog } from "../Dialog/index.ts";
import { body, siwfHeading, instructions } from "./QRCodeDialog.css.ts";
import {
body,
siwfHeading,
instructions,
createAccount,
signUp
} from "./QRCodeDialog.css.ts";
import { Button } from "../Button.tsx";
import { QRCode } from "../QRCode.tsx";

Expand Down Expand Up @@ -54,6 +60,9 @@ export function QRCodeDialog({
<div className={instructions}>
Scan with your phone's camera to continue.
</div>
<div className={createAccount}>
<a className={signUp} href="https://warpcast.com/~/signup" target="_blank" rel="noreferrer">Need to create an account?</a>
</div>
<div
style={{
display: "flex",
Expand Down

0 comments on commit 5c0623d

Please sign in to comment.