Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 27 additions & 26 deletions src/components/home/HomeNewsletterSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,36 @@ export function HomeNewsletterSection() {
<>
<section
aria-labelledby="newsletter"
className="mx-auto w-full max-w-[96rem] px-6 md:px-10"
className="mx-auto w-full px-4 lg:max-w-(--breakpoint-lg)"
>
<div className="corner-squircle grid overflow-hidden rounded-2xl border border-border-subtle bg-background-surface px-6 py-8 sm:p-10 lg:mt-[19px] lg:px-[76px] lg:py-[59px]">
<div className="flex items-start gap-4 sm:gap-5">
<div className="corner-squircle flex size-12 shrink-0 items-center justify-center rounded-xl border border-border-subtle bg-background-subtle text-text-secondary sm:size-14">
<EnvelopeSimpleIcon className="size-6 sm:size-7" weight="light" />
</div>
<div className="min-w-0">
<p className="font-ds-mono text-ds-mono-xs uppercase tracking-wider text-text-muted">
Newsletter
</p>
<h2
id="newsletter"
className="mt-2 scroll-mt-24 font-ds-display text-ds-heading-2 font-semibold text-text-primary"
>
Subscribe to TanStack News
</h2>
<p className="mt-2 max-w-xl text-ds-body-md text-text-secondary">
New posts, releases, and ecosystem updates from TanStack.
</p>
</div>
<div className="corner-squircle grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-4 overflow-hidden rounded-2xl border border-border-subtle bg-background-surface px-6 py-8 sm:gap-x-8 sm:p-10 lg:mt-[19px] lg:py-[59px]">
<h2
id="newsletter"
className="scroll-mt-24 font-ds-display text-ds-heading-2 font-semibold text-text-primary sm:self-end"
>
Subscribe to TanStack News
</h2>
<div
aria-hidden="true"
className="corner-squircle col-start-2 row-start-1 flex size-8 items-center justify-center rounded-lg border border-border-subtle bg-background-subtle text-text-secondary sm:row-end-3 sm:size-32 sm:rounded-2xl lg:size-40"
>
<EnvelopeSimpleIcon
className="size-5 sm:size-16 lg:size-20"
weight="light"
/>
</div>
<div className="col-span-2 sm:col-span-1 sm:self-start">
<p className="mt-2 max-w-xl text-ds-body-md text-text-secondary">
New posts, releases, and ecosystem updates from TanStack.
</p>

<NewsletterSignup
className="mt-8 w-full max-w-[23rem]"
buttonClassName="min-h-11 corner-squircle rounded-xl border-background-inverse bg-background-inverse px-5 font-ds-display text-ds-body-sm font-semibold text-text-inverse shadow-none hover:bg-background-inverse/90"
noteClassName="font-ds-mono text-[11px] tracking-wide text-text-muted"
successClassName="text-ds-body-sm text-text-success"
/>
<NewsletterSignup
className="mt-8 w-full max-w-[23rem]"
buttonClassName="min-h-11 corner-squircle rounded-xl border-background-inverse bg-background-inverse px-5 font-ds-display text-ds-body-sm font-semibold text-text-inverse shadow-none hover:bg-background-inverse/90"
successClassName="text-ds-body-sm text-text-success"
showNote={false}
/>
</div>
</div>
</section>
<div className="h-16 sm:h-20" />
Expand Down
Loading