diff --git a/apps/web/src/modules/marketing/layout/header/header.tsx b/apps/web/src/modules/marketing/layout/header/header.tsx index 52925e9..ec37619 100644 --- a/apps/web/src/modules/marketing/layout/header/header.tsx +++ b/apps/web/src/modules/marketing/layout/header/header.tsx @@ -1,5 +1,9 @@ "use client"; +import { useTranslation } from "@turbostarter/i18n"; +import { cn } from "@turbostarter/ui"; +import { buttonVariants } from "@turbostarter/ui-web/button"; + import { pathsConfig } from "~/config/paths"; import { WhyRatingLogo } from "~/modules/common/whyrating-logo"; import { TurboLink } from "~/modules/common/turbo-link"; @@ -13,11 +17,6 @@ const links = [ label: "marketing:howItWorks.label", href: "/#how-it-works", }, - { - label: "marketing:demoLabel", - href: pathsConfig.demo.report, - variant: "button" as const, - }, { label: "billing:pricing.label", href: pathsConfig.marketing.pricing, @@ -33,6 +32,8 @@ const links = [ ] as const; export const Header = () => { + const { t } = useTranslation("marketing"); + return (
@@ -46,7 +47,16 @@ export const Header = () => { -
+
+ + {t("demoLabel")} +
diff --git a/apps/web/src/modules/marketing/layout/header/navigation/mobile-navigation.tsx b/apps/web/src/modules/marketing/layout/header/navigation/mobile-navigation.tsx index b8e6bd5..0aad154 100644 --- a/apps/web/src/modules/marketing/layout/header/navigation/mobile-navigation.tsx +++ b/apps/web/src/modules/marketing/layout/header/navigation/mobile-navigation.tsx @@ -97,8 +97,6 @@ export const MobileNavigation = ({ links }: NavigationProps) => { className={cn( navigationMenuTriggerStyle(), "w-full justify-start text-base font-medium", - "href" in link && link.variant === "button" && - "border bg-primary/5 font-semibold rounded-full", )} onClick={() => setOpen(false)} > diff --git a/apps/web/src/modules/marketing/layout/header/navigation/navigation.tsx b/apps/web/src/modules/marketing/layout/header/navigation/navigation.tsx index a115bc4..4914168 100644 --- a/apps/web/src/modules/marketing/layout/header/navigation/navigation.tsx +++ b/apps/web/src/modules/marketing/layout/header/navigation/navigation.tsx @@ -27,11 +27,7 @@ export const Navigation = ({ links }: NavigationProps) => { {t(link.label)} diff --git a/apps/web/src/modules/marketing/layout/header/navigation/types.ts b/apps/web/src/modules/marketing/layout/header/navigation/types.ts index e5a9016..a2babe2 100644 --- a/apps/web/src/modules/marketing/layout/header/navigation/types.ts +++ b/apps/web/src/modules/marketing/layout/header/navigation/types.ts @@ -5,7 +5,6 @@ export type NavigationLink = | { readonly label: TranslationKey; readonly href: string; - readonly variant?: "default" | "button"; } | { readonly label: TranslationKey;