The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Reposition Marketing
Steven Tey06e2c484287e
diff --git a/README.md b/README.mdindex 9483570172..1911367b5f 100644--- a/README.md+++ b/README.md@@ -1,10 +1,10 @@<a href="https://dub.sh">- <img alt="Dub – an open-source link shortener SaaS with built-in analytics + free custom domains." src="https://user-images.githubusercontent.com/28986134/200727801-6355c62e-60b5-45d7-a83d-44b11545e471.png">+ <img alt="Dub – an open-source link management tool for modern marketing teams to create, share, and track short links." src="https://user-images.githubusercontent.com/28986134/200727801-6355c62e-60b5-45d7-a83d-44b11545e471.png"><h1 align="center">Dub</h1></a><p align="center">- An open-source link shortener SaaS with built-in analytics + free custom domains.+ An open-source link management tool for modern marketing teams to create, share, and track short links.</p><p align="center">@@ -28,7 +28,7 @@## Introduction-Dub is an open-source link shortener with built-in analytics + free custom domains. Built with [Vercel Edge Functions](http://vercel.com/edge), [Upstash Redis](https://docs.upstash.com/redis), and [Planetscale MySQL](https://planetscale.com/).+Dub is an open-source link management tool for modern marketing teams to create, share, and track short links. Built with [Vercel Edge Functions](http://vercel.com/edge), [Upstash Redis](https://docs.upstash.com/redis), and [Planetscale MySQL](https://planetscale.com/).Here are some of the features that Dub provides out-of-the-box:diff --git a/components/app/links/link-card.tsx b/components/app/links/link-card.tsxindex 9df88d5c5e..bebca70d14 100644--- a/components/app/links/link-card.tsx+++ b/components/app/links/link-card.tsx@@ -14,7 +14,6 @@ import {Chart,Delete,Edit,- Eye,LoadingDots,QR,ThreeDots,@@ -147,18 +146,6 @@ export default function LinkCard({ props }: { props: LinkProps }) {<span className="ml-1 hidden sm:inline-block">clicks</span></p></Link>- {title && description && image && (- <a- href={`https://${domain || "dub.sh"}/_proxy/${- domain || "dub.sh"- }/${encodeURI(key)}`}- target="_blank"- rel="noreferrer"- className="group rounded-full bg-gray-100 p-1.5 transition-all duration-75 hover:scale-105 hover:bg-blue-100 active:scale-95"- >- <Eye className="text-gray-700 transition-all group-hover:text-blue-800" />- </a>- )}</div><h3 className="max-w-[200px] truncate text-sm font-medium text-gray-700 md:max-w-md lg:max-w-2xl xl:max-w-3xl">{url}diff --git a/components/app/modals/add-edit-link-modal/advanced-settings.tsx b/components/app/modals/add-edit-link-modal/advanced-settings.tsxindex 6014ade819..f876ce0173 100644--- a/components/app/modals/add-edit-link-modal/advanced-settings.tsx+++ b/components/app/modals/add-edit-link-modal/advanced-settings.tsx@@ -23,8 +23,6 @@ export default function AdvancedSettings({data: LinkProps;setData: Dispatch<SetStateAction<LinkProps>>;}) {- const [expanded, setExpanded] = useState(false);-const { url, title, description, image, password, expiresAt } = data;const { utm_source, utm_medium, utm_campaign } = useMemo(() => {@@ -33,128 +31,27 @@ export default function AdvancedSettings({return (<div>- <div className="px-4 sm:px-16">- <button- type="button"- className="flex items-center space-x-2"- onClick={() => setExpanded(!expanded)}+ <div className="relative">+ <div+ className="absolute inset-0 flex items-center px-4 sm:px-16"+ aria-hidden="true">- <ChevronRight- className={`h-5 w-5 text-gray-600 ${- expanded ? "rotate-90" : ""- } transition-all`}- />- <p className="text-sm text-gray-600">Advanced options</p>- </button>+ <div className="w-full border-t border-gray-300" />+ </div>+ <div className="relative flex justify-center">+ <span className="bg-white px-2 text-sm text-gray-500">Optional</span>+ </div></div>- {expanded && (- <motion.div key="accordion-root" {...AnimationSettings}>- <AccordionPrimitive.Root- type="single"- collapsible={true}- className="mt-4 grid border-t border-b border-gray-200 bg-white px-2 py-8 sm:px-8"- >- {/* UTM Builder Section */}- <AccordionPrimitive.Item- value="utm"- className="rounded-t-lg border border-gray-200"- >- <AccordionPrimitive.Header>- <AccordionPrimitive.Trigger className="group flex w-full items-center justify-between space-x-2 rounded-t-lg p-5 text-left transition-all duration-75 hover:bg-gray-50 focus:outline-black active:bg-gray-100">- <div className="flex h-6 items-center justify-start space-x-2">- <ChevronRight className="h-5 w-5 shrink-0 text-gray-700 transition-all ease-in-out group-radix-state-open:rotate-90" />- <span className="text-sm font-medium text-gray-900">- UTM Builder- </span>- </div>- {utm_source && utm_medium && utm_campaign && (- <CheckCircleFill className="h-6 w-6 text-black" />- )}- </AccordionPrimitive.Trigger>- </AccordionPrimitive.Header>- <AccordionPrimitive.Content className="pb-3">- <UTMSection {...{ data, setData }} />- </AccordionPrimitive.Content>- </AccordionPrimitive.Item>+ <div className="mt-4 grid px-4 sm:px-16">+ <UTMSection {...{ data, setData }} />- {/* OG Tags Section */}- <AccordionPrimitive.Item- value="og"- className="border border-t-0 border-gray-200"- >- <AccordionPrimitive.Header>- <AccordionPrimitive.Trigger className="group flex w-full items-center justify-between space-x-2 p-5 text-left transition-all duration-75 hover:bg-gray-50 focus:outline-black active:bg-gray-100">- <div className="flex h-6 items-center justify-start space-x-2">- <ChevronRight className="h-5 w-5 shrink-0 text-gray-700 transition-all ease-in-out group-radix-state-open:rotate-90" />- <span className="text-sm font-medium text-gray-900">- Custom Social Previews- </span>- </div>- {title && description && image && (- <CheckCircleFill className="h-6 w-6 text-black" />- )}- </AccordionPrimitive.Trigger>- </AccordionPrimitive.Header>- <AccordionPrimitive.Content className="pb-3">- <OGSection {...{ data, setData }} />- </AccordionPrimitive.Content>- </AccordionPrimitive.Item>+ <OGSection {...{ data, setData }} />- {/* Password Protection */}- <AccordionPrimitive.Item- value="password"- className="border border-t-0 border-gray-200"- >- <AccordionPrimitive.Header>- <AccordionPrimitive.Trigger className="group flex w-full items-center justify-between space-x-2 p-5 text-left transition-all duration-75 hover:bg-gray-50 focus:outline-black active:bg-gray-100">- <div className="flex h-6 items-center justify-start space-x-2">- <ChevronRight className="h-5 w-5 shrink-0 text-gray-700 transition-all ease-in-out group-radix-state-open:rotate-90" />- <span className="text-sm font-medium text-gray-900">- Password Protection- </span>- </div>- {password && (- <CheckCircleFill className="h-6 w-6 text-black" />- )}- </AccordionPrimitive.Trigger>- </AccordionPrimitive.Header>- <AccordionPrimitive.Content className="px-5 pb-3">- <PasswordSection {...{ data, setData }} />- </AccordionPrimitive.Content>- </AccordionPrimitive.Item>+ <PasswordSection {...{ data, setData }} />- {/* Expiration Date */}- <AccordionPrimitive.Item- value="expire"- className="overflow-hidden rounded-b-lg border border-t-0 border-gray-200"- >- <AccordionPrimitive.Header>- <AccordionPrimitive.Trigger className="group flex w-full items-center justify-between space-x-2 p-5 text-left transition-all duration-75 hover:bg-gray-50 focus:outline-black active:bg-gray-100">- <div className="flex h-6 items-center justify-start space-x-2">- <ChevronRight className="h-5 w-5 shrink-0 text-gray-700 transition-all ease-in-out group-radix-state-open:rotate-90" />- <span className="text-sm font-medium text-gray-900">- Expiration Date- </span>- {expiresAt &&- new Date().getTime() > new Date(expiresAt).getTime() && (- <span className="bg-amber-500 px-2 py-0.5 text-xs uppercase text-white">- Expired- </span>- )}- </div>- {expiresAt && (- <CheckCircleFill className="h-6 w-6 text-black" />- )}- </AccordionPrimitive.Trigger>- </AccordionPrimitive.Header>- <AccordionPrimitive.Content className="px-5 pb-3">- <ExpirationSection {...{ data, setData }} />- </AccordionPrimitive.Content>- </AccordionPrimitive.Item>- </AccordionPrimitive.Root>- </motion.div>- )}+ <ExpirationSection {...{ data, setData }} />+ </div></div>);}diff --git a/components/app/modals/add-edit-link-modal/index.tsx b/components/app/modals/add-edit-link-modal/index.tsxindex e9155e9956..5b4948394f 100644--- a/components/app/modals/add-edit-link-modal/index.tsx+++ b/components/app/modals/add-edit-link-modal/index.tsx@@ -140,28 +140,51 @@ function AddEditLinkModal({setShowModal={setShowAddEditLinkModal}closeWithX={true}>- <div className="inline-block max-h-[calc(100vh-50px)] w-full transform overflow-scroll bg-white align-middle shadow-xl transition-all sm:max-w-md sm:rounded-2xl sm:border sm:border-gray-200">- {!hideXButton && (+ <div className="grid w-full grid-cols-5 divide-x divide-gray-100 bg-white shadow-xl transition-all sm:max-w-screen-lg sm:rounded-2xl sm:border sm:border-gray-200">+ {/* {!hideXButton && (<buttononClick={() => setShowAddEditLinkModal(false)}className="group absolute top-0 right-0 m-3 hidden rounded-full p-2 text-gray-500 transition-all duration-75 hover:bg-gray-100 focus:outline-none active:bg-gray-200 sm:block"><X className="h-5 w-5" /></button>- )}+ )} */}- <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 px-4 pt-10 pb-8 sm:px-16">- <BlurImage- src={heroProps.avatar}- alt={heroProps.alt}- className="h-10 w-10 rounded-full"- width={20}- height={20}- />- <h3 className="text-lg font-medium">{heroProps.copy}</h3>- </div>+ <div className="col-span-3 max-h-[80vh] overflow-scroll rounded-l-2xl">+ {/* <div className="flex items-center justify-center space-x-3 border-b border-gray-200 py-5 px-4 sm:px-16">+ <div className="relative flex w-full items-center">+ <BlurImage+ src={heroProps.avatar}+ alt={heroProps.alt}+ className="absolute inset-y-0 left-0 my-2.5 ml-3 h-5 w-5 rounded-full"+ width={20}+ height={20}+ />+ <input+ type="url"+ placeholder="Shorten your link"+ value={url}+ onChange={(e) => {+ setKeyExistsError(false);+ setData({ ...data, url: e.target.value });+ }}+ required+ className="peer block w-full rounded-md border border-gray-100 bg-gray-50 p-2 pl-10 text-sm placeholder:text-gray-400 focus:border-black focus:bg-white focus:outline-none focus:ring-0"+ />+ </div>+ </div> */}+ <div className="sticky top-0 z-10 flex flex-col items-center justify-center space-y-3 border-b border-gray-200 bg-white px-4 pt-10 pb-8 sm:px-16">+ <BlurImage+ src={heroProps.avatar}+ alt={heroProps.alt}+ className="h-10 w-10 rounded-full"+ width={20}+ height={20}+ />+ <h3 className="text-lg font-medium">{heroProps.copy}</h3>+ </div>- {id && (+ {/* {id && (<div className="absolute -mt-3.5 flex w-full justify-center space-x-2 [&>*]:flex [&>*]:h-7 [&>*]:items-center [&>*]:rounded-full [&>*]:px-4 [&>*]:text-xs [&>*]:uppercase [&>*]:text-white">{expired ? (<span className="bg-amber-500">Expired</span>@@ -170,172 +193,175 @@ function AddEditLinkModal({)}{archived && <span className="bg-gray-400">Archived</span>}</div>- )}-- <form- onSubmit={async (e) => {- e.preventDefault();- setSaving(true);- fetch(endpoint.url, {- method: endpoint.method,- headers: {- "Content-Type": "application/json",- },- body: JSON.stringify(data),- }).then((res) => {- setSaving(false);- if (res.status === 200) {- mutate(- domain- ? `/api/projects/${slug}/domains/${domain}/links${getQueryString(- router,- )}`- : `/api/links${getQueryString(router)}`,- );- if (router.asPath === "/welcome") {- router.push("/links").then(() => {+ )} */}+ <form+ onSubmit={async (e) => {+ e.preventDefault();+ setSaving(true);+ fetch(endpoint.url, {+ method: endpoint.method,+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify(data),+ }).then((res) => {+ setSaving(false);+ if (res.status === 200) {+ mutate(+ domain+ ? `/api/projects/${slug}/domains/${domain}/links${getQueryString(+ router,+ )}`+ : `/api/links${getQueryString(router)}`,+ );+ if (router.asPath === "/welcome") {+ router.push("/links").then(() => {+ setShowAddEditLinkModal(false);+ });+ } else {setShowAddEditLinkModal(false);- });+ }+ } else if (res.status === 403) {+ setKeyExistsError(true);+ } else if (res.status === 400) {+ setUrlError(true);} else {- setShowAddEditLinkModal(false);+ alert("Something went wrong");}- } else if (res.status === 403) {- setKeyExistsError(true);- } else if (res.status === 400) {- setUrlError(true);- } else {- alert("Something went wrong");- }- });- }}- className="grid gap-6 bg-gray-50 py-8"- >- <div className="grid gap-6 px-4 sm:px-16">- <div>- <div className="flex items-center justify-between">+ });+ }}+ className="grid gap-6 bg-gray-50 py-8"+ >+ <div className="grid gap-6 px-4 sm:px-16">+ <div>+ <div className="flex items-center justify-between">+ <label+ htmlFor="key"+ className="block text-sm font-medium text-gray-700"+ >+ Short Link+ </label>+ <button+ className="flex items-center space-x-2 text-sm text-gray-500 transition-all duration-75 hover:text-black active:scale-95"+ onClick={generateRandomSlug}+ disabled={generatingSlug}+ type="button"+ >+ {generatingSlug ? (+ <LoadingCircle />+ ) : (+ <Random className="h-3 w-3" />+ )}+ <p>{generatingSlug ? "Generating" : "Randomize"}</p>+ </button>+ </div>+ <div className="relative mt-1 flex rounded-md shadow-sm">+ <span className="inline-flex items-center whitespace-nowrap rounded-l-md border border-r-0 border-gray-300 bg-gray-50 px-5 text-gray-500 sm:text-sm">+ {domain || "dub.sh"}+ </span>+ <input+ type="text"+ name="key"+ id="key"+ required+ autoFocus={false}+ pattern="[\p{Letter}\p{Mark}\d-]+" // Unicode regex to match characters from all languages and numbers (and omit all symbols except for dashes)+ className={`${+ keyExistsError+ ? "border-red-300 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"+ : "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"+ } block w-full rounded-r-md pr-10 focus:outline-none sm:text-sm`}+ placeholder="github"+ value={key}+ onChange={(e) => {+ setKeyExistsError(false);+ setData({ ...data, key: e.target.value });+ }}+ aria-invalid="true"+ aria-describedby="key-error"+ />+ {keyExistsError && (+ <div className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3">+ <AlertCircleFill+ className="h-5 w-5 text-red-500"+ aria-hidden="true"+ />+ </div>+ )}+ </div>+ {keyExistsError && (+ <p className="mt-2 text-sm text-red-600" id="key-error">+ Short link is already in use.+ </p>+ )}+ </div>++ <div><label- htmlFor="key"+ htmlFor="url"className="block text-sm font-medium text-gray-700">- Short Link+ Destination URL</label>- <button- className="flex items-center space-x-2 text-sm text-gray-500 transition-all duration-75 hover:text-black active:scale-95"- onClick={generateRandomSlug}- disabled={generatingSlug}- type="button"- >- {generatingSlug ? (- <LoadingCircle />- ) : (- <Random className="h-3 w-3" />+ <div className="relative mt-1 flex rounded-md shadow-sm">+ <input+ name="url"+ id="url"+ type="url"+ required+ placeholder="https://github.com/steven-tey/dub"+ value={url}+ onChange={(e) => {+ setUrlError(false);+ setData({ ...data, url: e.target.value });+ }}+ className={`${+ urlError+ ? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"+ : "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"+ } block w-full rounded-md focus:outline-none sm:text-sm`}+ aria-invalid="true"+ />+ {urlError && (+ <div className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3">+ <AlertCircleFill+ className="h-5 w-5 text-red-500"+ aria-hidden="true"+ />+ </div>)}- <p>{generatingSlug ? "Generating" : "Randomize"}</p>- </button>- </div>- <div className="relative mt-1 flex rounded-md shadow-sm">- <span className="inline-flex items-center whitespace-nowrap rounded-l-md border border-r-0 border-gray-300 bg-gray-50 px-5 text-gray-500 sm:text-sm">- {domain || "dub.sh"}- </span>- <input- type="text"- name="key"- id="key"- required- autoFocus={false}- pattern="[\p{Letter}\p{Mark}\d-]+" // Unicode regex to match characters from all languages and numbers (and omit all symbols except for dashes)- className={`${- keyExistsError- ? "border-red-300 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"- : "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"- } block w-full rounded-r-md pr-10 focus:outline-none sm:text-sm`}- placeholder="github"- value={key}- onChange={(e) => {- setKeyExistsError(false);- setData({ ...data, key: e.target.value });- }}- aria-invalid="true"- aria-describedby="key-error"- />- {keyExistsError && (- <div className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3">- <AlertCircleFill- className="h-5 w-5 text-red-500"- aria-hidden="true"- />- </div>+ </div>+ {urlError && (+ <p className="mt-2 text-sm text-red-600" id="key-error">+ Invalid url.+ </p>)}</div>- {keyExistsError && (- <p className="mt-2 text-sm text-red-600" id="key-error">- Short link is already in use.- </p>- )}</div>- <div>- <label- htmlFor="url"- className="block text-sm font-medium text-gray-700"+ <AdvancedSettings data={data} setData={setData} />++ <div className="px-4 sm:px-16">+ <button+ disabled={saving || keyExistsError}+ className={`${+ saving || keyExistsError+ ? "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400"+ : "border-black bg-black text-white hover:bg-white hover:text-black"+ } flex h-10 w-full items-center justify-center rounded-md border text-sm transition-all focus:outline-none`}>- Destination URL- </label>- <div className="relative mt-1 flex rounded-md shadow-sm">- <input- name="url"- id="url"- type="url"- required- placeholder="https://github.com/steven-tey/dub"- value={url}- onChange={(e) => {- setUrlError(false);- setData({ ...data, url: e.target.value });- }}- className={`${- urlError- ? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"- : "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"- } block w-full rounded-md focus:outline-none sm:text-sm`}- aria-invalid="true"- />- {urlError && (- <div className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3">- <AlertCircleFill- className="h-5 w-5 text-red-500"- aria-hidden="true"- />- </div>+ {saving ? (+ <LoadingDots color="#808080" />+ ) : (+ <p className="text-sm">+ {props ? "Save changes" : "Add link"}+ </p>)}- </div>- {urlError && (- <p className="mt-2 text-sm text-red-600" id="key-error">- Invalid url.- </p>- )}+ </button></div>- </div>-- <AdvancedSettings data={data} setData={setData} />-- <div className="px-4 sm:px-16">- <button- disabled={saving || keyExistsError}- className={`${- saving || keyExistsError- ? "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400"- : "border-black bg-black text-white hover:bg-white hover:text-black"- } flex h-10 w-full items-center justify-center rounded-md border text-sm transition-all focus:outline-none`}- >- {saving ? (- <LoadingDots color="#808080" />- ) : (- <p className="text-sm">{props ? "Save changes" : "Add link"}</p>- )}- </button>- </div>- </form>+ </form>+ </div>+ <div className="col-span-2 rounded-r-2xl">preview</div></div></Modal>);diff --git a/components/app/modals/add-edit-link-modal/og-section.tsx b/components/app/modals/add-edit-link-modal/og-section.tsxindex fe3f15298d..605f5bca0e 100644--- a/components/app/modals/add-edit-link-modal/og-section.tsx+++ b/components/app/modals/add-edit-link-modal/og-section.tsx@@ -135,7 +135,7 @@ export default function OGSection({id="description"minRows={3}className="block w-full rounded-md border-gray-300 pr-10 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"- placeholder="Dub is an open-source link shortener SaaS with built-in analytics + free custom domains."+ placeholder="Dub is open-source link management tool for modern marketing teams to create, share, and track short links."value={description || ""}onChange={(e) => {setData({diff --git a/components/home/features.tsx b/components/home/features.tsxindex 9773d7970a..69b2841e6d 100644--- a/components/home/features.tsx+++ b/components/home/features.tsx@@ -5,6 +5,7 @@ import {QR,Users,Link as LinkIcon,+ Photo,} from "@/components/shared/icons";import MaxWidthWrapper from "@/components/shared/max-width-wrapper";import { useState } from "react";@@ -31,6 +32,7 @@ const featureList = [</Link>),demo: "https://d2vwwcvoksz7ty.cloudfront.net/analytics.mp4",+ thumbnail: "/_static/features/analytics.png",},{key: "domains",@@ -51,11 +53,29 @@ const featureList = [demo: "https://d2vwwcvoksz7ty.cloudfront.net/custom-domain.mp4",},{- key: "links",- title: "Links with superpowers",+ key: "social",+ title: "Custom social media cards",+ icon: <Photo className="h-5 w-5 text-gray-600" />,+ description:+ "Overlay custom OG images on your links to make them stand out on social media.",+ cta: (+ <a+ href="https://app.dub.sh"+ target="_blank"+ rel="noreferrer"+ className="block max-w-fit rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black"+ >+ Customize your links+ </a>+ ),+ demo: "https://d2vwwcvoksz7ty.cloudfront.net/og.mp4",+ },+ {+ key: "builder",+ title: "Powerful link builder",icon: <LinkIcon className="h-5 w-5 text-gray-600" />,description:- "Create links with custom social previews, UTM parameters, password protection, and expiration dates.",+ "Build your links with UTM parameters, password protection, and even expiration dates.",cta: (<ahref="https://app.dub.sh"@@ -63,9 +83,9 @@ const featureList = [rel="noreferrer"className="block max-w-fit rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black">- Create your project+ Build your link</a>- ), //custom cta+ ),demo: "https://d2vwwcvoksz7ty.cloudfront.net/og.mp4",},{@@ -186,9 +206,16 @@ export default function Features() {stiffness: 300,damping: 30,}}- className="min-h-[600px] w-full overflow-hidden whitespace-nowrap rounded-2xl bg-white shadow-2xl lg:mt-10 lg:w-[800px]"+ className="relative min-h-[600px] w-full overflow-hidden whitespace-nowrap rounded-2xl bg-white shadow-2xl lg:mt-10 lg:w-[800px]">- <video autoPlay muted loop>+ <video+ autoPlay+ muted+ loop+ width={800}+ height={600}+ poster={feature.thumbnail}+ ><source src={feature.demo} type="video/mp4" />Your browser does not support the video tag.</video>diff --git a/components/home/hero.tsx b/components/home/hero.tsxindex 79d60e6807..9aa68c79f8 100644--- a/components/home/hero.tsx+++ b/components/home/hero.tsx@@ -16,17 +16,17 @@ const Hero = () => {</p></a>- <h1 className="mt-5 font-display text-5xl font-extrabold leading-tight text-black sm:text-6xl sm:leading-tight">- Open Source+ <h1 className="mt-5 font-display text-5xl font-extrabold leading-[1.15] text-black sm:text-6xl sm:leading-[1.15]">+ Short Links With<br /><span className="bg-gradient-to-r from-amber-500 via-orange-600 to-yellow-500 bg-clip-text text-transparent">- Bitly Alternative+ Superpowers</span></h1>- <p className="mt-5 text-xl text-gray-600 sm:text-2xl">- Dub is an open-source link shortener with built-in analytics and free- custom domains.- </p>+ <h2 className="mt-5 text-lg text-gray-600 sm:text-xl">+ Dub is an open-source link management tool for modern marketing teams to+ create, share, and track short links.+ </h2><div className="mx-auto mt-10 flex max-w-fit space-x-4"><Linkdiff --git a/components/layout/meta.tsx b/components/layout/meta.tsxindex de56f9b006..03d66838d1 100644--- a/components/layout/meta.tsx+++ b/components/layout/meta.tsx@@ -2,8 +2,8 @@ import Head from "next/head";import { FAVICON_FOLDER } from "@/lib/constants";export default function Meta({- title = "Dub - Open-Source Bitly Alternative",- description = "An open-source link shortener SaaS with built-in analytics and free custom domains.",+ title = "Dub - Link Management for Modern Marketing Teams",+ description = "Dub is an open-source link management tool for modern marketing teams to create, share, and track short links.",image = "https://dub.sh/_static/thumbnail.png",}: {title?: string;diff --git a/prisma/schema.prisma b/prisma/schema.prismaindex 547ff0a366..2f84bb0628 100644--- a/prisma/schema.prisma+++ b/prisma/schema.prisma@@ -136,7 +136,7 @@ model Link {// Custom OG tags – if not set, will use OG tags from target urltitle String? // OG title for the link (e.g. Dub - Open-Source Bitly Alternative)- description String? // OG description for the link (e.g. An open-source link shortener SaaS with built-in analytics and free custom domains.)+ description String? // OG description for the link (e.g. An open-source link management tool for modern marketing teams to create, share, and track short links.)image String? // OG image for the link (e.g. https://dub.sh/og-image.png)// UTM parametersdiff --git a/public/_static/features/analytics.png b/public/_static/features/analytics.pngnew file mode 100644index 0000000000..3eabfb5397Binary files /dev/null and b/public/_static/features/analytics.png differ