The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
replace all relevant img for BlurImage
Karan Handaecb29f2ccd5d
diff --git a/apps/web/app/inspect/[domain]/[key]/card.tsx b/apps/web/app/inspect/[domain]/[key]/card.tsxindex 2bae64b499..5a1ca8188c 100644--- a/apps/web/app/inspect/[domain]/[key]/card.tsx+++ b/apps/web/app/inspect/[domain]/[key]/card.tsx@@ -24,6 +24,8 @@ export default function LinkInspectorCard({src={`${GOOGLE_FAVICON_URL}${apexDomain}`}alt={apexDomain}className="pointer-events-none h-10 w-10 rounded-full"+ width={20}+ height={20}/><div><div className="flex items-center space-x-1 sm:space-x-2">diff --git a/apps/web/app/protected/[domain]/[key]/page.tsx b/apps/web/app/protected/[domain]/[key]/page.tsxindex e8749cfeb5..bd56f7a88c 100644--- a/apps/web/app/protected/[domain]/[key]/page.tsx+++ b/apps/web/app/protected/[domain]/[key]/page.tsx@@ -3,6 +3,7 @@ import { constructMetadata, isDubDomain } from "@dub/utils";import prisma from "@/lib/prisma";import PasswordForm from "./form";import { notFound, redirect } from "next/navigation";+import { BlurImage } from "@/ui/shared/blur-image";const title = "Password Required";const description =@@ -116,9 +117,11 @@ export default async function PasswordProtectedLinkPage({{!isDubDomain(domain) &&link.project?.plan !== "free" &&link.project?.logo ? (- <img+ <BlurImagesrc={link.project.logo}alt={link.project.name}+ width={20}+ height={20}className="h-10 w-10 rounded-full"/>) : (diff --git a/apps/web/app/proxy/[domain]/[key]/page.tsx b/apps/web/app/proxy/[domain]/[key]/page.tsxindex 5c044d9cc6..1845c660fc 100644--- a/apps/web/app/proxy/[domain]/[key]/page.tsx+++ b/apps/web/app/proxy/[domain]/[key]/page.tsx@@ -1,4 +1,5 @@import { getLinkViaEdge } from "@/lib/planetscale";+import { BlurImage } from "@/ui/shared/blur-image";import {GOOGLE_FAVICON_URL,constructMetadata,@@ -64,7 +65,9 @@ export default async function ProxyPage({className="w-full object-cover"/><div className="flex space-x-3 bg-gray-100 p-5">- <img+ <BlurImage+ width={20}+ height={20}src={`${GOOGLE_FAVICON_URL}${unescape(apexDomain)}`}alt={unescape(data.title)}className="mt-1 h-6 w-6"diff --git a/apps/web/ui/layout/project-select.tsx b/apps/web/ui/layout/project-select.tsxindex af1e232cd1..064e182760 100644--- a/apps/web/ui/layout/project-select.tsx+++ b/apps/web/ui/layout/project-select.tsx@@ -80,6 +80,8 @@ export default function ProjectSelect() {<BlurImagesrc={selected.image}referrerPolicy="no-referrer"+ width={20}+ height={20}alt={selected.id || selected.name}className="h-8 w-8 flex-none overflow-hidden rounded-full"/>@@ -149,11 +151,13 @@ function ProjectList({shallow={false}onClick={() => setOpenPopover(false)}>- <img+ <BlurImagesrc={logo ||`${GOOGLE_FAVICON_URL}${primaryDomain?.slug || SHORT_DOMAIN}`}+ width={20}+ height={20}alt={id}className="h-7 w-7 overflow-hidden rounded-full"/>