mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
Remove posthog from landing page
This commit is contained in:
parent
3d57ff4c13
commit
bb46740463
1 changed files with 105 additions and 112 deletions
|
@ -2,7 +2,6 @@ import "tailwindcss/tailwind.css";
|
||||||
import "../../style.css";
|
import "../../style.css";
|
||||||
|
|
||||||
import languages from "@rallly/languages";
|
import languages from "@rallly/languages";
|
||||||
import { PostHogProvider } from "@rallly/posthog/client";
|
|
||||||
import {
|
import {
|
||||||
DropdownMenu,
|
DropdownMenu,
|
||||||
DropdownMenuContent,
|
DropdownMenuContent,
|
||||||
|
@ -47,118 +46,112 @@ export default async function Root({
|
||||||
return (
|
return (
|
||||||
<html lang={locale} className={sans.className}>
|
<html lang={locale} className={sans.className}>
|
||||||
<body>
|
<body>
|
||||||
<PostHogProvider>
|
<I18nProvider locale={locale}>
|
||||||
<I18nProvider locale={locale}>
|
<div className="mx-auto flex min-h-full w-full max-w-7xl flex-col space-y-12 p-4 sm:p-8">
|
||||||
<div className="mx-auto flex min-h-full w-full max-w-7xl flex-col space-y-12 p-4 sm:p-8">
|
<header className="flex w-full items-center">
|
||||||
<header className="flex w-full items-center">
|
<div className="flex grow items-center gap-x-12">
|
||||||
<div className="flex grow items-center gap-x-12">
|
<Link className="inline-block rounded" href="/">
|
||||||
<Link className="inline-block rounded" href="/">
|
<Image
|
||||||
<Image
|
src="/logo.svg"
|
||||||
src="/logo.svg"
|
width={130}
|
||||||
width={130}
|
height={30}
|
||||||
height={30}
|
alt="rallly.co"
|
||||||
alt="rallly.co"
|
/>
|
||||||
/>
|
</Link>
|
||||||
</Link>
|
<nav className="hidden items-center space-x-8 lg:flex">
|
||||||
<nav className="hidden items-center space-x-8 lg:flex">
|
<NavLink href="https://support.rallly.co/workflow/create">
|
||||||
<NavLink href="https://support.rallly.co/workflow/create">
|
<Trans t={t} i18nKey="howItWorks" defaults="How it Works" />
|
||||||
<Trans
|
</NavLink>
|
||||||
t={t}
|
<NavLink href="/pricing">
|
||||||
i18nKey="howItWorks"
|
<Trans t={t} i18nKey="pricing" />
|
||||||
defaults="How it Works"
|
</NavLink>
|
||||||
/>
|
<NavLink href="/blog">
|
||||||
</NavLink>
|
<Trans t={t} i18nKey="blog" />
|
||||||
<NavLink href="/pricing">
|
</NavLink>
|
||||||
<Trans t={t} i18nKey="pricing" />
|
<NavLink href="https://support.rallly.co">
|
||||||
</NavLink>
|
<Trans t={t} i18nKey="support" />
|
||||||
<NavLink href="/blog">
|
</NavLink>
|
||||||
<Trans t={t} i18nKey="blog" />
|
</nav>
|
||||||
</NavLink>
|
</div>
|
||||||
<NavLink href="https://support.rallly.co">
|
<div className="flex items-center gap-4 sm:gap-8">
|
||||||
<Trans t={t} i18nKey="support" />
|
<Link
|
||||||
</NavLink>
|
href={linkToApp("/login")}
|
||||||
</nav>
|
className="hover:text-primary text-muted-foreground hidden rounded text-sm font-medium hover:no-underline hover:underline-offset-2 lg:inline-flex"
|
||||||
|
>
|
||||||
|
<Trans t={t} i18nKey="login" defaults="Login" />
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
href={linkToApp()}
|
||||||
|
className="bg-primary hover:bg-primary-500 active:bg-primary-700 group inline-flex items-center gap-1 rounded-full py-1.5 pl-4 pr-3 text-sm font-medium text-white shadow-sm transition-transform"
|
||||||
|
>
|
||||||
|
<span>
|
||||||
|
<Trans t={t} i18nKey="goToApp" defaults="Go to app" />
|
||||||
|
</span>
|
||||||
|
<ChevronRightIcon className="inline-block size-4 transition-all group-active:translate-x-1" />
|
||||||
|
</Link>
|
||||||
|
<div className="flex items-center justify-center lg:hidden">
|
||||||
|
<DropdownMenu>
|
||||||
|
<DropdownMenuTrigger>
|
||||||
|
<MenuIcon className="size-6" />
|
||||||
|
</DropdownMenuTrigger>
|
||||||
|
<DropdownMenuContent align="end" sideOffset={16}>
|
||||||
|
<DropdownMenuItem asChild>
|
||||||
|
<Link
|
||||||
|
className="flex items-center gap-3 p-2 text-lg"
|
||||||
|
href="https://support.rallly.co/workflow/create"
|
||||||
|
>
|
||||||
|
<Trans
|
||||||
|
t={t}
|
||||||
|
i18nKey="howItWorks"
|
||||||
|
defaults="How it Works"
|
||||||
|
/>
|
||||||
|
</Link>
|
||||||
|
</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem asChild>
|
||||||
|
<Link
|
||||||
|
className="flex items-center gap-3 p-2 text-lg"
|
||||||
|
href="/pricing"
|
||||||
|
>
|
||||||
|
<Trans t={t} i18nKey="pricing" defaults="Pricing" />
|
||||||
|
</Link>
|
||||||
|
</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem asChild>
|
||||||
|
<Link
|
||||||
|
className="flex items-center gap-3 p-2 text-lg"
|
||||||
|
href="/blog"
|
||||||
|
>
|
||||||
|
<Trans t={t} i18nKey="blog" />
|
||||||
|
</Link>
|
||||||
|
</DropdownMenuItem>
|
||||||
|
<DropdownMenuItem asChild>
|
||||||
|
<Link
|
||||||
|
className="flex items-center gap-3 p-2 text-lg"
|
||||||
|
href="https://support.rallly.co"
|
||||||
|
>
|
||||||
|
<Trans t={t} i18nKey="support" />
|
||||||
|
</Link>
|
||||||
|
</DropdownMenuItem>
|
||||||
|
<DropdownMenuSeparator />
|
||||||
|
<DropdownMenuItem asChild>
|
||||||
|
<Link
|
||||||
|
className="flex items-center gap-3 p-2 text-lg"
|
||||||
|
href={linkToApp("/login")}
|
||||||
|
>
|
||||||
|
<Trans t={t} i18nKey="login" defaults="Login" />
|
||||||
|
</Link>
|
||||||
|
</DropdownMenuItem>
|
||||||
|
</DropdownMenuContent>
|
||||||
|
</DropdownMenu>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-4 sm:gap-8">
|
</div>
|
||||||
<Link
|
</header>
|
||||||
href={linkToApp("/login")}
|
<section className="relative grow">{children}</section>
|
||||||
className="hover:text-primary text-muted-foreground hidden rounded text-sm font-medium hover:no-underline hover:underline-offset-2 lg:inline-flex"
|
<hr className="border-transparent" />
|
||||||
>
|
<footer>
|
||||||
<Trans t={t} i18nKey="login" defaults="Login" />
|
<Footer />
|
||||||
</Link>
|
</footer>
|
||||||
<Link
|
</div>
|
||||||
href={linkToApp()}
|
</I18nProvider>
|
||||||
className="bg-primary hover:bg-primary-500 active:bg-primary-700 group inline-flex items-center gap-1 rounded-full py-1.5 pl-4 pr-3 text-sm font-medium text-white shadow-sm transition-transform"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
<Trans t={t} i18nKey="goToApp" defaults="Go to app" />
|
|
||||||
</span>
|
|
||||||
<ChevronRightIcon className="inline-block size-4 transition-all group-active:translate-x-1" />
|
|
||||||
</Link>
|
|
||||||
<div className="flex items-center justify-center lg:hidden">
|
|
||||||
<DropdownMenu>
|
|
||||||
<DropdownMenuTrigger>
|
|
||||||
<MenuIcon className="size-6" />
|
|
||||||
</DropdownMenuTrigger>
|
|
||||||
<DropdownMenuContent align="end" sideOffset={16}>
|
|
||||||
<DropdownMenuItem asChild>
|
|
||||||
<Link
|
|
||||||
className="flex items-center gap-3 p-2 text-lg"
|
|
||||||
href="https://support.rallly.co/workflow/create"
|
|
||||||
>
|
|
||||||
<Trans
|
|
||||||
t={t}
|
|
||||||
i18nKey="howItWorks"
|
|
||||||
defaults="How it Works"
|
|
||||||
/>
|
|
||||||
</Link>
|
|
||||||
</DropdownMenuItem>
|
|
||||||
<DropdownMenuItem asChild>
|
|
||||||
<Link
|
|
||||||
className="flex items-center gap-3 p-2 text-lg"
|
|
||||||
href="/pricing"
|
|
||||||
>
|
|
||||||
<Trans t={t} i18nKey="pricing" defaults="Pricing" />
|
|
||||||
</Link>
|
|
||||||
</DropdownMenuItem>
|
|
||||||
<DropdownMenuItem asChild>
|
|
||||||
<Link
|
|
||||||
className="flex items-center gap-3 p-2 text-lg"
|
|
||||||
href="/blog"
|
|
||||||
>
|
|
||||||
<Trans t={t} i18nKey="blog" />
|
|
||||||
</Link>
|
|
||||||
</DropdownMenuItem>
|
|
||||||
<DropdownMenuItem asChild>
|
|
||||||
<Link
|
|
||||||
className="flex items-center gap-3 p-2 text-lg"
|
|
||||||
href="https://support.rallly.co"
|
|
||||||
>
|
|
||||||
<Trans t={t} i18nKey="support" />
|
|
||||||
</Link>
|
|
||||||
</DropdownMenuItem>
|
|
||||||
<DropdownMenuSeparator />
|
|
||||||
<DropdownMenuItem asChild>
|
|
||||||
<Link
|
|
||||||
className="flex items-center gap-3 p-2 text-lg"
|
|
||||||
href={linkToApp("/login")}
|
|
||||||
>
|
|
||||||
<Trans t={t} i18nKey="login" defaults="Login" />
|
|
||||||
</Link>
|
|
||||||
</DropdownMenuItem>
|
|
||||||
</DropdownMenuContent>
|
|
||||||
</DropdownMenu>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
<section className="relative grow">{children}</section>
|
|
||||||
<hr className="border-transparent" />
|
|
||||||
<footer>
|
|
||||||
<Footer />
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
</I18nProvider>
|
|
||||||
</PostHogProvider>
|
|
||||||
<Analytics />
|
<Analytics />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue