Skip to content

Commit 333de95

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/lint-staged-16.3.1
2 parents 374e686 + c5a52a2 commit 333de95

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

src/app/[locale]/(redesign)/(public)/LandingView.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export const View = (props: Props) => {
4141
<h1>{props.l10n.getString("landing-all-hero-title")}</h1>
4242
<p>{props.l10n.getString("landing-all-hero-lead")}</p>
4343
<SignUpForm
44-
isHero
4544
signUpCallbackUrl={`${config.serverUrl}/user/dashboard`}
4645
eventId={{
4746
cta: "clicked_get_scan_header",

src/app/[locale]/(redesign)/(public)/SignUpForm.module.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
11
@use "../../../tokens";
22

33
.form {
4-
align-items: flex-start;
54
display: flex;
65
flex-wrap: wrap;
76
gap: tokens.$spacing-lg;
7+
flex-direction: column;
8+
align-items: center;
9+
10+
@media screen and (min-width: tokens.$screen-sm) {
11+
flex-direction: row;
12+
13+
// label positions will dictate where the CTA is floating
14+
&.top {
15+
align-items: flex-end;
16+
}
17+
&.bottom {
18+
align-items: flex-start;
19+
}
20+
}
821

922
div:first-child {
1023
display: flex;

src/app/[locale]/(redesign)/(public)/SignUpForm.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ export type Props = {
2222
signUpCallbackUrl: string;
2323
label?: string;
2424
experimentData?: ExperimentData["Features"];
25-
isHero?: boolean;
2625
placeholder?: string;
2726
ctaLabel?: string | ReactNode;
2827
hasFloatingLabel?: boolean;
29-
labelPosition?: "top" | "bottom" | "floating";
28+
labelPosition: "top" | "bottom" | "floating";
3029
};
3130

3231
export const SignUpForm = (props: Props) => {

src/app/[locale]/(redesign)/(public)/how-it-works/components/FooterSection.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const FooterSection = (props: Props) => {
2727
placeholder={l10n.getString(
2828
"how-it-works-page-footersection-input-placeholder",
2929
)}
30+
labelPosition="top"
3031
/>
3132
</footer>
3233
);

0 commit comments

Comments
 (0)