-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🪟 🧪 [Experiment] Simplify signup left side (#22402)
* 🪟 🧪 [Experiment] Simplify signup left side We want to experiment if simplifying the left side on the sign up page and dividing the signup methods, increase conversion of corporate emails on the page. How? - Making Oauth the default method - Email/password method is still available but user will see an error for personal emails. They can still sign up though. Airtable details: https://airtable.com/appIuY0uKPVnk8TWT/tbl2SxXnUwf6fVCWS/viw9frYvld7ks7aNo/recnFzE4HBB8RP1uY?blocks=hide Demo: https://www.loom.com/share/9b706682d89845b1bf2455a1f3e1520d
- Loading branch information
1 parent
f5e0f80
commit 17c77fc
Showing
8 changed files
with
158 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...packages/cloud/views/auth/SignupPage/components/SimpleLeftSide/SimpleLeftSide.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@use "scss/colors"; | ||
@use "scss/variables"; | ||
|
||
.checkIcon { | ||
color: colors.$dark-blue-100; | ||
} | ||
|
||
.detailTextContainer { | ||
min-width: fit-content; | ||
color: colors.$dark-blue; | ||
} |
64 changes: 64 additions & 0 deletions
64
...app/src/packages/cloud/views/auth/SignupPage/components/SimpleLeftSide/SimpleLeftSide.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { faGoogle } from "@fortawesome/free-brands-svg-icons"; | ||
import { faCheckCircle, faEnvelope } from "@fortawesome/free-solid-svg-icons"; | ||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
import { useState } from "react"; | ||
import { FormattedMessage } from "react-intl"; | ||
|
||
import { HeadTitle } from "components/common/HeadTitle"; | ||
import { Button } from "components/ui/Button"; | ||
import { FlexContainer } from "components/ui/Flex"; | ||
import { Heading } from "components/ui/Heading"; | ||
|
||
import styles from "./SimpleLeftSide.module.scss"; | ||
import { OAuthLogin } from "../../../OAuthLogin"; | ||
import { Disclaimer, SignupForm } from "../SignupForm"; | ||
|
||
const Detail: React.FC<React.PropsWithChildren<unknown>> = ({ children }) => { | ||
return ( | ||
<FlexContainer gap="sm" alignItems="center" className={styles.detailTextContainer}> | ||
<FontAwesomeIcon icon={faCheckCircle} className={styles.checkIcon} /> | ||
{children} | ||
</FlexContainer> | ||
); | ||
}; | ||
export const SimpleLeftSide: React.FC = () => { | ||
const [showOauth, setShowOauth] = useState(true); | ||
return ( | ||
<FlexContainer direction="column" gap="xl"> | ||
<HeadTitle titles={[{ id: "login.signup" }]} /> | ||
<Heading as="h1" centered> | ||
<FormattedMessage id="signup.title" /> | ||
</Heading> | ||
|
||
<FlexContainer justifyContent="center" alignItems="center"> | ||
<Detail> | ||
<FormattedMessage id="signup.details.noCreditCard" /> | ||
</Detail> | ||
<Detail> | ||
<FormattedMessage id="signup.details.instantSetup" /> | ||
</Detail> | ||
<Detail> | ||
<FormattedMessage id="signup.details.freeTrial" /> | ||
</Detail> | ||
</FlexContainer> | ||
{showOauth ? <OAuthLogin /> : <SignupForm />} | ||
|
||
{showOauth ? ( | ||
<Button | ||
onClick={() => setShowOauth(false)} | ||
variant="clear" | ||
size="sm" | ||
icon={<FontAwesomeIcon icon={faEnvelope} />} | ||
> | ||
<FormattedMessage id="signup.method.email" /> | ||
</Button> | ||
) : ( | ||
<Button onClick={() => setShowOauth(true)} variant="clear" size="sm" icon={<FontAwesomeIcon icon={faGoogle} />}> | ||
<FormattedMessage id="signup.method.oauth" /> | ||
</Button> | ||
)} | ||
|
||
<Disclaimer /> | ||
</FlexContainer> | ||
); | ||
}; |