From b123baafa43bc252f513f60863d33172044896a2 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 26 Oct 2024 22:44:21 -0600 Subject: [PATCH] refactor(dokploy): add analytics and pricing section to website --- apps/docs/app/[lang]/layout.tsx | 12 +- apps/dokploy/pages/_app.tsx | 16 +- apps/website/components/Footer.tsx | 59 +++++++- apps/website/components/Header.tsx | 64 +------- apps/website/components/Hero.tsx | 45 +++++- apps/website/components/pricing.tsx | 142 ++++++++++++------ .../components/ui/animated-shiny-text.tsx | 40 +++++ .../components/ui/hover-border-gradient.tsx | 100 ++++++++++++ apps/website/tailwind.config.ts | 31 ++-- 9 files changed, 377 insertions(+), 132 deletions(-) create mode 100644 apps/website/components/ui/animated-shiny-text.tsx create mode 100644 apps/website/components/ui/hover-border-gradient.tsx diff --git a/apps/docs/app/[lang]/layout.tsx b/apps/docs/app/[lang]/layout.tsx index d00df3074..675830267 100644 --- a/apps/docs/app/[lang]/layout.tsx +++ b/apps/docs/app/[lang]/layout.tsx @@ -14,6 +14,7 @@ import { PlugZapIcon, TerminalIcon, } from "lucide-react"; +import Script from "next/script"; const inter = Inter({ subsets: ["latin"], }); @@ -63,13 +64,10 @@ export default function Layout({ className={inter.className} suppressHydrationWarning > -
- - +
{t("footer.copyright", {
diff --git a/apps/website/components/Header.tsx b/apps/website/components/Header.tsx
index 8347b1430..8d5e1fd90 100644
--- a/apps/website/components/Header.tsx
+++ b/apps/website/components/Header.tsx
@@ -1,16 +1,10 @@
"use client";
-import {
- Select,
- SelectContent,
- SelectItem,
- SelectTrigger,
-} from "@/components/ui/select";
-import { Link, useRouter } from "@/i18n/routing";
+import { Link } from "@/i18n/routing";
import { cn } from "@/lib/utils";
import { Popover, Transition } from "@headlessui/react";
import { HeartIcon } from "lucide-react";
-import { useLocale, useTranslations } from "next-intl";
+import { useTranslations } from "next-intl";
import { Fragment, type JSX, type SVGProps } from "react";
import { Container } from "./Container";
import { NavLink } from "./NavLink";
@@ -125,10 +119,7 @@ function MobileNavigation() {
as="div"
className="absolute inset-x-0 top-full mt-4 flex origin-top flex-col rounded-2xl border border-border bg-background p-4 text-lg tracking-tight text-primary shadow-xl ring-1 ring-border/5"
>
-
- {description} -
-- {price} -
-+ {description} +
++ {price} +
+
diff --git a/apps/website/components/ui/animated-shiny-text.tsx b/apps/website/components/ui/animated-shiny-text.tsx
new file mode 100644
index 000000000..174e4d194
--- /dev/null
+++ b/apps/website/components/ui/animated-shiny-text.tsx
@@ -0,0 +1,40 @@
+import type { CSSProperties, FC, ReactNode } from "react";
+
+import { cn } from "@/lib/utils";
+
+interface AnimatedShinyTextProps {
+ children: ReactNode;
+ className?: string;
+ shimmerWidth?: number;
+}
+
+const AnimatedShinyText: FC
+ {children}
+