The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update footer
Steven Tey7d6fbde57b13
diff --git a/apps/web/app/[domain]/layout.tsx b/apps/web/app/[domain]/layout.tsxindex 6d1777495a..0d67cb836f 100644--- a/apps/web/app/[domain]/layout.tsx+++ b/apps/web/app/[domain]/layout.tsx@@ -2,7 +2,7 @@ import { Footer, Nav, NavMobile } from "@dub/ui";export default function CustomDomainLayout(props) {return (- <div className="flex min-h-screen flex-col justify-between">+ <div className="flex min-h-screen flex-col justify-between bg-gray-50"><NavMobile /><Nav />{props.children}diff --git a/apps/web/app/[domain]/stats/[key]/page.tsx b/apps/web/app/[domain]/stats/[key]/page.tsxindex d79673bb15..449242f98f 100644--- a/apps/web/app/[domain]/stats/[key]/page.tsx+++ b/apps/web/app/[domain]/stats/[key]/page.tsx@@ -36,10 +36,8 @@ export default async function StatsPage({}return (- <div className="bg-gray-50">- <Suspense fallback={<div className="h-screen w-full bg-gray-50" />}>- <Stats staticDomain={params.domain} staticUrl={data.url} />- </Suspense>- </div>+ <Suspense fallback={<div className="h-screen w-full bg-gray-50" />}>+ <Stats staticDomain={params.domain} staticUrl={data.url} />+ </Suspense>);}diff --git a/apps/web/public/_static/footer.png b/apps/web/public/_static/footer.pngnew file mode 100644index 0000000000..82ccf04e55Binary files /dev/null and b/apps/web/public/_static/footer.png differdiff --git a/packages/ui/package.json b/packages/ui/package.jsonindex b190097445..bd039bf4f5 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -1,7 +1,7 @@{"name": "@dub/ui","description": "UI components for Dub.co",- "version": "0.0.49",+ "version": "0.0.52","sideEffects": false,"main": "./dist/index.js","module": "./dist/index.mjs",diff --git a/packages/ui/src/background.tsx b/packages/ui/src/background.tsxindex 608469a58a..8913dcb09b 100644--- a/packages/ui/src/background.tsx+++ b/packages/ui/src/background.tsx@@ -13,7 +13,7 @@ const styles: { [key: string]: React.CSSProperties } = {width: "100vw",minHeight: "100vh",position: "fixed",- zIndex: -1,+ zIndex: 1,display: "flex",justifyContent: "center",padding: "120px 24px 160px 24px",diff --git a/packages/ui/src/footer.tsx b/packages/ui/src/footer.tsxindex 75275c5d6f..e62f97040c 100644--- a/packages/ui/src/footer.tsx+++ b/packages/ui/src/footer.tsx@@ -1,12 +1,13 @@"use client";-import { ALL_TOOLS } from "@dub/utils";+import { ALL_TOOLS, COMPARE_PAGES } from "@dub/utils";import va from "@vercel/analytics";import Link from "next/link";import { useParams } from "next/navigation";import { FEATURES_LIST } from "./content";-import { Github, LinkedIn, LogoType, Twitter } from "./icons";+import { Github, LinkedIn, LogoType, Twitter, YouTube } from "./icons";import { MaxWidthWrapper } from "./max-width-wrapper";+import Image from "next/image";const navigation = {features: FEATURES_LIST.map(({ shortTitle, slug }) => ({@@ -16,11 +17,15 @@ const navigation = {product: [{ name: "Blog", href: "/blog" },{ name: "Changelog", href: "/changelog" },- { name: "Customer Stories", href: "/customers" },+ { name: "Customers", href: "/customers" },{ name: "Pricing", href: "/pricing" },{ name: "Enterprise", href: "/enterprise" },{ name: "Help Center", href: "/help" },],+ compare: COMPARE_PAGES.map(({ name, slug }) => ({+ name,+ href: `/compare/${slug}`,+ })),legal: [{ name: "Privacy", href: "/privacy" },{ name: "Terms", href: "/terms" },@@ -39,8 +44,8 @@ export function Footer() {domain === "dub.co" ? href : `https://dub.co${href}`;return (- <footer className="z-10 border-t border-gray-200 bg-white/50 py-8 backdrop-blur-lg">- <MaxWidthWrapper className="pt-10">+ <footer>+ <MaxWidthWrapper className="relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl"><div className="xl:grid xl:grid-cols-3 xl:gap-8"><div className="space-y-8"><Link@@ -57,48 +62,58 @@ export function Footer() {<span className="sr-only">{process.env.NEXT_PUBLIC_APP_NAME} Logo</span>- <LogoType className="h-7 text-gray-600" />+ <LogoType className="h-7 text-gray-800" /></Link><p className="max-w-xs text-sm text-gray-500">Giving modern marketing teams superpowers with short links thatstand out.</p>- <div className="flex items-center space-x-2">+ <p className="text-sm leading-5 text-gray-400">+ © {new Date().getFullYear()} Dub Technologies, Inc.+ </p>+ <div className="flex items-center space-x-3"><ahref="https://twitter.com/dubdotco"target="_blank"rel="noreferrer"- className="group rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200"+ className="group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200"><span className="sr-only">Twitter</span>- <Twitter className="h-5 w-5 text-gray-600" />+ <Twitter className="h-4 w-4 text-gray-600" /></a>- <div className="h-8 border-l border-gray-200" /><ahref="https://github.com/dubinc/dub"target="_blank"rel="noreferrer"- className="rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200"+ className="rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200"><span className="sr-only">Github</span>- <Github className="h-5 w-5 text-gray-600" />+ <Github className="h-4 w-4 text-gray-600" /></a>- <div className="h-8 border-l border-gray-200" /><a- href="https://www.linkedin.com/company/dubinc/"+ href="https://www.linkedin.com/company/dubinc"target="_blank"rel="noreferrer"- className="rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200"+ className="rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200"><span className="sr-only">LinkedIn</span>- <LinkedIn className="h-5 w-5" fill="#52525B" />+ <LinkedIn className="h-4 w-4 text-gray-600" />+ </a>+ <a+ href="https://www.youtube.com/@dubdotco"+ target="_blank"+ rel="noreferrer"+ className="rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200"+ >+ <span className="sr-only">YouTube</span>+ <YouTube className="h-4 w-4 text-gray-600" /></a></div></div><div className="mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0"><div className="md:grid md:grid-cols-2"><div>- <h3 className="text-sm font-semibold text-gray-900">+ <h3 className="text-sm font-semibold text-gray-800">Features</h3><ul role="list" className="mt-4 space-y-4">@@ -114,7 +129,7 @@ export function Footer() {});},})}- className="text-sm text-gray-500 hover:text-gray-900"+ className="text-sm text-gray-500 hover:text-gray-800">{item.name}</Link>@@ -123,7 +138,7 @@ export function Footer() {</ul></div><div className="mt-10 md:mt-0">- <h3 className="text-sm font-semibold text-gray-600">Product</h3>+ <h3 className="text-sm font-semibold text-gray-800">Product</h3><ul role="list" className="mt-4 space-y-4">{navigation.product.map((item) => (<li key={item.name}>@@ -137,7 +152,7 @@ export function Footer() {});},})}- className="text-sm text-gray-500 hover:text-gray-900"+ className="text-sm text-gray-500 hover:text-gray-800">{item.name}</Link>@@ -147,32 +162,59 @@ export function Footer() {</div></div><div className="md:grid md:grid-cols-2">- <div>- <h3 className="text-sm font-semibold text-gray-600">Legal</h3>- <ul role="list" className="mt-4 space-y-4">- {navigation.legal.map((item) => (- <li key={item.name}>- <Link- href={createHref(item.href)}- {...(domain !== "dub.co" && {- onClick: () => {- va.track("Referred from custom domain", {- domain,- medium: `footer item (${item.name})`,- });- },- })}- className="text-sm text-gray-500 hover:text-gray-900"- >- {item.name}- </Link>- </li>- ))}- </ul>+ <div className="flex flex-col space-y-8">+ <div>+ <h3 className="text-sm font-semibold text-gray-800">+ Compare+ </h3>+ <ul role="list" className="mt-4 space-y-4">+ {navigation.compare.map((item) => (+ <li key={item.name}>+ <Link+ href={createHref(item.href)}+ {...(domain !== "dub.co" && {+ onClick: () => {+ va.track("Referred from custom domain", {+ domain,+ medium: `footer item (${item.name})`,+ });+ },+ })}+ className="text-sm text-gray-500 hover:text-gray-800"+ >+ {item.name}+ </Link>+ </li>+ ))}+ </ul>+ </div>+ <div>+ <h3 className="text-sm font-semibold text-gray-800">Legal</h3>+ <ul role="list" className="mt-4 space-y-4">+ {navigation.legal.map((item) => (+ <li key={item.name}>+ <Link+ href={createHref(item.href)}+ {...(domain !== "dub.co" && {+ onClick: () => {+ va.track("Referred from custom domain", {+ domain,+ medium: `footer item (${item.name})`,+ });+ },+ })}+ className="text-sm text-gray-500 hover:text-gray-800"+ >+ {item.name}+ </Link>+ </li>+ ))}+ </ul>+ </div></div><div className="mt-10 md:mt-0">- <h3 className="text-sm font-semibold text-gray-600">Tools</h3>+ <h3 className="text-sm font-semibold text-gray-800">Tools</h3><ul role="list" className="mt-4 space-y-4">{navigation.tools.map((item) => (<li key={item.name}>@@ -186,7 +228,7 @@ export function Footer() {});},})}- className="text-sm text-gray-500 hover:text-gray-900"+ className="text-sm text-gray-500 hover:text-gray-800">{item.name}</Link>@@ -197,11 +239,13 @@ export function Footer() {</div></div></div>- <div className="mt-16 border-t border-gray-900/10 pt-8 sm:mt-20 lg:mt-24">- <p className="text-sm leading-5 text-gray-500">- © {new Date().getFullYear()} Dub Technologies, Inc.- </p>- </div>+ <Image+ src="https://d2vwwcvoksz7ty.cloudfront.net/footer.png"+ alt="Dub Technologies, Inc. Logo"+ width={1959}+ height={625}+ className="pointer-events-none absolute inset-x-0 bottom-0 z-0"+ /></MaxWidthWrapper></footer>);diff --git a/packages/ui/src/icons/index.tsx b/packages/ui/src/icons/index.tsxindex d02b29d62d..3f7d83dc07 100644--- a/packages/ui/src/icons/index.tsx+++ b/packages/ui/src/icons/index.tsx@@ -22,3 +22,4 @@ export { default as Google } from "./google";export { default as LinkedIn } from "./linkedin";export { default as Twitter } from "./twitter";export { default as Unsplash } from "./unsplash";+export { default as YouTube } from "./youtube";diff --git a/packages/ui/src/icons/linkedin.tsx b/packages/ui/src/icons/linkedin.tsxindex bd02370314..874b6cda2c 100644--- a/packages/ui/src/icons/linkedin.tsx+++ b/packages/ui/src/icons/linkedin.tsx@@ -1,10 +1,4 @@-export default function LinkedIn({- className,- fill = "#027ab5",-}: {- className?: string;- fill?: string;-}) {+export default function LinkedIn({ className }: { className?: string }) {return (<svgxmlns="http://www.w3.org/2000/svg"@@ -14,7 +8,7 @@ export default function LinkedIn({className={className}><path- fill={fill}+ fill="currentColor"d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg>diff --git a/packages/ui/src/icons/youtube.tsx b/packages/ui/src/icons/youtube.tsxnew file mode 100644index 0000000000..c7cec70cb5--- /dev/null+++ b/packages/ui/src/icons/youtube.tsx@@ -0,0 +1,45 @@+export default function YouTube({ className }: { className?: string }) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ version="1.1"+ width="256"+ height="256"+ viewBox="0 0 256 256"+ className={className}+ >+ <defs></defs>+ <g+ style={{+ stroke: "none",+ strokeWidth: 0,+ strokeDasharray: "none",+ strokeLinecap: "butt",+ strokeLinejoin: "miter",+ strokeMiterlimit: 10,+ fill: "none",+ fillRule: "nonzero",+ opacity: 1,+ }}+ transform="translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)"+ >+ <path+ d="M 88.119 23.338 c -1.035 -3.872 -4.085 -6.922 -7.957 -7.957 C 73.144 13.5 45 13.5 45 13.5 s -28.144 0 -35.162 1.881 c -3.872 1.035 -6.922 4.085 -7.957 7.957 C 0 30.356 0 45 0 45 s 0 14.644 1.881 21.662 c 1.035 3.872 4.085 6.922 7.957 7.957 C 16.856 76.5 45 76.5 45 76.5 s 28.144 0 35.162 -1.881 c 3.872 -1.035 6.922 -4.085 7.957 -7.957 C 90 59.644 90 45 90 45 S 90 30.356 88.119 23.338 z M 36 58.5 v -27 L 59.382 45 L 36 58.5 z"+ style={{+ stroke: "none",+ strokeWidth: 1,+ strokeDasharray: "none",+ strokeLinecap: "butt",+ strokeLinejoin: "miter",+ strokeMiterlimit: 10,+ fill: "rgb(0,0,0)",+ fillRule: "nonzero",+ opacity: 1,+ }}+ transform=" matrix(1 0 0 1 0 0) "+ strokeLinecap="round"+ />+ </g>+ </svg>+ );+}diff --git a/packages/utils/package.json b/packages/utils/package.jsonindex ebda2ed9a2..6ac019c724 100644--- a/packages/utils/package.json+++ b/packages/utils/package.json@@ -1,7 +1,7 @@{"name": "@dub/utils","description": "Utility functions and constants for Dub.co",- "version": "0.0.28",+ "version": "0.0.29","sideEffects": false,"main": "./dist/index.js","module": "./dist/index.mjs",diff --git a/packages/utils/src/constants/layout.ts b/packages/utils/src/constants/layout.tsindex b1c20e022e..965bed0768 100644--- a/packages/utils/src/constants/layout.ts+++ b/packages/utils/src/constants/layout.ts@@ -7,10 +7,16 @@ export const HIDE_BACKGROUND_SEGMENTS = [];export const ALL_TOOLS = [+ { name: "Spotify Link Shortener", slug: "spotify-link-shortener" },{ name: "ChatGPT Link Shortener", slug: "chatgpt-link-shortener" },{ name: "Amazon Link Shortener", slug: "amazon-link-shortener" },- { name: "Spotify Link Shortener", slug: "spotify-link-shortener" },{ name: "Metatags API", slug: "metatags" },{ name: "QR Code API", slug: "qr-code" },{ name: "Link Inspector", slug: "inspector" },];++export const COMPARE_PAGES = [+ { name: "Bitly", slug: "bitly" },+ { name: "Rebrandly", slug: "rebrandly" },+ { name: "Short.io", slug: "short" },+];