Skip to content

Commit b4d4a64

Browse files
committed
feat: add video to monthly pricing
1 parent f458c31 commit b4d4a64

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed

apps/website/components/pricing.tsx

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,30 @@
22
import clsx from "clsx";
33

44
import { cn } from "@/lib/utils";
5-
import { ArrowRight, MinusIcon, PlusIcon } from "lucide-react";
5+
import { IconInfoCircle } from "@tabler/icons-react";
6+
import {
7+
ArrowRight,
8+
MinusIcon,
9+
PlusCircleIcon,
10+
PlusIcon,
11+
X,
12+
} from "lucide-react";
613
import { useTranslations } from "next-intl";
714
import Link from "next/link";
815
import { useRouter } from "next/navigation";
916
import { useState } from "react";
1017
import { Container } from "./Container";
1118
import { Badge } from "./ui/badge";
1219
import { Button, buttonVariants } from "./ui/button";
20+
import HeroVideoDialog from "./ui/hero-video-dialog";
1321
import { NumberInput } from "./ui/input";
1422
import { Tabs, TabsList, TabsTrigger } from "./ui/tabs";
23+
import {
24+
Tooltip,
25+
TooltipContent,
26+
TooltipProvider,
27+
TooltipTrigger,
28+
} from "./ui/tooltip";
1529

1630
function SwirlyDoodle(props: React.ComponentPropsWithoutRef<"svg">) {
1731
return (
@@ -74,6 +88,8 @@ export function Pricing() {
7488
const [isAnnual, setIsAnnual] = useState(false);
7589
const [serverQuantity, setServerQuantity] = useState(1);
7690
const featured = true;
91+
92+
const [openVideo, setOpenVideo] = useState(false);
7793
return (
7894
<section
7995
id="pricing"
@@ -272,6 +288,33 @@ export function Pricing() {
272288
serverQuantity,
273289
})}
274290
</span>
291+
<TooltipProvider>
292+
<Tooltip open={openVideo}>
293+
<TooltipTrigger onClick={() => setOpenVideo(true)}>
294+
<IconInfoCircle className="size-5 text-muted-foreground hover:text-primary transition-colors " />
295+
</TooltipTrigger>
296+
<TooltipContent className=" rounded-lg text-center w-[400px] z-[200] text-white font-semibold">
297+
<div className="text-muted-foreground hover:text-primary transition-colors flex justify-end self-end w-full mb-2">
298+
<X
299+
onClick={() => setOpenVideo(false)}
300+
className="text-muted-foreground hover:text-primary transition-colors flex self-end size-4 cursor-pointer"
301+
/>
302+
</div>
303+
<p className="text-primary mb-2 text-left">
304+
We Recommend to watch the video to understand the
305+
benefits of Dokploy Cloud
306+
</p>
307+
308+
<HeroVideoDialog
309+
className="block w-full max-w-md rounded-xl z-20"
310+
animationStyle="top-in-bottom-out"
311+
videoSrc="https://www.youtube.com/embed/x2s_Y5ON-ms?si=i6gntgMmyPDLuPih"
312+
thumbnailSrc="https://dokploy.com/banner.png"
313+
thumbnailAlt="Hero Video"
314+
/>
315+
</TooltipContent>
316+
</Tooltip>
317+
</TooltipProvider>
275318
</div>
276319

277320
<div className="flex items-center space-x-2">

apps/website/components/stats.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ const grid = [
4242
{
4343
title: "GitHub Stars",
4444
description:
45-
"With over 8.3k stars on GitHub, Dokploy is trusted by developers worldwide. Explore our repositories and join our community!",
45+
"With over 9.0k stars on GitHub, Dokploy is trusted by developers worldwide. Explore our repositories and join our community!",
4646
icon: (
4747
<svg aria-hidden="true" className="h-6 w-6 fill-white">
4848
<path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844a9.59 9.59 0 0 1 2.504.337c1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.02 10.02 0 0 0 22 12.017C22 6.484 17.522 2 12 2Z" />
4949
</svg>
5050
),
5151
component: (
5252
<p className="whitespace-pre-wrap text-2xl !font-semibold tracking-tighter mt-4">
53-
<NumberTicker value={8300} />+
53+
<NumberTicker value={9000} />+
5454
</p>
5555
),
5656
},

0 commit comments

Comments
 (0)