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.

fix styles

Steven Tey4cc732e87d83
diff --git a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[[...key]]/brand-logo-badge.tsx b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[[...key]]/brand-logo-badge.tsx
index c41e848782..35df28859e 100644
--- a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[[...key]]/brand-logo-badge.tsx
+++ b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[[...key]]/brand-logo-badge.tsx
@@ -12,11 +12,11 @@ export function BrandLogoBadge({
}) {
return (
<div className="flex flex-col items-center justify-center gap-4">
- <div className="rounded-2xl border border-neutral-100 bg-white p-6 shadow-lg">
+ <div className="flex size-20 items-center justify-center rounded-3xl bg-white shadow-[0px_1px_3px_0px_#0000000F,_0px_4px_14px_0px_#00000014]">
<img
src={`${GOOGLE_FAVICON_URL}${getApexDomain(link.url)}`}
alt={`${appName} logo`}
- className="size-8 shrink-0 overflow-visible rounded-full p-px"
+ className="size-12 shrink-0 overflow-visible rounded-full p-px"
/>
</div>
<div className="pr-1.5 text-lg font-semibold text-neutral-900">
diff --git a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[[...key]]/page.tsx b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[[...key]]/page.tsx
index 58ca4c26f2..3d0f2e315f 100644
--- a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[[...key]]/page.tsx
+++ b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[[...key]]/page.tsx
@@ -116,40 +116,42 @@ export default async function DeepLinkPreviewPage(props: {
</>
)}
<main className="mx-auto flex h-dvh w-full max-w-md flex-col bg-white">
- <div className="absolute inset-0 isolate overflow-hidden bg-white">
- <div
- className={cn(
- "absolute inset-y-0 left-1/2 w-[1200px] -translate-x-1/2",
- "[mask-composite:intersect] [mask-image:linear-gradient(black,transparent_320px),linear-gradient(90deg,transparent,black_5%,black_95%,transparent)]",
- )}
- >
- <Grid
- cellSize={60}
- patternOffset={[0.75, 0]}
- className="text-neutral-200"
- />
- </div>
-
- {[...Array(2)].map((_, idx) => (
+ {variant !== "minimal" && (
+ <div className="absolute inset-0 isolate overflow-hidden bg-white">
<div
- key={idx}
className={cn(
- "absolute left-1/2 top-6 size-[80px] -translate-x-1/2 -translate-y-1/2 scale-x-[1.6]",
- idx === 0 ? "mix-blend-overlay" : "opacity-10",
+ "absolute inset-y-0 left-1/2 w-[1200px] -translate-x-1/2",
+ "[mask-composite:intersect] [mask-image:linear-gradient(black,transparent_320px),linear-gradient(90deg,transparent,black_5%,black_95%,transparent)]",
)}
>
- {[...Array(idx === 0 ? 2 : 1)].map((_, idx) => (
- <div
- key={idx}
- className={cn(
- "absolute -inset-16 mix-blend-overlay blur-[50px] saturate-[2]",
- "bg-[conic-gradient(from_90deg,#F00_5deg,#EAB308_63deg,#5CFF80_115deg,#1E00FF_170deg,#855AFC_220deg,#3A8BFD_286deg,#F00_360deg)]",
- )}
- />
- ))}
+ <Grid
+ cellSize={60}
+ patternOffset={[0.75, 0]}
+ className="text-neutral-200"
+ />
</div>
- ))}
- </div>
+
+ {[...Array(2)].map((_, idx) => (
+ <div
+ key={idx}
+ className={cn(
+ "absolute left-1/2 top-6 size-[80px] -translate-x-1/2 -translate-y-1/2 scale-x-[1.6]",
+ idx === 0 ? "mix-blend-overlay" : "opacity-10",
+ )}
+ >
+ {[...Array(idx === 0 ? 2 : 1)].map((_, idx) => (
+ <div
+ key={idx}
+ className={cn(
+ "absolute -inset-16 mix-blend-overlay blur-[50px] saturate-[2]",
+ "bg-[conic-gradient(from_90deg,#F00_5deg,#EAB308_63deg,#5CFF80_115deg,#1E00FF_170deg,#855AFC_220deg,#3A8BFD_286deg,#F00_360deg)]",
+ )}
+ />
+ ))}
+ </div>
+ ))}
+ </div>
+ )}
<div className="relative z-10 flex flex-1 flex-col px-8 py-8">
{!hidePoweredByBadge && (
@@ -173,12 +175,12 @@ export default async function DeepLinkPreviewPage(props: {
<BrandLogoBadge link={link} appName={appName} />
{variant === "minimal" ? (
- <p className="text-pretty text-center leading-5 text-neutral-500">
+ <p className="text-pretty text-center font-light text-neutral-500">
{description}
</p>
) : (
<div className="flex h-40 w-full max-w-xs flex-col gap-6 rounded-xl border border-neutral-300 px-10 py-8">
- <p className="text-pretty text-center text-sm leading-5 text-neutral-600">
+ <p className="text-pretty text-center text-sm text-neutral-600">
{description}
</p>