Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
💄 Align the landing phone demo to an option column and use the body font in its prompt (#3221)
Luke Vella32b211399bbe
diff --git a/apps/landing/src/components/home/hero-demo/hero-demo.tsx b/apps/landing/src/components/home/hero-demo/hero-demo.tsxindex 364f6be20..11bf8ea84 100644--- a/apps/landing/src/components/home/hero-demo/hero-demo.tsx+++ b/apps/landing/src/components/home/hero-demo/hero-demo.tsx@@ -65,7 +65,10 @@ const CachedDemo = async ({/></div></div>- <div className="hidden lg:absolute lg:right-6 lg:-bottom-12 lg:block lg:w-[320px]">+ {/* The grid is centred in the frame, so the phone is anchored to the+ frame's centre rather than its edge: its screen's left edge lands on+ the boundary of the sixth option column at any lg viewport width. */}+ <div className="hidden lg:absolute lg:-bottom-12 lg:left-[calc(50%+197px)] lg:block lg:w-[320px]"><TryItPrompttext={t("heroDemoTryIt", {ns: "home",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.tsxindex 6fbf306c4..cf0d0e1da 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@@ -1,6 +1,3 @@-import { cn } from "@rallly/ui";-import { handwritten } from "@/fonts/handwritten";-const ScribbleArrow = ({ className }: { className?: string }) => (<svgviewBox="0 0 30 30"@@ -17,13 +14,8 @@ const ScribbleArrow = ({ className }: { className?: string }) => ();export const TryItPrompt = ({ text }: { text: string }) => (- <div- className={cn(- "pointer-events-none absolute -top-9 right-2 z-10 flex items-start text-gray-600",- handwritten.className,- )}- >- <span className="whitespace-nowrap rounded-full bg-gray-900 px-2.5 py-1 text-sm text-white">+ <div className="pointer-events-none absolute -top-9 right-2 z-10 flex items-start text-gray-600">+ <span className="whitespace-nowrap rounded-full bg-gray-900 px-3 py-1 text-sm text-white">{text}</span><ScribbleArrow className="mt-2.5 -ml-0.5 size-6 text-gray-900" />