Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

💄 Left-align landing page copy, full-width hero demo, drop Sign up CTA (#2954)

Luke Vella8f3a6d558688
diff --git a/apps/landing/AGENTS.md b/apps/landing/AGENTS.md
new file mode 100644
index 000000000..643577dfa
--- /dev/null
+++ b/apps/landing/AGENTS.md
@@ -0,0 +1,9 @@
+<!-- BEGIN:nextjs-agent-rules -->
+
+# This is NOT the Next.js you know
+
+This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices.
+
+This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.
+
+<!-- END:nextjs-agent-rules -->
diff --git a/apps/landing/CLAUDE.md b/apps/landing/CLAUDE.md
new file mode 100644
index 000000000..43c994c2d
--- /dev/null
+++ b/apps/landing/CLAUDE.md
@@ -0,0 +1 @@
diff --git a/apps/landing/public/locales/en/common.json b/apps/landing/public/locales/en/common.json
index b9708d8a8..e11962ad8 100644
--- a/apps/landing/public/locales/en/common.json
+++ b/apps/landing/public/locales/en/common.json
@@ -30,7 +30,6 @@
"privacyPolicy": "Privacy policy",
"product": "Product",
"resources": "Resources",
- "signUp": "Sign up",
"status": "Status",
"support": "Support",
"termsOfUse": "Terms of use",
diff --git a/apps/landing/public/locales/en/home.json b/apps/landing/public/locales/en/home.json
index 739af5e5c..82957d216 100644
--- a/apps/landing/public/locales/en/home.json
+++ b/apps/landing/public/locales/en/home.json
@@ -1,6 +1,5 @@
{
- "createAPoll": "Create a meeting poll",
- "createASchedulingPoll": "Create a scheduling poll",
+ "createAPoll": "Create a poll",
"doodleAlternative": "The best free Doodle alternative",
"doodleAlternativeDescription": "Rallly is the Doodle alternative that everyone is looking for. Thousands of users have already made the switch and are now enjoying professional ad-free meeting polls in an intuitive and easy-to-use interface. ",
"doodleAlternativeFinalCtaDescription": "Create your first poll in seconds and see why so many people left Doodle behind.",
@@ -11,6 +10,7 @@
"ericQuote": "“If your scheduling workflow lives in emails, I strongly encourage you to try and let Rallly simplify your scheduling tasks for a more organized and less stressful workday.”",
"finalCtaDescription": "Create a poll, share the link, and let everyone vote on times that work.",
"finalCtaTitle": "Ready to find the best time to meet?",
+ "fiveStars": "5 stars",
"freeSchedulingPollDescription": "Rallly lets you create beautiful and easy to use scheduling polls so you can find the best time for your next event.",
"freeSchedulingPollFinalCtaDescription": "It takes seconds and your group can start voting right away.",
"freeSchedulingPollFinalCtaTitle": "Ready to create your scheduling poll?",
@@ -42,7 +42,7 @@
"metaDescription": "Rallly is the fastest and easiest scheduling and collaboration tool. Create a meeting poll in seconds, no login required.",
"metaTitle": "Rallly: Free Group Meeting Scheduling Tool",
"mobileVotingBlog": "A clearer way to vote on your phone",
- "new": "New",
+ "mobileVotingBlogBadge": "New",
"pcmagQuote": "“Set up a scheduling poll in as little time as possible.”",
"popsciQuote": "“The perfect pick if you want to keep your RSVPs simple.”",
"statsLast30Days": "<b>{voterCount, plural, one {# person} other {# people}}</b> voted on <b>{pollCount, plural, one {# poll} other {# polls}}</b> in the last 30 days",
diff --git a/apps/landing/src/app/[locale]/(main)/(seo)/best-doodle-alternative/page.tsx b/apps/landing/src/app/[locale]/(main)/(seo)/best-doodle-alternative/page.tsx
index 2352dfe0a..af5042d9a 100644
--- a/apps/landing/src/app/[locale]/(main)/(seo)/best-doodle-alternative/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/(seo)/best-doodle-alternative/page.tsx
@@ -3,11 +3,11 @@
import type { Metadata } from "next";
import { cacheLife } from "next/cache";
import { Trans } from "react-i18next/TransWithoutContext";
-import Bonus from "@/components/home/bonus";
-import { FinalCta } from "@/components/home/final-cta";
-import { MarketingHero } from "@/components/home/hero";
-import { HeroDemo } from "@/components/home/hero-demo/hero-demo";
-import { BigTestimonial, Marketing, MentionedBy } from "@/components/marketing";
+import { Cta } from "@/components/home/cta";
+import { Hero } from "@/components/home/hero";
+import { Mentions } from "@/components/home/mentions";
+import { Stats } from "@/components/home/stats";
+import { Testimonial } from "@/components/home/testimonial";
import { getTranslation } from "@/i18n/server";
export default async function Page(props: {
@@ -17,21 +17,21 @@ export default async function Page(props: {
const { locale } = await props.params;
const { t } = await getTranslation(locale, ["home"]);
return (
- <Marketing>
- <MarketingHero
- demo={<HeroDemo locale={locale} />}
+ <div className="divide-y">
+ <Hero
+ locale={locale}
title={t("doodleAlternative", {
ns: "home",
})}
description={t("doodleAlternativeDescription", {
ns: "home",
})}
- callToAction={<Trans t={t} ns="home" i18nKey="createAPoll" />}
/>
- <Bonus locale={locale} />
- <BigTestimonial />
- <MentionedBy />
- <FinalCta
+ <Stats locale={locale} />
+ <Testimonial locale={locale} />
+ <Mentions locale={locale} />
+ <Cta
+ locale={locale}
title={
<Trans
t={t}
@@ -48,9 +48,8 @@ export default async function Page(props: {
defaults="Create your first poll in seconds and see why so many people left Doodle behind."
/>
}
- callToAction={<Trans t={t} ns="home" i18nKey="createAPoll" />}
/>
- </Marketing>
+ </div>
);
}
diff --git a/apps/landing/src/app/[locale]/(main)/(seo)/free-scheduling-poll/page.tsx b/apps/landing/src/app/[locale]/(main)/(seo)/free-scheduling-poll/page.tsx
index 83c415016..e2904559e 100644
--- a/apps/landing/src/app/[locale]/(main)/(seo)/free-scheduling-poll/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/(seo)/free-scheduling-poll/page.tsx
@@ -3,11 +3,11 @@
import type { Metadata } from "next";
import { cacheLife } from "next/cache";
import { Trans } from "react-i18next/TransWithoutContext";
-import Bonus from "@/components/home/bonus";
-import { FinalCta } from "@/components/home/final-cta";
-import { MarketingHero } from "@/components/home/hero";
-import { HeroDemo } from "@/components/home/hero-demo/hero-demo";
-import { BigTestimonial, Marketing, MentionedBy } from "@/components/marketing";
+import { Cta } from "@/components/home/cta";
+import { Hero } from "@/components/home/hero";
+import { Mentions } from "@/components/home/mentions";
+import { Stats } from "@/components/home/stats";
+import { Testimonial } from "@/components/home/testimonial";
import { getTranslation } from "@/i18n/server";
export default async function Page(props: {
@@ -17,21 +17,21 @@ export default async function Page(props: {
const { locale } = await props.params;
const { t } = await getTranslation(locale, ["home"]);
return (
- <Marketing>
- <MarketingHero
- demo={<HeroDemo locale={locale} />}
+ <div className="divide-y">
+ <Hero
+ locale={locale}
title={t("freeSchedulingPollTitle", {
ns: "home",
})}
description={t("freeSchedulingPollDescription", {
ns: "home",
})}
- callToAction={<Trans t={t} ns="home" i18nKey="createASchedulingPoll" />}
/>
- <Bonus locale={locale} />
- <BigTestimonial />
- <MentionedBy />
- <FinalCta
+ <Stats locale={locale} />
+ <Testimonial locale={locale} />
+ <Mentions locale={locale} />
+ <Cta
+ locale={locale}
title={
<Trans
t={t}
@@ -48,9 +48,8 @@ export default async function Page(props: {
defaults="It takes seconds and your group can start voting right away."
/>
}
- callToAction={<Trans t={t} ns="home" i18nKey="createASchedulingPoll" />}
/>
- </Marketing>
+ </div>
);
}
diff --git a/apps/landing/src/app/[locale]/(main)/(seo)/when2meet-alternative/page.tsx b/apps/landing/src/app/[locale]/(main)/(seo)/when2meet-alternative/page.tsx
index 1663a4efb..d7f9247a5 100644
--- a/apps/landing/src/app/[locale]/(main)/(seo)/when2meet-alternative/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/(seo)/when2meet-alternative/page.tsx
@@ -3,11 +3,11 @@
import type { Metadata } from "next";
import { cacheLife } from "next/cache";
import { Trans } from "react-i18next/TransWithoutContext";
-import Bonus from "@/components/home/bonus";
-import { FinalCta } from "@/components/home/final-cta";
-import { MarketingHero } from "@/components/home/hero";
-import { HeroDemo } from "@/components/home/hero-demo/hero-demo";
-import { BigTestimonial, Marketing, MentionedBy } from "@/components/marketing";
+import { Cta } from "@/components/home/cta";
+import { Hero } from "@/components/home/hero";
+import { Mentions } from "@/components/home/mentions";
+import { Stats } from "@/components/home/stats";
+import { Testimonial } from "@/components/home/testimonial";
import { getTranslation } from "@/i18n/server";
export default async function Page(props: {
@@ -17,21 +17,21 @@ export default async function Page(props: {
const { locale } = await props.params;
const { t } = await getTranslation(locale, ["home"]);
return (
- <Marketing>
- <MarketingHero
- demo={<HeroDemo locale={locale} />}
+ <div className="divide-y">
+ <Hero
+ locale={locale}
title={t("when2meetAlternative", {
ns: "home",
})}
description={t("when2meetAlternativeDescription", {
ns: "home",
})}
- callToAction={<Trans t={t} ns="home" i18nKey="createASchedulingPoll" />}
/>
- <Bonus locale={locale} />
- <BigTestimonial />
- <MentionedBy />
- <FinalCta
+ <Stats locale={locale} />
+ <Testimonial locale={locale} />
+ <Mentions locale={locale} />
+ <Cta
+ locale={locale}
title={
<Trans
t={t}
@@ -48,9 +48,8 @@ export default async function Page(props: {
defaults="Create a poll in seconds and enjoy a cleaner way to find a time that works."
/>
}
- callToAction={<Trans t={t} ns="home" i18nKey="createASchedulingPoll" />}
/>
- </Marketing>
+ </div>
);
}
diff --git a/apps/landing/src/app/[locale]/(main)/footer.tsx b/apps/landing/src/app/[locale]/(main)/footer.tsx
index 7e1b3ee3f..ad680f4e9 100644
--- a/apps/landing/src/app/[locale]/(main)/footer.tsx
+++ b/apps/landing/src/app/[locale]/(main)/footer.tsx
@@ -1,69 +1,16 @@
-"use client";
-
-import languages, { supportedLngs } from "@rallly/languages";
-import {
- Select,
- SelectContent,
- SelectItem,
- SelectTrigger,
- SelectValue,
-} from "@rallly/ui/select";
import Image from "next/image";
-import Link from "next/link";
-import { usePathname, useRouter } from "next/navigation";
-import type * as React from "react";
+import { Trans } from "react-i18next/TransWithoutContext";
import DiscordIcon from "@/assets/discord.svg";
import GithubIcon from "@/assets/github.svg";
import LinkedinIcon from "@/assets/linkedin.svg";
import XIcon from "@/assets/x.svg";
import { LinkBase } from "@/i18n/client/link";
-import { Trans } from "@/i18n/client/trans";
-import { useTranslation } from "@/i18n/client/use-translation";
-
-const LanguageSelect = () => {
- const router = useRouter();
- const pathname = usePathname() ?? "";
- const { t, i18n } = useTranslation();
- return (
- <Select
- items={languages}
- value={i18n.language}
- onValueChange={(newLocale) => {
- if (!newLocale) {
- return;
- }
-
- const isLocalizedPath = supportedLngs.some((lng) =>
- pathname?.startsWith(`/${lng}`),
- );
-
- const newPath = isLocalizedPath
- ? pathname.replace(new RegExp(`^/${i18n.language}`), "")
- : pathname;
-
- router.replace(`/${newLocale}${newPath}`);
- }}
- >
- <SelectTrigger
- className="w-full"
- aria-label={t("language", { defaultValue: "Language" })}
- >
- <SelectValue />
- </SelectTrigger>
- <SelectContent>
- {Object.entries(languages).map(([code, name]) => (
- <SelectItem key={code} value={code}>
- {name}
- </SelectItem>
- ))}
- </SelectContent>
- </Select>
- );
-};
+import { getTranslation } from "@/i18n/server";
+import { LanguageSelect } from "./language-select";
-export const Footer: React.FunctionComponent = () => {
- const { t } = useTranslation("common");
+export const Footer = async ({ locale }: { locale: string }) => {
+ const { t } = await getTranslation(locale, "common");
return (
<div className="mx-auto space-y-8">
<div className="space-y-16 lg:flex lg:space-x-8 lg:space-y-0">
@@ -79,6 +26,7 @@ export const Footer: React.FunctionComponent = () => {
<div className="my-8 text-gray-600 text-sm">
<p className="leading-relaxed">
<Trans
+ t={t}
ns="common"
i18nKey="footerTagline"
defaults="Rallly is an open-source meeting scheduling tool that helps you find the best time to meet, without the back and forth."
@@ -132,7 +80,7 @@ export const Footer: React.FunctionComponent = () => {
</div>
<div className="lg:flex-1">
<div className="mb-8 flex h-[30px] items-center font-medium">
- <Trans ns="common" i18nKey="product" defaults="Product" />
+ <Trans t={t} ns="common" i18nKey="product" defaults="Product" />
</div>
<ul className="grid gap-2 text-sm">
<li>
@@ -140,7 +88,7 @@ export const Footer: React.FunctionComponent = () => {
className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"
href="/pricing"
>
- <Trans i18nKey="pricing" defaults="Pricing" />
+ <Trans t={t} i18nKey="pricing" defaults="Pricing" />
</LinkBase>
</li>
<li>
@@ -149,6 +97,7 @@ export const Footer: React.FunctionComponent = () => {
href="/free-scheduling-poll"
>
<Trans
+ t={t}
ns="common"
i18nKey="freeSchedulingPoll"
defaults="Free scheduling poll"
@@ -159,7 +108,7 @@ export const Footer: React.FunctionComponent = () => {
</div>
<div className="lg:flex-1">
<div className="mb-8 flex h-[30px] items-center font-medium">
- <Trans ns="common" i18nKey="resources" defaults="Resources" />
+ <Trans t={t} ns="common" i18nKey="resources" defaults="Resources" />
</div>
<ul className="grid gap-2 text-sm">
<li>
@@ -167,7 +116,7 @@ export const Footer: React.FunctionComponent = () => {
href="/blog"
className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"
>
- <Trans ns="common" i18nKey="blog" defaults="Blog" />
+ <Trans t={t} ns="common" i18nKey="blog" defaults="Blog" />
</LinkBase>
</li>
<li>
@@ -178,6 +127,7 @@ export const Footer: React.FunctionComponent = () => {
rel="noopener"
>
<Trans
+ t={t}
ns="common"
i18nKey="discussions"
defaults="Discussions"
@@ -189,7 +139,7 @@ export const Footer: React.FunctionComponent = () => {
href="https://support.rallly.co"
className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"
>
- <Trans ns="common" i18nKey="support" defaults="Support" />
+ <Trans t={t} ns="common" i18nKey="support" defaults="Support" />
</a>
</li>
<li>
@@ -197,14 +147,14 @@ export const Footer: React.FunctionComponent = () => {
href="https://rallly.openstatus.dev"
className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"
>
- <Trans ns="common" i18nKey="status" defaults="Status" />
+ <Trans t={t} ns="common" i18nKey="status" defaults="Status" />
</a>
</li>
</ul>
</div>
<div className="lg:flex-1">
<div className="mb-8 flex h-[30px] items-center font-medium">
- <Trans ns="common" i18nKey="compare" defaults="Compare" />
+ <Trans t={t} ns="common" i18nKey="compare" defaults="Compare" />
</div>
<ul className="grid gap-2 text-sm">
<li>
@@ -213,6 +163,7 @@ export const Footer: React.FunctionComponent = () => {
href="/best-doodle-alternative"
>
<Trans
+ t={t}
ns="common"
i18nKey="doodleAlternative"
defaults="Doodle alternative"
@@ -225,6 +176,7 @@ export const Footer: React.FunctionComponent = () => {
href="/when2meet-alternative"
>
<Trans
+ t={t}
ns="common"
i18nKey="when2MeetAlternative"
defaults="When2Meet alternative"
@@ -241,28 +193,28 @@ export const Footer: React.FunctionComponent = () => {
</p>
<ul className="flex flex-wrap gap-x-4 gap-y-1 text-sm leading-loose">
<li>
- <Link
+ <LinkBase
href="/privacy-policy"
className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"
>
- <Trans ns="common" i18nKey="privacyPolicy" />
- </Link>
+ <Trans t={t} ns="common" i18nKey="privacyPolicy" />
+ </LinkBase>
</li>
<li>
- <Link
+ <LinkBase
href="/cookie-policy"
className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"
>
- <Trans ns="common" i18nKey="cookiePolicy" />
- </Link>
+ <Trans t={t} ns="common" i18nKey="cookiePolicy" />
+ </LinkBase>
</li>
<li>
- <Link
+ <LinkBase
href="/terms-of-use"
className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"
>
- <Trans ns="common" i18nKey="termsOfUse" />
- </Link>
+ <Trans t={t} ns="common" i18nKey="termsOfUse" />
+ </LinkBase>
</li>
</ul>
</div>
diff --git a/apps/landing/src/app/[locale]/(main)/language-select.tsx b/apps/landing/src/app/[locale]/(main)/language-select.tsx
new file mode 100644
index 000000000..2f20cabf5
--- /dev/null
+++ b/apps/landing/src/app/[locale]/(main)/language-select.tsx
@@ -0,0 +1,53 @@
+"use client";
+
+import languages, { supportedLngs } from "@rallly/languages";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@rallly/ui/select";
+import { usePathname, useRouter } from "next/navigation";
+import { useTranslation } from "@/i18n/client/use-translation";
+
+export const LanguageSelect = () => {
+ const router = useRouter();
+ const pathname = usePathname() ?? "";
+ const { t, i18n } = useTranslation();
+ return (
+ <Select
+ items={languages}
+ value={i18n.language}
+ onValueChange={(newLocale) => {
+ if (!newLocale) {
+ return;
+ }
+
+ const isLocalizedPath = supportedLngs.some((lng) =>
+ pathname?.startsWith(`/${lng}`),
+ );
+
+ const newPath = isLocalizedPath
+ ? pathname.replace(new RegExp(`^/${i18n.language}`), "")
+ : pathname;
+
+ router.replace(`/${newLocale}${newPath}`);
+ }}
+ >
+ <SelectTrigger
+ className="w-full"
+ aria-label={t("language", { defaultValue: "Language" })}
+ >
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ {Object.entries(languages).map(([code, name]) => (
+ <SelectItem key={code} value={code}>
+ {name}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ );
+};
diff --git a/apps/landing/src/app/[locale]/(main)/layout.tsx b/apps/landing/src/app/[locale]/(main)/layout.tsx
index f6fc8278e..cb6d877ca 100644
--- a/apps/landing/src/app/[locale]/(main)/layout.tsx
+++ b/apps/landing/src/app/[locale]/(main)/layout.tsx
@@ -17,8 +17,8 @@ import Image from "next/image";
import { Trans } from "react-i18next/TransWithoutContext";
+import { CtaButton } from "@/components/home/cta-button";
import { LoginButton } from "@/components/login-button";
-import { SignUpButton } from "@/components/sign-up-button";
import { LinkBase } from "@/i18n/client/link";
import { getTranslation } from "@/i18n/server";
import { linkToApp } from "@/lib/linkToApp";
@@ -43,107 +43,114 @@ export default async function Root(props: {
const { children, params } = props;
const { locale } = await params;
- const { t } = await getTranslation(locale);
+ const { t } = await getTranslation(locale, ["common", "home"]);
return (
- <div className="relative z-10 mx-auto flex min-h-full w-full max-w-7xl flex-col space-y-8 p-4 sm:p-8">
- <header className="flex w-full items-center">
- <div className="flex grow items-center gap-x-12">
- <LinkBase
- className="relative inline-block h-[30px] w-[130px] rounded-sm"
- href="/"
- >
- <Image
- src="/logo.svg"
- fill
- alt="rallly.co"
- className="object-contain"
- />
- </LinkBase>
- <nav className="hidden items-center gap-2 lg:flex">
- <NavLink href="https://support.rallly.co/workflow/create">
- <Trans t={t} i18nKey="howItWorks" defaults="How it works" />
- </NavLink>
- <NavLink href="/pricing">
- <Trans t={t} i18nKey="pricing" />
- </NavLink>
- <NavLink href="/blog">
- <Trans t={t} i18nKey="blog" />
- </NavLink>
- <NavLink href="https://support.rallly.co">
- <Trans t={t} i18nKey="support" />
- </NavLink>
- </nav>
- </div>
- <div className="flex items-center gap-4 sm:gap-8">
- <div className="hidden items-center gap-2 sm:flex">
- <LoginButton />
- <SignUpButton />
+ <div className="relative z-10 flex min-h-full flex-col">
+ <header className="sticky top-0 z-20 bg-gray-100">
+ <div className="mx-auto flex w-full max-w-6xl items-center px-4 py-4 sm:px-6 sm:py-6">
+ <div className="flex grow items-center gap-x-12">
+ <LinkBase
+ className="relative inline-block h-7 w-32 rounded-sm"
+ href="/"
+ >
+ <Image
+ src="/logo.svg"
+ fill
+ alt="rallly.co"
+ className="object-contain"
+ />
+ </LinkBase>
+ <nav className="hidden items-center gap-2 lg:flex">
+ <NavLink href="https://support.rallly.co/workflow/create">
+ <Trans t={t} i18nKey="howItWorks" defaults="How it works" />
+ </NavLink>
+ <NavLink href="/pricing">
+ <Trans t={t} i18nKey="pricing" />
+ </NavLink>
+ <NavLink href="/blog">
+ <Trans t={t} i18nKey="blog" />
+ </NavLink>
+ <NavLink href="https://support.rallly.co">
+ <Trans t={t} i18nKey="support" />
+ </NavLink>
+ </nav>
</div>
- <div className="flex items-center justify-center lg:hidden">
- <DropdownMenu>
- <DropdownMenuTrigger
- render={
- <Button
- size="sm"
- variant="ghost"
- aria-label={t("menu", { defaultValue: "Menu" })}
- />
- }
- >
- <Icon>
- <MenuIcon />
- </Icon>
- </DropdownMenuTrigger>
- <DropdownMenuContent className="w-48" align="end" sideOffset={16}>
- <DropdownMenuItem
+ <div className="flex items-center gap-4 sm:gap-8">
+ <div className="flex items-center gap-2">
+ <div className="hidden sm:block">
+ <LoginButton />
+ </div>
+ <CtaButton size="default" captureEvent="landing:header_cta_click">
+ <Trans
+ t={t}
+ ns="home"
+ i18nKey="createAPoll"
+ defaults="Create a poll"
+ />
+ </CtaButton>
+ </div>
+ <div className="flex items-center justify-center lg:hidden">
+ <DropdownMenu>
+ <DropdownMenuTrigger
render={
- <LinkBase href="https://support.rallly.co/workflow/create" />
+ <Button
+ size="sm"
+ variant="ghost"
+ aria-label={t("menu", { defaultValue: "Menu" })}
+ />
}
>
- <Trans t={t} i18nKey="howItWorks" defaults="How it works" />
- </DropdownMenuItem>
- <DropdownMenuItem render={<LinkBase href="/pricing" />}>
- <Trans t={t} i18nKey="pricing" defaults="Pricing" />
- </DropdownMenuItem>
- <DropdownMenuItem render={<LinkBase href="/blog" />}>
- <Trans t={t} i18nKey="blog" />
- </DropdownMenuItem>
- <DropdownMenuItem
- render={<LinkBase href="https://support.rallly.co" />}
+ <Icon>
+ <MenuIcon />
+ </Icon>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent
+ className="w-48"
+ align="end"
+ sideOffset={16}
>
- <Trans t={t} i18nKey="support" />
- </DropdownMenuItem>
- <DropdownMenuSeparator />
- <DropdownMenuLabel className="space-y-2">
- <LinkBase
- href={linkToApp("/login")}
- className={buttonVariants({
- variant: "default",
- className: "w-full",
- })}
+ <DropdownMenuItem
+ render={
+ <LinkBase href="https://support.rallly.co/workflow/create" />
+ }
>
- <Trans t={t} i18nKey="login" defaults="Login" />
- </LinkBase>
- <LinkBase
- href={linkToApp("/login")}
- className={buttonVariants({
- variant: "primary",
- className: "w-full",
- })}
+ <Trans t={t} i18nKey="howItWorks" defaults="How it works" />
+ </DropdownMenuItem>
+ <DropdownMenuItem render={<LinkBase href="/pricing" />}>
+ <Trans t={t} i18nKey="pricing" defaults="Pricing" />
+ </DropdownMenuItem>
+ <DropdownMenuItem render={<LinkBase href="/blog" />}>
+ <Trans t={t} i18nKey="blog" />
+ </DropdownMenuItem>
+ <DropdownMenuItem
+ render={<LinkBase href="https://support.rallly.co" />}
>
- <Trans t={t} i18nKey="signUp" defaults="Sign up" />
- </LinkBase>
- </DropdownMenuLabel>
- </DropdownMenuContent>
- </DropdownMenu>
+ <Trans t={t} i18nKey="support" />
+ </DropdownMenuItem>
+ <DropdownMenuSeparator />
+ <DropdownMenuLabel className="space-y-2">
+ <LinkBase
+ href={linkToApp("/login")}
+ className={buttonVariants({
+ variant: "default",
+ className: "w-full",
+ })}
+ >
+ <Trans t={t} i18nKey="login" defaults="Login" />
+ </LinkBase>
+ </DropdownMenuLabel>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </div>
</div>
</div>
</header>
- <section className="relative grow">{children}</section>
- <hr className="border-transparent" />
- <footer>
- <Footer />
- </footer>
+ <div className="mx-auto flex w-full max-w-6xl grow flex-col space-y-8 px-4 pb-4 sm:px-6 sm:pb-6">
+ <section className="relative grow">{children}</section>
+ <footer className="border-t pt-8 sm:pt-16">
+ <Footer locale={locale} />
+ </footer>
+ </div>
</div>
);
}
diff --git a/apps/landing/src/app/[locale]/(main)/page.tsx b/apps/landing/src/app/[locale]/(main)/page.tsx
index 935e31534..4eab8fb53 100644
--- a/apps/landing/src/app/[locale]/(main)/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/page.tsx
@@ -2,11 +2,11 @@
import type { Metadata } from "next";
import { cacheLife } from "next/cache";
-import Bonus from "@/components/home/bonus";
-import { FinalCta } from "@/components/home/final-cta";
-import { MarketingHero } from "@/components/home/hero";
-import { HeroDemo } from "@/components/home/hero-demo/hero-demo";
-import { BigTestimonial, Marketing, MentionedBy } from "@/components/marketing";
+import { Cta } from "@/components/home/cta";
+import { Hero } from "@/components/home/hero";
+import { Mentions } from "@/components/home/mentions";
+import { Stats } from "@/components/home/stats";
+import { Testimonial } from "@/components/home/testimonial";
import { getTranslation } from "@/i18n/server";
export default async function Page(props: {
@@ -16,9 +16,9 @@ export default async function Page(props: {
const { locale } = await props.params;
const { t } = await getTranslation(locale, ["home", "common"]);
return (
- <Marketing>
- <MarketingHero
- demo={<HeroDemo locale={locale} />}
+ <div className="divide-y">
+ <Hero
+ locale={locale}
title={t("headline", {
defaultValue: "Find the best time to meet",
ns: "home",
@@ -28,17 +28,12 @@ export default async function Page(props: {
"Coordinate group meetings without the back-and-forth emails",
ns: "home",
})}
- callToAction={t("createAPoll", {
- ns: "home",
- })}
/>
- <div className="space-y-8">
- <Bonus locale={locale} />
- <BigTestimonial />
- </div>
- <MentionedBy />
- <FinalCta />
- </Marketing>
+ <Stats locale={locale} />
+ <Testimonial locale={locale} />
+ <Mentions locale={locale} />
+ <Cta locale={locale} />
+ </div>
);
}
diff --git a/apps/landing/src/app/[locale]/(main)/pricing/page.tsx b/apps/landing/src/app/[locale]/(main)/pricing/page.tsx
index 50f097e92..674b8cc7f 100644
--- a/apps/landing/src/app/[locale]/(main)/pricing/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/pricing/page.tsx
@@ -133,7 +133,7 @@ export default async function Page(props: {
const { t } = await getTranslation(locale, "pricing");
return (
<article className="mx-auto max-w-3xl space-y-6">
- <header className="space-y-2 sm:p-6 sm:text-center">
+ <header className="space-y-2 sm:py-6">
<h1 className="font-bold text-2xl tracking-tight sm:text-4xl">
<Trans
t={t}
diff --git a/apps/landing/src/app/[locale]/(main)/pricing/pricing-table.tsx b/apps/landing/src/app/[locale]/(main)/pricing/pricing-table.tsx
index aa91cbafc..ab22966f4 100644
--- a/apps/landing/src/app/[locale]/(main)/pricing/pricing-table.tsx
+++ b/apps/landing/src/app/[locale]/(main)/pricing/pricing-table.tsx
@@ -26,7 +26,7 @@ export function PriceTables() {
const [tab, setTab] = React.useState("yearly");
return (
<Tabs value={tab} onValueChange={setTab}>
- <div className="flex justify-center">
+ <div className="flex">
<TabsList className="mb-4 sm:mb-6">
<TabsTrigger value="monthly">
<Trans
diff --git a/apps/landing/src/app/[locale]/globals.css b/apps/landing/src/app/[locale]/globals.css
index 829253643..60e3ccf4c 100644
--- a/apps/landing/src/app/[locale]/globals.css
+++ b/apps/landing/src/app/[locale]/globals.css
@@ -5,7 +5,6 @@
body {
@apply bg-gray-100;
- --foreground: var(--color-gray-700);
}
/* Blog post content styles */
diff --git a/apps/landing/src/components/error-page.tsx b/apps/landing/src/components/error-page.tsx
index 5f7b9d561..8642158f6 100644
--- a/apps/landing/src/components/error-page.tsx
+++ b/apps/landing/src/components/error-page.tsx
@@ -21,14 +21,14 @@ const ErrorPage: React.FunctionComponent<ComponentProps> = ({
return (
<div className="inset-0 flex h-full w-full items-center justify-center lg:absolute">
<div className="space-y-8">
- <div className="space-y-4 text-center">
+ <div className="space-y-4">
{icon || (
<FileSearchIcon className="mb-4 inline-block size-24 text-gray-400" />
)}
<div className="mb-2 font-bold text-3xl text-primary">{title}</div>
<p className="text-gray-600">{description}</p>
</div>
- <div className="flex justify-center space-x-3">
+ <div className="flex space-x-3">
<LinkBase href="/" className={buttonVariants({ variant: "primary" })}>
{t("goToHome")}
</LinkBase>
diff --git a/apps/landing/src/components/home/animated-number.tsx b/apps/landing/src/components/home/animated-number.tsx
index c81edee60..f7f4191d0 100644
--- a/apps/landing/src/components/home/animated-number.tsx
+++ b/apps/landing/src/components/home/animated-number.tsx
@@ -113,7 +113,7 @@ export function AnimatedStat({
.join("");
const parsed = parseLocalizedInteger(text, locale);
return (
- <strong className="font-semibold text-gray-800">
+ <strong className="font-medium text-gray-800">
{parsed ? (
<>
{text.slice(0, parsed.start)}
diff --git a/apps/landing/src/components/home/bonus.tsx b/apps/landing/src/components/home/bonus.tsx
deleted file mode 100644
index 78f529c5c..000000000
--- a/apps/landing/src/components/home/bonus.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import { Trans } from "react-i18next/TransWithoutContext";
-import { AnimatedStat } from "@/components/home/animated-number";
-import { getTranslation } from "@/i18n/server";
-import { getMonthlyPollCount, getMonthlyVoterCount } from "@/lib/data";
-
-export async function Bonus(props: { locale: string }) {
- const [pollCount, voterCount] = await Promise.all([
- getMonthlyPollCount(),
- getMonthlyVoterCount(),
- ]);
- const { t } = await getTranslation(props.locale, ["home"]);
-
- return (
- <p className="mx-auto max-w-2xl text-balance text-center text-gray-600 text-lg">
- <Trans
- t={t}
- ns="home"
- i18nKey="statsLast30Days"
- defaults="<b>{voterCount, plural, one {# person} other {# people}}</b> voted on <b>{pollCount, plural, one {# poll} other {# polls}}</b> in the last 30 days"
- values={{ voterCount, pollCount }}
- components={{
- b: <AnimatedStat locale={props.locale} />,
- }}
- />
- </p>
- );
-}
-
-export default Bonus;
diff --git a/apps/landing/src/components/home/cta-button.tsx b/apps/landing/src/components/home/cta-button.tsx
new file mode 100644
index 000000000..8694ea040
--- /dev/null
+++ b/apps/landing/src/components/home/cta-button.tsx
@@ -0,0 +1,34 @@
+"use client";
+import { posthog } from "@rallly/posthog/client";
+import { buttonVariants, cn } from "@rallly/ui";
+import Link from "next/link";
+import type React from "react";
+import { linkToApp } from "@/lib/linkToApp";
+
+export function CtaButton({
+ captureEvent,
+ size = "xl",
+ className,
+ children,
+}: {
+ captureEvent: string;
+ size?: "default" | "xl";
+ className?: string;
+ children: React.ReactNode;
+}) {
+ return (
+ <Link
+ href={linkToApp("/new")}
+ className={buttonVariants({
+ size,
+ variant: "primary",
+ className: cn("shadow-md transition-all active:shadow-none", className),
+ })}
+ onClick={() => {
+ posthog.capture(captureEvent);
+ }}
+ >
+ {children}
+ </Link>
+ );
+}
diff --git a/apps/landing/src/components/home/cta.tsx b/apps/landing/src/components/home/cta.tsx
new file mode 100644
index 000000000..06167567d
--- /dev/null
+++ b/apps/landing/src/components/home/cta.tsx
@@ -0,0 +1,75 @@
+import { cn } from "@rallly/ui";
+import type * as React from "react";
+import { Trans } from "react-i18next/TransWithoutContext";
+import { CtaButton } from "@/components/home/cta-button";
+import { FadeIn } from "@/components/home/fade-in";
+import { handwritten } from "@/fonts/handwritten";
+import { getTranslation } from "@/i18n/server";
+
+export async function Cta({
+ locale,
+ title,
+ description,
+ callToAction,
+}: {
+ locale: string;
+ title?: React.ReactNode;
+ description?: React.ReactNode;
+ callToAction?: React.ReactNode;
+}) {
+ const { t } = await getTranslation(locale, ["home"]);
+ return (
+ <section className="py-8 sm:py-24">
+ <FadeIn captureOnEnter="landing:final_cta_view">
+ <div className="grid gap-4 sm:grid-cols-2 sm:gap-6">
+ <h2 className="text-balance font-medium text-2xl text-gray-800 leading-tight tracking-tight sm:text-4xl">
+ {title ?? (
+ <Trans
+ t={t}
+ ns="home"
+ i18nKey="finalCtaTitle"
+ defaults="Ready to find the best time to meet?"
+ />
+ )}
+ </h2>
+ <p className="max-w-prose text-pretty text-gray-500 text-sm sm:text-balance sm:text-lg">
+ {description ?? (
+ <Trans
+ t={t}
+ ns="home"
+ i18nKey="finalCtaDescription"
+ defaults="Create a poll, share the link, and let everyone vote on times that work."
+ />
+ )}
+ </p>
+ </div>
+ <div className="mt-6 flex flex-col items-start gap-4">
+ <CtaButton captureEvent="landing:final_cta_click">
+ {callToAction ?? (
+ <Trans
+ t={t}
+ ns="home"
+ i18nKey="createAPoll"
+ defaults="Create a poll"
+ />
+ )}
+ </CtaButton>
+ <p
+ className={cn(
+ "whitespace-nowrap text-gray-600 text-xs",
+ handwritten.className,
+ "decoration underline decoration-2 decoration-gray-300 underline-offset-8",
+ )}
+ >
+ <Trans
+ t={t}
+ ns="home"
+ i18nKey="hint"
+ defaults="It's free! No login required."
+ />
+ </p>
+ </div>
+ </FadeIn>
+ </section>
+ );
+}
diff --git a/apps/landing/src/components/home/fade-in.tsx b/apps/landing/src/components/home/fade-in.tsx
new file mode 100644
index 000000000..04d5a8d77
--- /dev/null
+++ b/apps/landing/src/components/home/fade-in.tsx
@@ -0,0 +1,33 @@
+"use client";
+import { posthog } from "@rallly/posthog/client";
+import * as m from "motion/react-m";
+import type React from "react";
+
+export function FadeIn({
+ children,
+ className,
+ delay = 0,
+ amount,
+ captureOnEnter,
+}: {
+ children: React.ReactNode;
+ className?: string;
+ delay?: number;
+ amount?: "some" | "all";
+ captureOnEnter?: string;
+}) {
+ return (
+ <m.div
+ transition={{ delay, duration: 1, type: "spring", bounce: 0.3 }}
+ initial={{ opacity: 0, y: 20 }}
+ whileInView={{ opacity: 1, y: 0 }}
+ viewport={{ once: true, amount }}
+ onViewportEnter={
+ captureOnEnter ? () => posthog.capture(captureOnEnter) : undefined
+ }
+ className={className}
+ >
+ {children}
+ </m.div>
+ );
+}
diff --git a/apps/landing/src/components/home/final-cta.tsx b/apps/landing/src/components/home/final-cta.tsx
deleted file mode 100644
index 63c43efc9..000000000
--- a/apps/landing/src/components/home/final-cta.tsx
+++ /dev/null
@@ -1,92 +0,0 @@
-"use client";
-import { posthog } from "@rallly/posthog/client";
-import { buttonVariants, cn } from "@rallly/ui";
-import * as m from "motion/react-m";
-import Link from "next/link";
-import type React from "react";
-import { handwritten } from "@/fonts/handwritten";
-import { Trans } from "@/i18n/client/trans";
-import { linkToApp } from "@/lib/linkToApp";
-
-export const FinalCta = ({
- title,
- description,
- callToAction,
-}: {
- title?: React.ReactNode;
- description?: React.ReactNode;
- callToAction?: React.ReactNode;
-}) => {
- return (
- <m.div
- transition={{
- duration: 1,
- type: "spring",
- bounce: 0.3,
- }}
- initial={{ opacity: 0, y: 20 }}
- whileInView={{ opacity: 1, y: 0 }}
- viewport={{ once: true }}
- onViewportEnter={() => {
- posthog.capture("landing:final_cta_view");
- }}
- >
- <section className="space-y-8 py-8 text-center sm:py-24">
- <div className="space-y-4">
- <h2 className="text-pretty font-bold text-2xl tracking-tight sm:text-4xl">
- {title ?? (
- <Trans
- ns="home"
- i18nKey="finalCtaTitle"
- defaults="Ready to find the best time to meet?"
- />
- )}
- </h2>
- <p className="mx-auto max-w-2xl text-pretty text-base text-gray-600 sm:text-lg">
- {description ?? (
- <Trans
- ns="home"
- i18nKey="finalCtaDescription"
- defaults="Create a poll, share the link, and let everyone vote on times that work."
- />
- )}
- </p>
- </div>
- <div className="flex flex-col items-center gap-4">
- <Link
- href={linkToApp("/new")}
- className={buttonVariants({
- size: "xl",
- variant: "primary",
- className: "shadow-md transition-all active:shadow-none",
- })}
- onClick={() => {
- posthog.capture("landing:final_cta_click");
- }}
- >
- {callToAction ?? (
- <Trans
- ns="home"
- i18nKey="createAPoll"
- defaults="Create a meeting poll"
- />
- )}
- </Link>
- <p
- className={cn(
- "whitespace-nowrap text-center text-gray-600 text-xs",
- handwritten.className,
- "decoration underline decoration-2 decoration-gray-300 underline-offset-8",
- )}
- >
- <Trans
- ns="home"
- i18nKey="hint"
- defaults="It's free! No login required."
- />
- </p>
- </div>
- </section>
- </m.div>
- );
-};
diff --git a/apps/landing/src/components/home/hero-demo/demo-frame.tsx b/apps/landing/src/components/home/hero-demo/demo-frame.tsx
index 178083dfc..7829727b4 100644
--- a/apps/landing/src/components/home/hero-demo/demo-frame.tsx
+++ b/apps/landing/src/components/home/hero-demo/demo-frame.tsx
@@ -11,7 +11,7 @@ export const DemoFrame = ({
}) => (
<div
className={cn(
- "rounded-[2.2rem] border border-white/60 bg-white/60 p-1.5 shadow-sm backdrop-blur-xl",
+ "rounded-3xl border border-white/60 bg-white/60 p-1.5 shadow-sm backdrop-blur-xl",
className,
)}
>
@@ -26,12 +26,7 @@ export const DemoScreen = ({
children: React.ReactNode;
className?: string;
}) => (
- <div
- className={cn(
- "overflow-hidden rounded-[1.8rem] border bg-white",
- className,
- )}
- >
+ <div className={cn("overflow-hidden rounded-2xl border bg-white", className)}>
{children}
</div>
);
diff --git a/apps/landing/src/components/home/hero-demo/desktop-demo.tsx b/apps/landing/src/components/home/hero-demo/desktop-demo.tsx
index 5defd85b8..1feaebe24 100644
--- a/apps/landing/src/components/home/hero-demo/desktop-demo.tsx
+++ b/apps/landing/src/components/home/hero-demo/desktop-demo.tsx
@@ -41,8 +41,8 @@ export const DesktopDemo = ({
}
return (
- <DemoFrame className="rounded-2xl lg:rounded-[2.2rem]">
- <DemoScreen className="rounded-xl bg-gray-100 p-4 sm:p-6 lg:rounded-[1.8rem]">
+ <DemoFrame>
+ <DemoScreen className="bg-gray-100 p-4 sm:p-6">
<div className="mx-auto w-fit space-y-3 text-left">
<div className="overflow-hidden rounded-xl border border-gray-200/60 bg-white">
<div className="h-1.5 bg-linear-to-r from-indigo-500 to-violet-500" />
diff --git a/apps/landing/src/components/home/hero-demo/hero-demo.tsx b/apps/landing/src/components/home/hero-demo/hero-demo.tsx
index f02e7aed4..35af7608f 100644
--- a/apps/landing/src/components/home/hero-demo/hero-demo.tsx
+++ b/apps/landing/src/components/home/hero-demo/hero-demo.tsx
@@ -33,7 +33,7 @@ const CachedDemo = async ({
const scores = getScores(days);
return (
- <div className="relative z-10 mb-12 md:mx-auto md:w-fit md:max-w-full">
+ <div className="relative z-10 mb-12 md:mx-auto md:max-w-full">
<div className="mr-[calc(50%-50vw)] overflow-hidden [mask-image:linear-gradient(to_left,transparent,black_6rem)] md:mr-0 md:overflow-visible md:[mask-image:none]">
<div
aria-hidden="true"
diff --git a/apps/landing/src/components/home/hero-demo/try-it-prompt.tsx b/apps/landing/src/components/home/hero-demo/try-it-prompt.tsx
index 709ab4eea..12fd47f49 100644
--- a/apps/landing/src/components/home/hero-demo/try-it-prompt.tsx
+++ b/apps/landing/src/components/home/hero-demo/try-it-prompt.tsx
@@ -23,7 +23,7 @@ export const TryItPrompt = ({ text }: { text: string }) => (
handwritten.className,
)}
>
- <span className="-rotate-2 whitespace-nowrap rounded-full bg-gray-800/80 px-2.5 py-1 text-sm text-white backdrop-blur-sm">
+ <span className="whitespace-nowrap rounded-full bg-gray-800/80 px-2.5 py-1 text-sm text-white backdrop-blur-sm">
{text}
</span>
<ScribbleArrow className="mt-2.5 -ml-0.5 size-6 text-gray-800/80" />
diff --git a/apps/landing/src/components/home/hero.tsx b/apps/landing/src/components/home/hero.tsx
index 09902b0d3..2d8d4cef6 100644
--- a/apps/landing/src/components/home/hero.tsx
+++ b/apps/landing/src/components/home/hero.tsx
@@ -1,85 +1,60 @@
-"use client";
-import { posthog } from "@rallly/posthog/client";
-import { buttonVariants, cn } from "@rallly/ui";
import { Badge } from "@rallly/ui/badge";
-import { ChevronRightIcon } from "lucide-react";
+import { ArrowRightIcon } from "lucide-react";
import Link from "next/link";
import type * as React from "react";
-import { handwritten } from "@/fonts/handwritten";
-import { Trans } from "@/i18n/client/trans";
-import { linkToApp } from "@/lib/linkToApp";
+import { Trans } from "react-i18next/TransWithoutContext";
+import { HeroDemo } from "@/components/home/hero-demo/hero-demo";
+import { getTranslation } from "@/i18n/server";
-export const MarketingHero = ({
+export async function Hero({
+ locale,
title,
description,
- callToAction,
- demo,
}: {
- title: string;
- description: string;
- callToAction: React.ReactNode;
- demo: React.ReactNode;
-}) => {
+ locale: string;
+ title: React.ReactNode;
+ description: React.ReactNode;
+}) {
+ const { t } = await getTranslation(locale, ["home"]);
return (
- <article className="max-w-full space-y-16 text-center">
- <header className="pt-6 sm:pt-28">
- <div>
- <Link
- href="/blog/mobile-voting-redesign"
- className="group relative inline-flex items-center gap-x-2 rounded-full border bg-gray-50 py-1 pr-4 pl-1 text-gray-600 text-sm leading-6 hover:bg-white"
- >
- <Badge variant="secondary">
- <Trans ns="home" i18nKey="new" defaults="New" />
- </Badge>
- <span className="flex items-center gap-x-1">
- <Trans
- ns="home"
- i18nKey="mobileVotingBlog"
- defaults="A clearer way to vote on your phone"
- />
- <ChevronRightIcon
- className="-mr-1 size-4 transition-transform group-active:translate-x-0.5"
- aria-hidden="true"
- />
- </span>
- </Link>
- </div>
- <h1 className="mt-6 mb-2 text-pretty font-bold text-2xl tracking-tight sm:mb-4 sm:text-5xl">
- {title}
- </h1>
- <h2 className="mx-auto max-w-3xl text-pretty font-normal text-base text-gray-600 sm:text-xl sm:leading-relaxed">
- {description}
- </h2>
- <div className="mt-8 flex flex-col items-center justify-center gap-4">
- <Link
- href={linkToApp("/new")}
- className={buttonVariants({
- size: "xl",
- variant: "primary",
- className: "shadow-md transition-all active:shadow-none",
- })}
- onClick={() => {
- posthog.capture("landing:hero_cta_click");
- }}
- >
- {callToAction}
- </Link>
- <p
- className={cn(
- "whitespace-nowrap text-center text-gray-600 text-xs",
- handwritten.className,
- "decoration underline decoration-2 decoration-gray-300 underline-offset-8",
- )}
- >
+ <section className="pt-8 sm:py-16">
+ <h1 className="text-balance font-medium text-3xl text-gray-800 tracking-tight sm:text-5xl">
+ {title}
+ </h1>
+ <p className="mt-4 text-balance font-normal text-gray-500 text-sm leading-relaxed sm:text-lg">
+ {description}
+ </p>
+ <div className="mt-8">
+ <Link
+ href="/blog/mobile-voting-redesign"
+ prefetch={false}
+ className="group -ml-1 inline-flex items-center gap-x-2 rounded-full bg-gray-200/50 p-1 pr-3 text-sm transition-all hover:bg-gray-200"
+ >
+ <Badge variant="primary" className="rounded-full">
<Trans
+ t={t}
ns="home"
- i18nKey="hint"
- defaults="It's free! No login required."
+ i18nKey="mobileVotingBlogBadge"
+ defaults="New"
/>
- </p>
- </div>
- </header>
- <section>{demo}</section>
- </article>
+ </Badge>
+ <span className="flex items-center gap-x-1">
+ <Trans
+ t={t}
+ ns="home"
+ i18nKey="mobileVotingBlog"
+ defaults="A clearer way to vote on your phone"
+ />
+ </span>
+ <ArrowRightIcon
+ className="size-3 text-gray-500 transition-transform group-hover:translate-x-0.5 group-active:translate-x-0.5"
+ aria-hidden="true"
+ />
+ </Link>
+ </div>
+ <div className="mt-6 sm:mt-16">
+ <HeroDemo locale={locale} />
+ </div>
+ </section>
);
-};
+}
diff --git a/apps/landing/src/components/home/mentions.tsx b/apps/landing/src/components/home/mentions.tsx
new file mode 100644
index 000000000..3b1d1fb10
--- /dev/null
+++ b/apps/landing/src/components/home/mentions.tsx
@@ -0,0 +1,111 @@
+import Image from "next/image";
+import type React from "react";
+import { Trans } from "react-i18next/TransWithoutContext";
+import { FadeIn } from "@/components/home/fade-in";
+import { getTranslation } from "@/i18n/server";
+
+const Mention = ({
+ logo,
+ delay = 0,
+ children,
+}: React.PropsWithChildren<{
+ logo: React.ReactNode;
+ delay?: number;
+}>) => {
+ return (
+ <FadeIn delay={delay} className="flex flex-col space-y-4 rounded-md">
+ <div className="flex items-start justify-between">{logo}</div>
+ <p className="grow text-base">{children}</p>
+ </FadeIn>
+ );
+};
+
+export async function Mentions({ locale }: { locale: string }) {
+ const { t } = await getTranslation(locale, ["home"]);
+ return (
+ <section className="py-8 sm:py-16">
+ <div className="grid gap-8 md:grid-cols-4">
+ <Mention
+ delay={0.25}
+ logo={
+ <div className="relative h-8 w-14">
+ <Image
+ src="/static/images/pcmag-logo.svg"
+ alt="PCMag"
+ fill
+ style={{ objectFit: "contain" }}
+ />
+ </div>
+ }
+ >
+ <Trans
+ t={t}
+ ns="home"
+ i18nKey="pcmagQuote"
+ defaults="“Set up a scheduling poll in as little time as possible.”"
+ />
+ </Mention>
+ <Mention
+ delay={0.5}
+ logo={
+ <div className="relative h-8 w-24">
+ <Image
+ src="/static/images/hubspot-logo.svg"
+ alt="HubSpot"
+ fill
+ style={{ objectFit: "contain" }}
+ />
+ </div>
+ }
+ >
+ <Trans
+ t={t}
+ ns="home"
+ i18nKey="hubspotQuote"
+ defaults="“The simplest choice for availability polling for large groups.”"
+ />
+ </Mention>
+ <Mention
+ delay={0.75}
+ logo={
+ <div className="relative h-8 w-32">
+ <Image
+ src="/static/images/goodfirms-logo.svg"
+ alt="Goodfirms"
+ fill
+ style={{ objectFit: "contain" }}
+ />
+ </div>
+ }
+ >
+ <Trans
+ t={t}
+ ns="home"
+ i18nKey="goodfirmsQuote"
+ defaults="“Unique in its simplicity and requires minimum interaction time.”"
+ />
+ </Mention>
+ <Mention
+ delay={1}
+ logo={
+ <div className="relative h-8 w-20">
+ <Image
+ src="/static/images/popsci-logo.svg"
+ alt="PopSci"
+ fill
+ style={{ objectFit: "contain" }}
+ />
+ </div>
+ }
+ >
+ <Trans
+ t={t}
+ ns="home"
+ i18nKey="popsciQuote"
+ defaults="“The perfect pick if you want to keep your RSVPs simple.”"
+ />
+ </Mention>
+ </div>
+ </section>
+ );
+}
diff --git a/apps/landing/src/components/home/stats.tsx b/apps/landing/src/components/home/stats.tsx
new file mode 100644
index 000000000..8b866cc68
--- /dev/null
+++ b/apps/landing/src/components/home/stats.tsx
@@ -0,0 +1,29 @@
+import { Trans } from "react-i18next/TransWithoutContext";
+import { AnimatedStat } from "@/components/home/animated-number";
+import { getTranslation } from "@/i18n/server";
+import { getMonthlyPollCount, getMonthlyVoterCount } from "@/lib/data";
+
+export async function Stats({ locale }: { locale: string }) {
+ const [pollCount, voterCount] = await Promise.all([
+ getMonthlyPollCount(),
+ getMonthlyVoterCount(),
+ ]);
+ const { t } = await getTranslation(locale, ["home"]);
+
+ return (
+ <section className="py-8 sm:py-16">
+ <p className="mx-auto max-w-2xl text-balance text-center text-2xl text-gray-600">
+ <Trans
+ t={t}
+ ns="home"
+ i18nKey="statsLast30Days"
+ defaults="<b>{voterCount, plural, one {# person} other {# people}}</b> voted on <b>{pollCount, plural, one {# poll} other {# polls}}</b> in the last 30 days"
+ values={{ voterCount, pollCount }}
+ components={{
+ b: <AnimatedStat locale={locale} />,
+ }}
+ />
+ </p>
+ </section>
+ );
+}
diff --git a/apps/landing/src/components/home/testimonial.tsx b/apps/landing/src/components/home/testimonial.tsx
new file mode 100644
index 000000000..2ee6a0c60
--- /dev/null
+++ b/apps/landing/src/components/home/testimonial.tsx
@@ -0,0 +1,69 @@
+import { ArrowUpRight } from "lucide-react";
+import Image from "next/image";
+import Link from "next/link";
+import { Trans } from "react-i18next/TransWithoutContext";
+import { FadeIn } from "@/components/home/fade-in";
+import { getTranslation } from "@/i18n/server";
+
+export async function Testimonial({ locale }: { locale: string }) {
+ const { t } = await getTranslation(locale, ["home"]);
+ return (
+ <section className="py-8 sm:py-16">
+ <FadeIn amount="all" className="flex flex-col gap-y-8 sm:items-center">
+ <div className="relative h-[30px] w-[120px]">
+ <Image
+ src="/static/images/stars-5.svg"
+ fill
+ style={{ objectFit: "contain" }}
+ alt={t("fiveStars", { ns: "home", defaultValue: "5 stars" })}
+ />
+ </div>
+ <div className="sm:text-center">
+ <p className="max-w-xl font-medium text-lg leading-normal sm:text-center">
+ <Trans
+ t={t}
+ ns="home"
+ i18nKey="ericQuote"
+ defaults="“If your scheduling workflow lives in emails, I strongly encourage you to try and let Rallly simplify your scheduling tasks for a more organized and less stressful workday.”"
+ />
+ </p>
+ <p className="mt-1">
+ <Link
+ target="_blank"
+ className="text-gray-600 text-sm hover:underline"
+ href="https://www.trustpilot.com/reviews/645e1d1976733924e89d8203"
+ >
+ <Trans
+ t={t}
+ ns="home"
+ i18nKey="viaTrustpilot"
+ defaults="via Trustpilot"
+ />
+ <ArrowUpRight className="ml-1 inline size-3" />
+ </Link>
+ </p>
+ </div>
+ <div className="flex gap-x-4">
+ <Image
+ className="rounded-full"
+ src="/static/images/eric.png"
+ width={48}
+ height={48}
+ alt="Eric Fletcher"
+ />
+ <div>
+ <div className="font-semibold">Eric Fletcher</div>
+ <div className="text-gray-600 text-sm">
+ <Trans
+ t={t}
+ ns="home"
+ i18nKey="ericJobTitle"
+ defaults="Executive Assistant at MIT"
+ />
+ </div>
+ </div>
+ </div>
+ </FadeIn>
+ </section>
+ );
+}
diff --git a/apps/landing/src/components/marketing.tsx b/apps/landing/src/components/marketing.tsx
deleted file mode 100644
index 5cc29c925..000000000
--- a/apps/landing/src/components/marketing.tsx
+++ /dev/null
@@ -1,190 +0,0 @@
-"use client";
-import { ArrowUpRight } from "lucide-react";
-import * as m from "motion/react-m";
-import Image from "next/image";
-import Link from "next/link";
-import type React from "react";
-
-import { Trans } from "@/i18n/client/trans";
-
-const Mention = ({
- logo,
- children,
- delay = 0,
-}: React.PropsWithChildren<{
- logo: React.ReactNode;
- delay?: number;
-}>) => {
- return (
- <m.div
- transition={{
- delay,
- type: "spring",
- bounce: 0.3,
- }}
- initial={{ opacity: 0, y: 20 }}
- whileInView={{ opacity: 1, y: 0 }}
- viewport={{ once: true }}
- className="flex flex-col items-center space-y-4 rounded-md"
- >
- <div className="flex items-start justify-between">{logo}</div>
- <p className="grow text-center text-base">{children}</p>
- </m.div>
- );
-};
-
-export const MentionedBy = () => {
- return (
- <div>
- <div className="grid gap-8 md:grid-cols-4">
- <Mention
- delay={0.25}
- logo={
- <div className="relative h-8 w-14">
- <Image
- src="/static/images/pcmag-logo.svg"
- alt="PCMag"
- fill
- style={{ objectFit: "contain" }}
- />
- </div>
- }
- >
- <Trans
- ns="home"
- i18nKey="pcmagQuote"
- defaults="“Set up a scheduling poll in as little time as possible.”"
- />
- </Mention>
- <Mention
- delay={0.5}
- logo={
- <div className="relative h-8 w-24">
- <Image
- src="/static/images/hubspot-logo.svg"
- alt="HubSpot"
- fill
- style={{ objectFit: "contain" }}
- />
- </div>
- }
- >
- <Trans
- ns="home"
- i18nKey="hubspotQuote"
- defaults="“The simplest choice for availability polling for large groups.”"
- />
- </Mention>
- <Mention
- delay={0.75}
- logo={
- <div className="relative h-8 w-32">
- <Image
- src="/static/images/goodfirms-logo.svg"
- alt="Goodfirms"
- fill
- style={{ objectFit: "contain" }}
- />
- </div>
- }
- >
- <Trans
- ns="home"
- i18nKey="goodfirmsQuote"
- defaults="“Unique in its simplicity and requires minimum interaction time.”"
- />
- </Mention>
- <Mention
- delay={1}
- logo={
- <div className="relative h-8 w-20">
- <Image
- src="/static/images/popsci-logo.svg"
- alt="PopSci"
- fill
- style={{ objectFit: "contain" }}
- />
- </div>
- }
- >
- <Trans
- ns="home"
- i18nKey="popsciQuote"
- defaults="“The perfect pick if you want to keep your RSVPs simple.”"
- />
- </Mention>
- </div>
- </div>
- );
-};
-
-export const BigTestimonial = () => {
- return (
- <m.div
- transition={{
- duration: 1,
- type: "spring",
- bounce: 0.3,
- }}
- initial={{ opacity: 0, y: 20 }}
- whileInView={{ opacity: 1, y: 0 }}
- viewport={{ once: true, amount: "all" }}
- className="flex flex-col items-center gap-y-8"
- >
- <div className="relative h-[30px] w-[120px]">
- <Image
- src="/static/images/stars-5.svg"
- fill
- style={{ objectFit: "contain" }}
- alt="5 stars"
- />
- </div>
- <div className="text-center">
- <p className="max-w-xl text-center font-medium text-lg leading-normal">
- <Trans
- ns="home"
- i18nKey="ericQuote"
- defaults="“If your scheduling workflow lives in emails, I strongly encourage you to try and let Rallly simplify your scheduling tasks for a more organized and less stressful workday.”"
- />
- </p>
- <p className="mt-1">
- <Link
- target="_blank"
- className="text-gray-600 text-sm hover:underline"
- href="https://www.trustpilot.com/reviews/645e1d1976733924e89d8203"
- >
- <Trans
- ns="home"
- i18nKey="viaTrustpilot"
- defaults="via Trustpilot"
- />
- <ArrowUpRight className="ml-1 inline size-3" />
- </Link>
- </p>
- </div>
- <div className="flex gap-x-4">
- <Image
- className="rounded-full"
- src="/static/images/eric.png"
- width={48}
- height={48}
- alt="Eric Fletcher"
- />
- <div>
- <div className="font-semibold">Eric Fletcher</div>
- <div className="text-gray-600 text-sm">
- <Trans
- ns="home"
- i18nKey="ericJobTitle"
- defaults="Executive Assistant at MIT"
- />
- </div>
- </div>
- </div>
- </m.div>
- );
-};
-
-export const Marketing = ({ children }: React.PropsWithChildren) => {
- return <div className="space-y-12 sm:space-y-24">{children}</div>;
-};
diff --git a/apps/landing/src/components/sign-up-button.tsx b/apps/landing/src/components/sign-up-button.tsx
deleted file mode 100644
index 9247e6d74..000000000
--- a/apps/landing/src/components/sign-up-button.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-"use client";
-
-import { posthog } from "@rallly/posthog/client";
-import { buttonVariants } from "@rallly/ui";
-import Link from "next/link";
-import { Trans } from "@/i18n/client/trans";
-import { linkToApp } from "@/lib/linkToApp";
-
-export function SignUpButton() {
- return (
- <Link
- href={linkToApp("/login")}
- className={buttonVariants({ variant: "primary" })}
- onClick={() => {
- posthog.capture("landing:sign_up_button_click");
- }}
- >
- <Trans i18nKey="signUp" defaults="Sign up" />
- </Link>
- );
-}