Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Fixes application form hero padding to be consistent with lander

Ian MacCallum61ab83033acc
diff --git a/apps/web/ui/partners/groups/design/previews/application-hero-preview.tsx b/apps/web/ui/partners/groups/design/previews/application-hero-preview.tsx
index 11c357d539..66295e7e3a 100644
--- a/apps/web/ui/partners/groups/design/previews/application-hero-preview.tsx
+++ b/apps/web/ui/partners/groups/design/previews/application-hero-preview.tsx
@@ -7,26 +7,27 @@ export function ApplicationFormHero({
preview,
}: {
program: Pick<Program, "name">;
- applicationFormData: Pick<ProgramApplicationFormData, "label" | "title" | "description">;
+ applicationFormData: Pick<
+ ProgramApplicationFormData,
+ "label" | "title" | "description"
+ >;
preview?: boolean;
}) {
const Heading = preview ? "div" : "h1";
- const label = applicationFormData.label || `${program.name} Affiliate Program`;
+ const label =
+ applicationFormData.label || `${program.name} Affiliate Program`;
const title = applicationFormData.title || `Apply to ${program.name}`;
- const description = applicationFormData.description
- || `Submit your application to join the ${program.name} affiliate program and start earning commissions for your referrals.`;
+ const description =
+ applicationFormData.description ||
+ `Submit your application to join the ${program.name} affiliate program and start earning commissions for your referrals.`;
return (
- <div className="grid grid-cols-1 gap-5 sm:pt-20">
- <p className="font-mono text-xs font-medium uppercase text-[var(--brand)]">
- {label}
- </p>
- <Heading className="text-4xl font-semibold">
- {title}
- </Heading>
- <p className="text-base text-neutral-700">
- {description}
- </p>
- </div>
- )
+ <div className="grid grid-cols-1 gap-5 py-6 sm:mt-14">
+ <p className="font-mono text-xs font-medium uppercase text-[var(--brand)]">
+ {label}
+ </p>
+ <Heading className="text-4xl font-semibold">{title}</Heading>
+ <p className="text-base text-neutral-700">{description}</p>
+ </div>
+ );
}