Skip to content

Commit f4cce41

Browse files
committed
Improve newsletter signup UI on download page
1 parent 58a2e69 commit f4cce41

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

src/app/download/[slug]/page.tsx

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,25 +87,26 @@ export default async function DownloadPage({ params }: DownloadPageProps) {
8787
</Text>
8888
)}
8989

90-
<ContentCard
90+
<StyledImageWrapper>
91+
<ThemedImage
92+
withBorder
93+
alt="Get started with HTTP Toolkit"
94+
darkSrc="/images/product/explore-dark.png"
95+
lightSrc="/images/product/explore-light.png"
96+
loading="eager"
97+
width={662}
98+
height={450}
99+
sizes="(max-width: 600px) 50vw, 75vw"
100+
/>
101+
</StyledImageWrapper>
102+
</StyledColumnContent>
103+
104+
<ContentCard
91105
title="Join the mailing list now, so you don't miss new features & releases"
92106
text="There's a lot of new HTTP Toolkit features coming soon, like full scripting support, gRPC & GraphQL integration, and request diffing tools. Keep yourself up to date:"
93107
$isNewsletter
94108
action={NEWSLETTER_URLS.download}
95109
/>
96-
</StyledColumnContent>
97-
<StyledImageWrapper>
98-
<ThemedImage
99-
withBorder
100-
alt="Get started with HTTP Toolkit"
101-
darkSrc="/images/product/explore-dark.png"
102-
lightSrc="/images/product/explore-light.png"
103-
loading="eager"
104-
width={662}
105-
height={450}
106-
sizes="(max-width: 600px) 50vw, 75vw"
107-
/>
108-
</StyledImageWrapper>
109110
</StyledDownloadaColumns>
110111
</Container>
111112
</StyledDownloadSection>

src/components/modules/content-card/content-card.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const StyledContentCardForm = styled.form`
4242
4343
@media (min-width: ${({ theme }) => theme.screens['lg']}) {
4444
flex-direction: row;
45+
align-items: center;
4546
}
4647
4748
& button {

src/components/modules/content-card/form/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const ContentCardForm = ({ action }: Pick<ContentCardProps, 'action'>) =>
2626
<input type="text" id="extra-info" name="first-name" tab-index="-1" autoComplete="nope" />
2727
</div>
2828
<Input id="email" placeholder="Email address" type="email" required />
29-
<Button as="button" type="submit" $variant="secondary" $small>
29+
<Button as="button" type="submit" $variant="primary" $small>
3030
Sign up
3131
</Button>
3232
</StyledContentCardForm>

0 commit comments

Comments
 (0)