Skip to content

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

💄 Redesign landing testimonial and polish hero/stats spacing (#2978)

Luke Vellacbedc180e429
diff --git a/apps/landing/public/static/images/mit-logo.svg b/apps/landing/public/static/images/mit-logo.svg
new file mode 100644
index 000000000..6bb2c1cb3
--- /dev/null
+++ b/apps/landing/public/static/images/mit-logo.svg
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" height="166" width="321" shape-rendering="crispEdges">
+<g stroke-width="35" stroke="#A31F34">
+<path d="m17.5,0v166m57-166v113m57-113v166m57-166v33m58,20v113"/>
+<path d="m188.5,53v113" stroke="#8A8B8C"/>
+<path d="m229,16.5h92" stroke-width="33"/>
+</g>
+</svg>
diff --git a/apps/landing/src/app/[locale]/(main)/page.tsx b/apps/landing/src/app/[locale]/(main)/page.tsx
index a68a59b3e..4c8dc5a84 100644
--- a/apps/landing/src/app/[locale]/(main)/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/page.tsx
@@ -17,19 +17,21 @@ export default async function Page(props: {
const { t } = await getTranslation(locale, ["home", "common"]);
return (
<div className="divide-y">
- <Hero
- locale={locale}
- title={t("headline", {
- defaultValue: "Find the best time to meet",
- ns: "home",
- })}
- 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.",
- ns: "home",
- })}
- />
- <Stats locale={locale} />
+ <div>
+ <Hero
+ locale={locale}
+ title={t("headline", {
+ defaultValue: "Find the best time to meet",
+ ns: "home",
+ })}
+ 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.",
+ ns: "home",
+ })}
+ />
+ <Stats locale={locale} className="pt-4 sm:pt-0" />
+ </div>
<Testimonial locale={locale} />
<Mentions locale={locale} />
<Cta locale={locale} />
diff --git a/apps/landing/src/components/home/cta.tsx b/apps/landing/src/components/home/cta.tsx
index f21e9bf2b..3c7610be6 100644
--- a/apps/landing/src/components/home/cta.tsx
+++ b/apps/landing/src/components/home/cta.tsx
@@ -20,7 +20,7 @@ export async function Cta({
const { t } = await getTranslation(locale, ["home"]);
return (
<section className="py-8 sm:py-24">
- <FadeIn captureOnEnter="landing:final_cta_view">
+ <FadeIn amount="all" 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 ?? (
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 35af7608f..891d97b4a 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:max-w-full">
+ <div className="relative z-10 md:mx-auto md:max-w-full lg:mb-12">
<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/stats.tsx b/apps/landing/src/components/home/stats.tsx
index 8b866cc68..87fedf42c 100644
--- a/apps/landing/src/components/home/stats.tsx
+++ b/apps/landing/src/components/home/stats.tsx
@@ -1,9 +1,16 @@
+import { cn } from "@rallly/ui";
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 }) {
+export async function Stats({
+ locale,
+ className,
+}: {
+ locale: string;
+ className?: string;
+}) {
const [pollCount, voterCount] = await Promise.all([
getMonthlyPollCount(),
getMonthlyVoterCount(),
@@ -11,8 +18,8 @@ export async function Stats({ locale }: { locale: string }) {
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">
+ <section className={cn("py-8 sm:py-16", className)}>
+ <p className="mx-auto max-w-2xl text-balance text-center text-gray-600 text-lg sm:text-2xl">
<Trans
t={t}
ns="home"
diff --git a/apps/landing/src/components/home/testimonial.tsx b/apps/landing/src/components/home/testimonial.tsx
index 2ee6a0c60..b68d38d3e 100644
--- a/apps/landing/src/components/home/testimonial.tsx
+++ b/apps/landing/src/components/home/testimonial.tsx
@@ -1,6 +1,4 @@
-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";
@@ -9,47 +7,24 @@ 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" })}
+ <FadeIn
+ amount="all"
+ className="flex flex-col gap-8 sm:flex-row sm:items-start sm:justify-between sm:gap-16"
+ >
+ <p className="max-w-2xl text-xl leading-normal sm:text-2xl">
+ <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.”"
/>
- </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">
+ </p>
+ <div className="flex shrink-0 flex-col gap-y-4 sm:items-end sm:text-right">
<Image
- className="rounded-full"
- src="/static/images/eric.png"
- width={48}
- height={48}
- alt="Eric Fletcher"
+ src="/static/images/mit-logo.svg"
+ width={54}
+ height={28}
+ alt=""
/>
<div>
<div className="font-semibold">Eric Fletcher</div>
@@ -62,6 +37,13 @@ export async function Testimonial({ locale }: { locale: string }) {
/>
</div>
</div>
+ <Image
+ className="rounded-full"
+ src="/static/images/eric.png"
+ width={48}
+ height={48}
+ alt=""
+ />
</div>
</FadeIn>
</section>