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.

added video demo modal

Steven Teybb7a2c549df9
diff --git a/app/dub.co/features/[slug]/page.tsx b/app/dub.co/features/[slug]/page.tsx
index f5ec02d2d5..77ec265e26 100644
--- a/app/dub.co/features/[slug]/page.tsx
+++ b/app/dub.co/features/[slug]/page.tsx
@@ -1,12 +1,12 @@
-import { APP_DOMAIN, DUB_THUMBNAIL } from "#/lib/constants";
+import { APP_DOMAIN } from "#/lib/constants";
import { FEATURES_LIST } from "#/lib/constants/content";
import { constructMetadata } from "#/lib/utils";
import BlurImage from "#/ui/blur-image";
import CTA from "#/ui/home/cta";
import Logos from "#/ui/home/logos";
-import MaxWidthWrapper from "@/components/shared/max-width-wrapper";
import { PlayCircle } from "lucide-react";
import { notFound } from "next/navigation";
+import DemoVideo from "./video";
export function generateMetadata({
params,
@@ -38,12 +38,12 @@ export default function FeaturePage({
return (
<>
<div className="mx-auto mt-12 max-w-md px-2.5 text-center sm:max-w-lg sm:px-0">
- <h1 className="mt-5 font-display text-3xl font-extrabold leading-[1.15] text-black sm:text-5xl sm:leading-[1.15]">
+ <h1 className="mt-5 font-display text-3xl font-extrabold leading-[1.15] text-black [text-wrap:balance] sm:text-5xl sm:leading-[1.15]">
{data.title}
</h1>
- <h2 className="mt-5 text-gray-600 sm:text-xl">{data.description}</h2>
+ <p className="mt-5 text-gray-600 sm:text-xl">{data.description}</p>
- <div className="mx-auto mt-10 flex max-w-fit space-x-4">
+ <div className="mx-auto mt-5 flex max-w-fit space-x-4">
<a
href={`${APP_DOMAIN}/register`}
className="rounded-full border border-black bg-black px-5 py-2 text-sm text-white shadow-lg transition-all hover:bg-white hover:text-black"
@@ -61,15 +61,15 @@ export default function FeaturePage({
</a>
</div>
</div>
- <MaxWidthWrapper className="mt-10">
+ <div className="relative mx-auto mt-10 max-w-screen-lg overflow-hidden border border-b-0 border-gray-200 lg:rounded-t-lg">
+ <DemoVideo url={data.videoUrl} />
<BlurImage
- src={data.thumbnail || DUB_THUMBNAIL}
+ src={data.thumbnail}
alt={data.title}
- className="mx-auto rounded-t-lg border border-b-0 border-gray-200"
width={1735}
height={990}
/>
- </MaxWidthWrapper>
+ </div>
<div className="border-y border-gray-200 bg-white/10 py-8 shadow-[inset_10px_-50px_94px_0_rgb(199,199,199,0.2)] backdrop-blur">
<Logos />
</div>
diff --git a/app/dub.co/features/[slug]/video.tsx b/app/dub.co/features/[slug]/video.tsx
new file mode 100644
index 0000000000..e4bc670537
--- /dev/null
+++ b/app/dub.co/features/[slug]/video.tsx
@@ -0,0 +1,51 @@
+"use client";
+
+import BlurImage from "#/ui/blur-image";
+import Modal from "#/ui/modal";
+import { Play } from "lucide-react";
+import { useState } from "react";
+
+export default function DemoVideo({ url }: { url: string }) {
+ const [showModal, setShowModal] = useState(false);
+ return (
+ <>
+ <Modal
+ className="max-w-screen-xl"
+ dialogOnly
+ showModal={showModal}
+ setShowModal={setShowModal}
+ >
+ <iframe
+ className="aspect-video h-full w-full"
+ src={url}
+ title="YouTube video player"
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
+ allowFullScreen
+ />
+ </Modal>
+ <button
+ onClick={() => setShowModal(true)}
+ className="group absolute inset-0 z-10 flex h-full w-full items-center justify-center bg-black bg-opacity-0 transition-all duration-300 hover:bg-opacity-5 focus:outline-none"
+ >
+ <div className="flex flex-col items-center space-y-4">
+ <div className="rounded-full bg-gradient-to-tr from-black to-gray-700 p-5 ring-[6px] ring-gray-300 transition-all duration-300 group-hover:scale-110 group-hover:ring-4 group-active:scale-90">
+ <Play className="h-5 w-5 text-white" fill="currentColor" />
+ </div>
+ <div className="flex rounded-full border border-gray-200 bg-white p-2 shadow-xl group-hover:shadow-2xl">
+ <BlurImage
+ src="https://d2vwwcvoksz7ty.cloudfront.net/author/steventey.jpg"
+ alt="Steven Tey"
+ width={36}
+ height={36}
+ className="h-10 w-10 rounded-full"
+ />
+ <div className="ml-2 mr-4 flex flex-col text-left">
+ <p className="text-sm font-medium text-gray-500">Watch Demo</p>
+ <p className="text-sm text-blue-500">2:30</p>
+ </div>
+ </div>
+ </div>
+ </button>
+ </>
+ );
+}
diff --git a/app/ui/home/cta.tsx b/app/ui/home/cta.tsx
index c3b7b7b6b6..6bacadfa1d 100644
--- a/app/ui/home/cta.tsx
+++ b/app/ui/home/cta.tsx
@@ -36,7 +36,7 @@ const Dashboard = () => {
<mask id="path-1-inside-1_2322_265" fill="white">
<path d="M0 262H1512V835H0V262Z" />
</mask>
- <path d="M0 262H1512V835H0V262Z" fill="white" fill-opacity="0.35" />
+ <path d="M0 262H1512V835H0V262Z" fill="white" fillOpacity="0.35" />
<path
d="M1511 262V835H1513V262H1511ZM1 835V262H-1V835H1Z"
fill="#DDDDDD"
@@ -47,7 +47,7 @@ const Dashboard = () => {
<path
d="M0 10C0 4.47716 4.47715 0 10 0H1502C1507.52 0 1512 4.47715 1512 10V262H0V10Z"
fill="white"
- fill-opacity="0.2"
+ fillOpacity="0.2"
/>
<path
d="M10 0.5H1502C1507.25 0.5 1511.5 4.75329 1511.5 10V261.5H0.5V10C0.5 4.7533 4.75329 0.5 10 0.5Z"
@@ -61,7 +61,7 @@ const Dashboard = () => {
height="39"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<g filter="url(#filter2_d_2322_265)">
@@ -72,8 +72,8 @@ const Dashboard = () => {
height="84"
rx="5"
fill="white"
- fill-opacity="0.5"
- shape-rendering="crispEdges"
+ fillOpacity="0.5"
+ shapeRendering="crispEdges"
/>
<rect
x="523.5"
@@ -82,7 +82,7 @@ const Dashboard = () => {
height="83"
rx="4.5"
stroke="#DDDDDD"
- shape-rendering="crispEdges"
+ shapeRendering="crispEdges"
/>
</g>
<rect
@@ -92,7 +92,7 @@ const Dashboard = () => {
height="19"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<rect
@@ -102,7 +102,7 @@ const Dashboard = () => {
height="19"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<rect
@@ -112,7 +112,7 @@ const Dashboard = () => {
height="15"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -120,7 +120,7 @@ const Dashboard = () => {
cy="385"
r="20.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -128,7 +128,7 @@ const Dashboard = () => {
cy="370"
r="9.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -136,7 +136,7 @@ const Dashboard = () => {
cy="370"
r="9.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<g filter="url(#filter3_d_2322_265)">
@@ -147,8 +147,8 @@ const Dashboard = () => {
height="84"
rx="5"
fill="white"
- fill-opacity="0.5"
- shape-rendering="crispEdges"
+ fillOpacity="0.5"
+ shapeRendering="crispEdges"
/>
<rect
x="523.5"
@@ -157,7 +157,7 @@ const Dashboard = () => {
height="83"
rx="4.5"
stroke="#DDDDDD"
- shape-rendering="crispEdges"
+ shapeRendering="crispEdges"
/>
</g>
<rect
@@ -167,7 +167,7 @@ const Dashboard = () => {
height="19"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<rect
@@ -177,7 +177,7 @@ const Dashboard = () => {
height="19"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<rect
@@ -187,7 +187,7 @@ const Dashboard = () => {
height="15"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -195,7 +195,7 @@ const Dashboard = () => {
cy="480"
r="20.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -203,7 +203,7 @@ const Dashboard = () => {
cy="465"
r="9.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -211,7 +211,7 @@ const Dashboard = () => {
cy="465"
r="9.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<g filter="url(#filter4_d_2322_265)">
@@ -222,8 +222,8 @@ const Dashboard = () => {
height="84"
rx="5"
fill="white"
- fill-opacity="0.5"
- shape-rendering="crispEdges"
+ fillOpacity="0.5"
+ shapeRendering="crispEdges"
/>
<rect
x="523.5"
@@ -232,7 +232,7 @@ const Dashboard = () => {
height="83"
rx="4.5"
stroke="#DDDDDD"
- shape-rendering="crispEdges"
+ shapeRendering="crispEdges"
/>
</g>
<rect
@@ -242,7 +242,7 @@ const Dashboard = () => {
height="19"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<rect
@@ -252,7 +252,7 @@ const Dashboard = () => {
height="19"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<rect
@@ -262,7 +262,7 @@ const Dashboard = () => {
height="15"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -270,7 +270,7 @@ const Dashboard = () => {
cy="575"
r="20.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -278,7 +278,7 @@ const Dashboard = () => {
cy="560"
r="9.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -286,7 +286,7 @@ const Dashboard = () => {
cy="560"
r="9.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<g filter="url(#filter5_d_2322_265)">
@@ -297,8 +297,8 @@ const Dashboard = () => {
height="84"
rx="5"
fill="white"
- fill-opacity="0.5"
- shape-rendering="crispEdges"
+ fillOpacity="0.5"
+ shapeRendering="crispEdges"
/>
<rect
x="523.5"
@@ -307,7 +307,7 @@ const Dashboard = () => {
height="83"
rx="4.5"
stroke="#DDDDDD"
- shape-rendering="crispEdges"
+ shapeRendering="crispEdges"
/>
</g>
<rect
@@ -317,7 +317,7 @@ const Dashboard = () => {
height="19"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<rect
@@ -327,7 +327,7 @@ const Dashboard = () => {
height="19"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<rect
@@ -337,7 +337,7 @@ const Dashboard = () => {
height="15"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -345,7 +345,7 @@ const Dashboard = () => {
cy="670"
r="20.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -353,7 +353,7 @@ const Dashboard = () => {
cy="655"
r="9.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -361,7 +361,7 @@ const Dashboard = () => {
cy="655"
r="9.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<g filter="url(#filter6_d_2322_265)">
@@ -372,8 +372,8 @@ const Dashboard = () => {
height="84"
rx="5"
fill="white"
- fill-opacity="0.5"
- shape-rendering="crispEdges"
+ fillOpacity="0.5"
+ shapeRendering="crispEdges"
/>
<rect
x="523.5"
@@ -382,7 +382,7 @@ const Dashboard = () => {
height="83"
rx="4.5"
stroke="#DDDDDD"
- shape-rendering="crispEdges"
+ shapeRendering="crispEdges"
/>
</g>
<rect
@@ -392,7 +392,7 @@ const Dashboard = () => {
height="19"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<rect
@@ -402,7 +402,7 @@ const Dashboard = () => {
height="19"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<rect
@@ -412,7 +412,7 @@ const Dashboard = () => {
height="15"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -420,7 +420,7 @@ const Dashboard = () => {
cy="765"
r="20.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -428,7 +428,7 @@ const Dashboard = () => {
cy="750"
r="9.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -436,7 +436,7 @@ const Dashboard = () => {
cy="750"
r="9.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<g filter="url(#filter7_d_2322_265)">
@@ -447,8 +447,8 @@ const Dashboard = () => {
height="443"
rx="5"
fill="white"
- fill-opacity="0.5"
- shape-rendering="crispEdges"
+ fillOpacity="0.5"
+ shapeRendering="crispEdges"
/>
<rect
x="196.5"
@@ -457,7 +457,7 @@ const Dashboard = () => {
height="442"
rx="4.5"
stroke="#DDDDDD"
- shape-rendering="crispEdges"
+ shapeRendering="crispEdges"
/>
</g>
<rect
@@ -474,7 +474,7 @@ const Dashboard = () => {
cy="37"
r="20.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<circle
@@ -482,7 +482,7 @@ const Dashboard = () => {
cy="39"
r="15.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<rect
@@ -492,7 +492,7 @@ const Dashboard = () => {
height="16"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<rect
@@ -502,7 +502,7 @@ const Dashboard = () => {
height="22"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<rect
@@ -512,7 +512,7 @@ const Dashboard = () => {
height="22"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<rect
@@ -522,7 +522,7 @@ const Dashboard = () => {
height="39"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<rect
@@ -532,7 +532,7 @@ const Dashboard = () => {
height="22"
rx="4.5"
fill="#E8E9ED"
- fill-opacity="0.5"
+ fillOpacity="0.5"
stroke="#DDDDDD"
/>
<line y1="117.5" x2="1512" y2="117.5" stroke="#DDDDDD" />
@@ -542,7 +542,7 @@ const Dashboard = () => {
x2="267"
y2="116.5"
stroke="#DDDDDD"
- stroke-width="3"
+ strokeWidth="3"
/>
<path
d="M220.126 48.2958H220.626V47.7958V26.1198C224.772 28.9023 227.5 33.6329 227.5 39C227.5 47.5604 220.56 54.5 212 54.5C203.44 54.5 196.5 47.5604 196.5 39C196.5 30.4396 203.44 23.5 212 23.5C213.362 23.5 214.682 23.6755 215.94 24.0049V32.0277C214.736 31.3996 213.367 31.0445 211.916 31.0445C207.106 31.0445 203.207 34.9438 203.207 39.7539C203.207 44.564 207.106 48.4634 211.916 48.4634C213.367 48.4634 214.736 48.1082 215.94 47.4801V47.7958V48.2958H216.44H220.126Z"
@@ -557,9 +557,9 @@ const Dashboard = () => {
width="1532"
height="593"
filterUnits="userSpaceOnUse"
- color-interpolation-filters="sRGB"
+ colorInterpolationFilters="sRGB"
>
- <feFlood flood-opacity="0" result="BackgroundImageFix" />
+ <feFlood floodOpacity="0" result="BackgroundImageFix" />
<feGaussianBlur in="BackgroundImageFix" stdDeviation="5" />
<feComposite
in2="SourceAlpha"
@@ -580,9 +580,9 @@ const Dashboard = () => {
width="1532"
height="282"
filterUnits="userSpaceOnUse"
- color-interpolation-filters="sRGB"
+ colorInterpolationFilters="sRGB"
>
- <feFlood flood-opacity="0" result="BackgroundImageFix" />
+ <feFlood floodOpacity="0" result="BackgroundImageFix" />
<feGaussianBlur in="BackgroundImageFix" stdDeviation="5" />
<feComposite
in2="SourceAlpha"
@@ -603,9 +603,9 @@ const Dashboard = () => {
width="809"
height="104"
filterUnits="userSpaceOnUse"
- color-interpolation-filters="sRGB"
+ colorInterpolationFilters="sRGB"
>
- <feFlood flood-opacity="0" result="BackgroundImageFix" />
+ <feFlood floodOpacity="0" result="BackgroundImageFix" />
<feColorMatrix
in="SourceAlpha"
type="matrix"
@@ -638,9 +638,9 @@ const Dashboard = () => {
width="809"
height="104"
filterUnits="userSpaceOnUse"
- color-interpolation-filters="sRGB"
+ colorInterpolationFilters="sRGB"
>
- <feFlood flood-opacity="0" result="BackgroundImageFix" />
+ <feFlood floodOpacity="0" result="BackgroundImageFix" />
<feColorMatrix
in="SourceAlpha"
type="matrix"
@@ -673,9 +673,9 @@ const Dashboard = () => {
width="809"
height="104"
filterUnits="userSpaceOnUse"
- color-interpolation-filters="sRGB"
+ colorInterpolationFilters="sRGB"
>
- <feFlood flood-opacity="0" result="BackgroundImageFix" />
+ <feFlood floodOpacity="0" result="BackgroundImageFix" />
<feColorMatrix
in="SourceAlpha"
type="matrix"
@@ -708,9 +708,9 @@ const Dashboard = () => {
width="809"
height="104"
filterUnits="userSpaceOnUse"
- color-interpolation-filters="sRGB"
+ colorInterpolationFilters="sRGB"
>
- <feFlood flood-opacity="0" result="BackgroundImageFix" />
+ <feFlood floodOpacity="0" result="BackgroundImageFix" />
<feColorMatrix
in="SourceAlpha"
type="matrix"
@@ -743,9 +743,9 @@ const Dashboard = () => {
width="809"
height="104"
filterUnits="userSpaceOnUse"
- color-interpolation-filters="sRGB"
+ colorInterpolationFilters="sRGB"
>
- <feFlood flood-opacity="0" result="BackgroundImageFix" />
+ <feFlood floodOpacity="0" result="BackgroundImageFix" />
<feColorMatrix
in="SourceAlpha"
type="matrix"
@@ -778,9 +778,9 @@ const Dashboard = () => {
width="323"
height="463"
filterUnits="userSpaceOnUse"
- color-interpolation-filters="sRGB"
+ colorInterpolationFilters="sRGB"
>
- <feFlood flood-opacity="0" result="BackgroundImageFix" />
+ <feFlood floodOpacity="0" result="BackgroundImageFix" />
<feColorMatrix
in="SourceAlpha"
type="matrix"
diff --git a/app/ui/modal.tsx b/app/ui/modal.tsx
index 49de31d35e..26484e909b 100644
--- a/app/ui/modal.tsx
+++ b/app/ui/modal.tsx
@@ -9,16 +9,18 @@ import useMediaQuery from "#/lib/hooks/use-media-query";
export default function Modal({
children,
+ className,
+ dialogOnly,
showModal,
setShowModal,
- className,
onClose,
preventDefaultClose,
}: {
children: React.ReactNode;
+ className?: string;
+ dialogOnly?: boolean;
showModal?: boolean;
setShowModal?: Dispatch<SetStateAction<boolean>>;
- className?: string;
onClose?: () => void;
preventDefaultClose?: boolean;
}) {
@@ -41,7 +43,7 @@ export default function Modal({
};
const { isMobile } = useMediaQuery();
- if (isMobile) {
+ if (isMobile && !dialogOnly) {
return (
<Drawer.Root
open={setShowModal ? showModal : true}
@@ -81,13 +83,13 @@ export default function Modal({
<Dialog.Portal>
<Dialog.Overlay
id="modal-backdrop"
- className="fixed inset-0 z-40 hidden animate-fade-in bg-gray-100 bg-opacity-50 backdrop-blur-md md:block"
+ className="fixed inset-0 z-40 animate-fade-in bg-gray-100 bg-opacity-50 backdrop-blur-md"
/>
<Dialog.Content
onOpenAutoFocus={(e) => e.preventDefault()}
onCloseAutoFocus={(e) => e.preventDefault()}
className={cn(
- "fixed inset-0 z-40 m-auto hidden max-h-fit w-full max-w-md animate-scale-in overflow-hidden rounded-2xl border border-gray-200 bg-white p-0 shadow-xl md:block",
+ "fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md animate-scale-in overflow-hidden border border-gray-200 bg-white p-0 shadow-xl md:rounded-2xl",
className,
)}
>
diff --git a/lib/constants/content.tsx b/lib/constants/content.tsx
index 4ea255de61..f5af6aef50 100644
--- a/lib/constants/content.tsx
+++ b/lib/constants/content.tsx
@@ -118,6 +118,8 @@ export const FEATURES_LIST = [
slug: "analytics",
thumbnail:
"https://media.cleanshot.cloud/media/42580/FUSjMlxa2Xqne98F9KO5i960094hS5XinPIfgC9r.jpeg?Expires=1693806001&Signature=H5-txoTKREO1I7R-X05XDKQK2lS6EdMjnmb5MSTgfAsx-cJ4gXipCu99TZxJovoFGyBy2yLnVn3WrBhRtr~XkAhk0REtXrtLCpRe~dy0WJymLacZ-joGNIT203o5TptMueNAhWJIzdURsVJTl7VkU94BFHKCt31am8UuAIm8hh-ZI3YnjIteS9lNe4c2AJ2c6pDecNLjdG8OG6VeddSW29Lgehqdx4c3qKSTSbaL8fH0Hn-ez4spG4iHBgOXerY1R2kvaVaxjY6qN1OFZ9dWjiDIFAGo~MggxxNn8zSKwJHTtCqzKG9EYP-dozIjb-kmmlao0eolGHi1bh9tVUofuA__&Key-Pair-Id=K269JMAT9ZF4GZ",
+ videoUrl:
+ "https://www.youtube.com/embed/m062ApqcRow?si=8FRndy4ABWPTioHU&autoplay=1",
},
{
title: "Branded Links that Stand Out",
@@ -129,6 +131,8 @@ export const FEATURES_LIST = [
slug: "branded-links",
thumbnail:
"https://media.cleanshot.cloud/media/42580/FUSjMlxa2Xqne98F9KO5i960094hS5XinPIfgC9r.jpeg?Expires=1693806001&Signature=H5-txoTKREO1I7R-X05XDKQK2lS6EdMjnmb5MSTgfAsx-cJ4gXipCu99TZxJovoFGyBy2yLnVn3WrBhRtr~XkAhk0REtXrtLCpRe~dy0WJymLacZ-joGNIT203o5TptMueNAhWJIzdURsVJTl7VkU94BFHKCt31am8UuAIm8hh-ZI3YnjIteS9lNe4c2AJ2c6pDecNLjdG8OG6VeddSW29Lgehqdx4c3qKSTSbaL8fH0Hn-ez4spG4iHBgOXerY1R2kvaVaxjY6qN1OFZ9dWjiDIFAGo~MggxxNn8zSKwJHTtCqzKG9EYP-dozIjb-kmmlao0eolGHi1bh9tVUofuA__&Key-Pair-Id=K269JMAT9ZF4GZ",
+ videoUrl:
+ "https://www.youtube.com/embed/m062ApqcRow?si=8FRndy4ABWPTioHU&autoplay=1",
},
{
title: "Free QR Code Generator",
@@ -140,6 +144,8 @@ export const FEATURES_LIST = [
slug: "qr-codes",
thumbnail:
"https://media.cleanshot.cloud/media/42580/FUSjMlxa2Xqne98F9KO5i960094hS5XinPIfgC9r.jpeg?Expires=1693806001&Signature=H5-txoTKREO1I7R-X05XDKQK2lS6EdMjnmb5MSTgfAsx-cJ4gXipCu99TZxJovoFGyBy2yLnVn3WrBhRtr~XkAhk0REtXrtLCpRe~dy0WJymLacZ-joGNIT203o5TptMueNAhWJIzdURsVJTl7VkU94BFHKCt31am8UuAIm8hh-ZI3YnjIteS9lNe4c2AJ2c6pDecNLjdG8OG6VeddSW29Lgehqdx4c3qKSTSbaL8fH0Hn-ez4spG4iHBgOXerY1R2kvaVaxjY6qN1OFZ9dWjiDIFAGo~MggxxNn8zSKwJHTtCqzKG9EYP-dozIjb-kmmlao0eolGHi1bh9tVUofuA__&Key-Pair-Id=K269JMAT9ZF4GZ",
+ videoUrl:
+ "https://www.youtube.com/embed/m062ApqcRow?si=8FRndy4ABWPTioHU&autoplay=1",
},
{
title: "Personalize Your Short links",
@@ -151,6 +157,8 @@ export const FEATURES_LIST = [
slug: "personalization",
thumbnail:
"https://media.cleanshot.cloud/media/42580/FUSjMlxa2Xqne98F9KO5i960094hS5XinPIfgC9r.jpeg?Expires=1693806001&Signature=H5-txoTKREO1I7R-X05XDKQK2lS6EdMjnmb5MSTgfAsx-cJ4gXipCu99TZxJovoFGyBy2yLnVn3WrBhRtr~XkAhk0REtXrtLCpRe~dy0WJymLacZ-joGNIT203o5TptMueNAhWJIzdURsVJTl7VkU94BFHKCt31am8UuAIm8hh-ZI3YnjIteS9lNe4c2AJ2c6pDecNLjdG8OG6VeddSW29Lgehqdx4c3qKSTSbaL8fH0Hn-ez4spG4iHBgOXerY1R2kvaVaxjY6qN1OFZ9dWjiDIFAGo~MggxxNn8zSKwJHTtCqzKG9EYP-dozIjb-kmmlao0eolGHi1bh9tVUofuA__&Key-Pair-Id=K269JMAT9ZF4GZ",
+ videoUrl:
+ "https://www.youtube.com/embed/m062ApqcRow?si=8FRndy4ABWPTioHU&autoplay=1",
},
// { title: "Programmatic Link Creation", shortTitle: "API", slug: "api" },
{
@@ -163,5 +171,7 @@ export const FEATURES_LIST = [
slug: "collaboration",
thumbnail:
"https://media.cleanshot.cloud/media/42580/FUSjMlxa2Xqne98F9KO5i960094hS5XinPIfgC9r.jpeg?Expires=1693806001&Signature=H5-txoTKREO1I7R-X05XDKQK2lS6EdMjnmb5MSTgfAsx-cJ4gXipCu99TZxJovoFGyBy2yLnVn3WrBhRtr~XkAhk0REtXrtLCpRe~dy0WJymLacZ-joGNIT203o5TptMueNAhWJIzdURsVJTl7VkU94BFHKCt31am8UuAIm8hh-ZI3YnjIteS9lNe4c2AJ2c6pDecNLjdG8OG6VeddSW29Lgehqdx4c3qKSTSbaL8fH0Hn-ez4spG4iHBgOXerY1R2kvaVaxjY6qN1OFZ9dWjiDIFAGo~MggxxNn8zSKwJHTtCqzKG9EYP-dozIjb-kmmlao0eolGHi1bh9tVUofuA__&Key-Pair-Id=K269JMAT9ZF4GZ",
+ videoUrl:
+ "https://www.youtube.com/embed/m062ApqcRow?si=8FRndy4ABWPTioHU&autoplay=1",
},
];