Skip to content

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

💄 Reframe the landing hero around a product definition (#3219)

Luke Vellaeacda378156f
diff --git a/apps/landing/public/locales/en/home.json b/apps/landing/public/locales/en/home.json
index 9212d7786..9aebe410e 100644
--- a/apps/landing/public/locales/en/home.json
+++ b/apps/landing/public/locales/en/home.json
@@ -52,7 +52,7 @@
"doodleComparisonSelfHosting": "Self-hostable",
"doodleComparisonTimeZones": "Automatic time zone conversion",
"doodleComparisonTitle": "How Rallly compares to Doodle",
- "emailInvitesBlog": "Invite people to your poll by email and see who has responded",
+ "emailInvitesAnnouncement": "Introducing email invites",
"emailInvitesBlogBadge": "New",
"ericJobTitle": "Executive Assistant at MIT",
"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.”",
@@ -242,7 +242,7 @@
"sportsClubsMetaTitle": "Scheduling for Sports Clubs and Teams",
"sportsClubsTitle": "Scheduling for sports clubs and teams",
"statsLast30Days": "<0>{voterCount, plural, one {# person} other {# people}}</0> voted on <1>{pollCount, plural, one {# poll} other {# polls}}</1> in the last 30 days",
- "subheading": "Create a poll, share the link, and let everyone vote on the times that work. It's free and nobody needs an account.",
+ "subheading": "Rallly is the meeting poll tool for scheduling groups. Propose a few times, share a link, and everyone votes on when they can make it.",
"thesisDefenseDescription": "Line up the supervisor, the internal examiner and an external in another country without a month of email. Share one link, let each examiner mark what works in their own time zone, and confirm the slot. Free, and examiners do not need an account.",
"thesisDefenseFaqBranding": "Can polls carry our university branding?",
"thesisDefenseFaqBrandingAnswer": "With <0>Rallly Pro</0> you can add your own logo and colours and remove Rallly attribution, so a poll you send to an external examiner looks like it came from your department. Everything else is free to use.",
diff --git a/apps/landing/src/app/[locale]/(main)/page.tsx b/apps/landing/src/app/[locale]/(main)/page.tsx
index ee7add6c2..e7e1001d5 100644
--- a/apps/landing/src/app/[locale]/(main)/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/page.tsx
@@ -37,9 +37,10 @@ export default async function Page(props: {
})}
description={t("subheading", {
defaultValue:
- "Create a poll, share the link, and let everyone vote on the times that work. It's free and nobody needs an account.",
+ "Rallly is the meeting poll tool for scheduling groups. Propose a few times, share a link, and everyone votes on when they can make it.",
ns: "home",
})}
+ descriptionClassName="max-w-[600px]"
announcement={
<HeroAnnouncement
href="/blog/introducing-email-invites"
@@ -55,8 +56,8 @@ export default async function Page(props: {
<Trans
t={t}
ns="home"
- i18nKey="emailInvitesBlog"
- defaults="Invite people to your poll by email and see who has responded"
+ i18nKey="emailInvitesAnnouncement"
+ defaults="Introducing email invites"
/>
</HeroAnnouncement>
}
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 7829727b4..f562c1f53 100644
--- a/apps/landing/src/components/home/hero-demo/demo-frame.tsx
+++ b/apps/landing/src/components/home/hero-demo/demo-frame.tsx
@@ -1,7 +1,9 @@
import { cn } from "@rallly/ui";
// The shared device bezel: glass frame, identical corner treatment for the
-// desktop and phone shots, differing only in size.
+// desktop and phone shots, differing only in size. The screen radius is the
+// frame radius minus the 1px border and 6px padding so the corners stay
+// concentric.
export const DemoFrame = ({
children,
className,
@@ -26,7 +28,9 @@ export const DemoScreen = ({
children: React.ReactNode;
className?: string;
}) => (
- <div className={cn("overflow-hidden rounded-2xl border bg-white", className)}>
+ <div
+ className={cn("overflow-hidden rounded-[17px] border bg-white", className)}
+ >
{children}
</div>
);
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 82c38da47..364f6be20 100644
--- a/apps/landing/src/components/home/hero-demo/hero-demo.tsx
+++ b/apps/landing/src/components/home/hero-demo/hero-demo.tsx
@@ -50,11 +50,11 @@ const CachedDemo = async ({
const scores = getScores(days, demoPreset.participants);
return (
- <div className="relative z-10 select-none md:mx-auto md:max-w-full lg:mb-12">
+ <div className="relative z-10 select-none md:mx-auto md:max-w-full lg:-mx-6 lg:mb-12 lg:max-w-none">
<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"
- className="w-max [zoom:0.65] md:[zoom:0.75] lg:[zoom:1]"
+ className="w-max [zoom:0.65] lg:w-auto md:[zoom:0.75] lg:[zoom:1]"
>
<DesktopDemo
locale={locale}
@@ -65,7 +65,7 @@ const CachedDemo = async ({
/>
</div>
</div>
- <div className="hidden lg:absolute lg:-right-6 lg:-bottom-12 lg:block lg:w-[320px]">
+ <div className="hidden lg:absolute lg:right-6 lg:-bottom-12 lg:block lg:w-[320px]">
<TryItPrompt
text={t("heroDemoTryIt", {
ns: "home",
diff --git a/apps/landing/src/components/home/hero.tsx b/apps/landing/src/components/home/hero.tsx
index 7f9fcd4db..2d6838d19 100644
--- a/apps/landing/src/components/home/hero.tsx
+++ b/apps/landing/src/components/home/hero.tsx
@@ -1,5 +1,4 @@
import { cn } from "@rallly/ui";
-import { Badge } from "@rallly/ui/badge";
import { ArrowRightIcon } from "lucide-react";
import type * as React from "react";
import { LinkBase } from "@/i18n/client/link";
@@ -17,14 +16,18 @@ export function HeroAnnouncement({
<LinkBase
href={href}
prefetch={false}
- className="group -ml-1 inline-flex max-w-full items-center gap-x-2 rounded-full bg-gray-200/50 p-1 pr-3 text-sm transition-colors hover:bg-gray-200"
+ className="group inline text-pretty text-sm/6"
>
- <Badge variant="primary" className="shrink-0 rounded-full">
- {badge}
- </Badge>
- <span className="min-w-0 truncate">{children}</span>
+ <span
+ className="mr-2.5 inline-block size-2 rounded-full bg-primary align-[1px]"
+ aria-hidden="true"
+ />
+ <span className="sr-only">{badge} </span>
+ <span className="text-gray-500 transition-colors group-hover:text-gray-800">
+ {children}
+ </span>
<ArrowRightIcon
- className="size-3 shrink-0 text-gray-500 transition-transform group-hover:translate-x-0.5 group-active:translate-x-0.5"
+ className="ml-1.5 inline size-3.5 align-[-2px] text-gray-400 transition-transform group-hover:translate-x-0.5 group-active:translate-x-0.5"
aria-hidden="true"
/>
</LinkBase>
@@ -39,6 +42,7 @@ export function Hero({
className,
centered = false,
wideDescription = false,
+ descriptionClassName,
}: {
title: React.ReactNode;
description: React.ReactNode;
@@ -47,9 +51,20 @@ export function Hero({
className?: string;
centered?: boolean;
wideDescription?: boolean;
+ descriptionClassName?: string;
}) {
return (
<div className={cn(centered && "text-center", className)}>
+ {announcement ? (
+ <div
+ className={cn(
+ "mb-6 flex",
+ centered ? "justify-center" : "justify-start",
+ )}
+ >
+ {announcement}
+ </div>
+ ) : null}
<h1
className={cn(
"max-w-[700px] text-balance font-medium text-3xl text-gray-800 tracking-tight sm:text-[2.75rem]/none",
@@ -63,11 +78,11 @@ export function Hero({
"mt-4 text-pretty font-normal text-base/6 text-gray-500 sm:text-lg sm:leading-relaxed",
wideDescription ? "max-w-[760px]" : "max-w-[620px]",
centered && "mx-auto",
+ descriptionClassName,
)}
>
{description}
</p>
- {announcement ? <div className="mt-8">{announcement}</div> : null}
{children ? <div className="mt-6 sm:mt-16">{children}</div> : null}
</div>
);