Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
♿️ Fix axe WCAG 2.1 AA violations on the landing home page (#2938)
Luke Vella55b4e51e5e96
diff --git a/apps/landing/public/locales/en/common.json b/apps/landing/public/locales/en/common.jsonindex e463a1a9c..cfa295801 100644--- a/apps/landing/public/locales/en/common.json+++ b/apps/landing/public/locales/en/common.json@@ -4,7 +4,11 @@"cookiePolicy": "Cookie policy","discussions": "Discussions","footerCredit": "Made by <a>@imlukevella</a>",+ "footerDiscordLabel": "Join us on Discord",+ "footerGithubLabel": "View our GitHub repository",+ "footerLinkedinLabel": "Follow us on LinkedIn","footerSponsor": "This project is user-funded. Please consider supporting it by <a>donating</a>.",+ "footerXLabel": "Follow us on X","freeSchedulingPoll": "Free scheduling poll","getStarted": "Get started","goToHome": "Go to home",@@ -20,6 +24,7 @@"licensingThankYouTitle": "Thank you for your purchase!","links": "Links","login": "Login",+ "menu": "Menu","notFoundDescription": "We couldn't find the page you're looking for.","notFoundTitle": "404 not found","pricing": "Pricing",diff --git a/apps/landing/src/app/[locale]/(main)/footer.tsx b/apps/landing/src/app/[locale]/(main)/footer.tsxindex a2ad2bb31..119a1a480 100644--- a/apps/landing/src/app/[locale]/(main)/footer.tsx+++ b/apps/landing/src/app/[locale]/(main)/footer.tsx@@ -25,7 +25,7 @@ import { useTranslation } from "@/i18n/client/use-translation";const LanguageSelect = () => {const router = useRouter();const pathname = usePathname() ?? "";- const { i18n } = useTranslation();+ const { t, i18n } = useTranslation();return (<Selectitems={languages}@@ -46,7 +46,10 @@ const LanguageSelect = () => {router.replace(`/${newLocale}${newPath}`);}}>- <SelectTrigger className="w-full">+ <SelectTrigger+ className="w-full"+ aria-label={t("language", { defaultValue: "Language" })}+ ><SelectValue /></SelectTrigger><SelectContent>@@ -61,6 +64,7 @@ const LanguageSelect = () => {};export const Footer: React.FunctionComponent = () => {+ const { t } = useTranslation("common");return (<div className="mx-auto space-y-8"><div className="space-y-16 lg:flex lg:space-x-8 lg:space-y-0">@@ -73,7 +77,7 @@ export const Footer: React.FunctionComponent = () => {className="object-contain"/></div>- <div className="my-8 text-gray-500 text-sm">+ <div className="my-8 text-gray-600 text-sm"><p className="mb-4 leading-relaxed"><Transns="common"@@ -81,7 +85,7 @@ export const Footer: React.FunctionComponent = () => {components={{a: (<Link- className="font-normal text-gray-500 leading-loose underline hover:text-gray-800 hover:underline"+ className="font-normal text-gray-600 leading-loose underline hover:text-gray-800 hover:underline"href="https://support.rallly.co/contribute/donations"/>),@@ -95,7 +99,7 @@ export const Footer: React.FunctionComponent = () => {components={{a: (<Link- className="font-normal text-gray-500 leading-loose underline hover:text-gray-800 hover:underline"+ className="font-normal text-gray-600 leading-loose underline hover:text-gray-800 hover:underline"href="https://twitter.com/imlukevella"/>),@@ -107,32 +111,42 @@ export const Footer: React.FunctionComponent = () => {<atarget="_blank"href="https://x.com/ralllyco"- className="text-gray-500 text-sm hover:text-primary hover:no-underline"+ className="text-gray-600 text-sm hover:text-primary hover:no-underline"rel="noreferrer noopener"+ aria-label={t("footerXLabel", { defaultValue: "Follow us on X" })}><XIcon className="size-4" /></a><atarget="_blank"href="https://discord.gg/uzg4ZcHbuM"- className="text-gray-500 text-sm hover:text-primary hover:no-underline"+ className="text-gray-600 text-sm hover:text-primary hover:no-underline"rel="noreferrer noopener"+ aria-label={t("footerDiscordLabel", {+ defaultValue: "Join us on Discord",+ })}><DiscordIcon className="size-4" /></a><atarget="_blank"href="https://www.linkedin.com/company/rallly"- className="text-gray-500 text-sm hover:text-primary hover:no-underline"+ className="text-gray-600 text-sm hover:text-primary hover:no-underline"rel="noreferrer noopener"+ aria-label={t("footerLinkedinLabel", {+ defaultValue: "Follow us on LinkedIn",+ })}><LinkedinIcon className="size-4" /></a><atarget="_blank"href="https://github.com/lukevella/rallly"- className="text-gray-500 text-sm hover:text-primary hover:no-underline"+ className="text-gray-600 text-sm hover:text-primary hover:no-underline"rel="noreferrer noopener"+ aria-label={t("footerGithubLabel", {+ defaultValue: "View our GitHub repository",+ })}><GithubIcon className="size-4" /></a>@@ -145,7 +159,7 @@ export const Footer: React.FunctionComponent = () => {<ul className="grid gap-2 text-sm"><li><LinkBase- className="inline-block font-normal text-gray-500 hover:text-gray-800 hover:no-underline"+ className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"href="/pricing"><Trans i18nKey="pricing" defaults="Pricing" />@@ -154,7 +168,7 @@ export const Footer: React.FunctionComponent = () => {<li><atarget="_blank"- className="inline-block font-normal text-gray-500 hover:text-gray-800 hover:no-underline"+ className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"href="https://github.com/lukevella/rallly/discussions"rel="noopener">@@ -168,7 +182,7 @@ export const Footer: React.FunctionComponent = () => {<li><LinkBasehref="/blog"- className="inline-block font-normal text-gray-500 hover:text-gray-800 hover:no-underline"+ className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"><Trans ns="common" i18nKey="blog" defaults="Blog" /></LinkBase>@@ -176,7 +190,7 @@ export const Footer: React.FunctionComponent = () => {<li><ahref="https://support.rallly.co"- className="inline-block font-normal text-gray-500 hover:text-gray-800 hover:no-underline"+ className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"><Trans ns="common" i18nKey="support" defaults="Support" /></a>@@ -184,7 +198,7 @@ export const Footer: React.FunctionComponent = () => {<li><ahref="https://rallly.openstatus.dev"- className="inline-block font-normal text-gray-500 hover:text-gray-800 hover:no-underline"+ className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"><Trans ns="common" i18nKey="status" defaults="Status" /></a>@@ -198,7 +212,7 @@ export const Footer: React.FunctionComponent = () => {<ul className="grid gap-2 text-sm"><li><LinkBase- className="inline-block font-normal text-gray-500 hover:text-gray-800 hover:no-underline"+ className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"href="/best-doodle-alternative"><Trans@@ -210,7 +224,7 @@ export const Footer: React.FunctionComponent = () => {</li><li><LinkBase- className="inline-block font-normal text-gray-500 hover:text-gray-800 hover:no-underline"+ className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"href="/when2meet-alternative"><Trans@@ -222,7 +236,7 @@ export const Footer: React.FunctionComponent = () => {</li><li><LinkBase- className="inline-block font-normal text-gray-500 hover:text-gray-800 hover:no-underline"+ className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"href="/free-scheduling-poll"><Trans@@ -243,7 +257,7 @@ export const Footer: React.FunctionComponent = () => {</div><ahref="https://support.rallly.co/contribute/translations"- className="inline-flex h-8 items-center rounded-md border px-3 text-gray-500 text-xs hover:border-primary hover:text-primary"+ className="inline-flex h-8 items-center rounded-md border px-3 text-gray-600 text-xs hover:border-primary hover:text-primary"><LanguagesIcon className="mr-2 size-5" /><Trans ns="common" i18nKey="volunteerTranslator" /> →@@ -255,7 +269,7 @@ export const Footer: React.FunctionComponent = () => {<li><Linkhref="/privacy-policy"- className="inline-block font-normal text-gray-500 hover:text-gray-800 hover:no-underline"+ className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"><Trans ns="common" i18nKey="privacyPolicy" /></Link>@@ -263,7 +277,7 @@ export const Footer: React.FunctionComponent = () => {<li><Linkhref="/cookie-policy"- className="inline-block font-normal text-gray-500 hover:text-gray-800 hover:no-underline"+ className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"><Trans ns="common" i18nKey="cookiePolicy" /></Link>@@ -271,7 +285,7 @@ export const Footer: React.FunctionComponent = () => {<li><Linkhref="/terms-of-use"- className="inline-block font-normal text-gray-500 hover:text-gray-800 hover:no-underline"+ className="inline-block font-normal text-gray-600 hover:text-gray-800 hover:no-underline"><Trans ns="common" i18nKey="termsOfUse" /></Link>diff --git a/apps/landing/src/app/[locale]/(main)/layout.tsx b/apps/landing/src/app/[locale]/(main)/layout.tsxindex c39ff10fa..f6fc8278e 100644--- a/apps/landing/src/app/[locale]/(main)/layout.tsx+++ b/apps/landing/src/app/[locale]/(main)/layout.tsx@@ -82,7 +82,13 @@ export default async function Root(props: {<div className="flex items-center justify-center lg:hidden"><DropdownMenu><DropdownMenuTrigger- render={<Button size="sm" variant="ghost" />}+ render={+ <Button+ size="sm"+ variant="ghost"+ aria-label={t("menu", { defaultValue: "Menu" })}+ />+ }><Icon><MenuIcon />diff --git a/apps/landing/src/components/home/final-cta.tsx b/apps/landing/src/components/home/final-cta.tsxindex f397bc40c..63c43efc9 100644--- a/apps/landing/src/components/home/final-cta.tsx+++ b/apps/landing/src/components/home/final-cta.tsx@@ -42,7 +42,7 @@ export const FinalCta = ({/>)}</h2>- <p className="mx-auto max-w-2xl text-pretty text-base text-gray-500 sm:text-lg">+ <p className="mx-auto max-w-2xl text-pretty text-base text-gray-600 sm:text-lg">{description ?? (<Transns="home"diff --git a/apps/landing/src/components/home/hero.tsx b/apps/landing/src/components/home/hero.tsxindex f11aa3f7a..09902b0d3 100644--- a/apps/landing/src/components/home/hero.tsx+++ b/apps/landing/src/components/home/hero.tsx@@ -47,7 +47,7 @@ export const MarketingHero = ({<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-500 sm:text-xl sm:leading-relaxed">+ <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">diff --git a/apps/landing/src/components/marketing.tsx b/apps/landing/src/components/marketing.tsxindex 0db20135a..5cc29c925 100644--- a/apps/landing/src/components/marketing.tsx+++ b/apps/landing/src/components/marketing.tsx@@ -150,7 +150,7 @@ export const BigTestimonial = () => {<p className="mt-1"><Linktarget="_blank"- className="text-gray-500 text-sm hover:underline"+ className="text-gray-600 text-sm hover:underline"href="https://www.trustpilot.com/reviews/645e1d1976733924e89d8203"><Trans@@ -172,7 +172,7 @@ export const BigTestimonial = () => {/><div><div className="font-semibold">Eric Fletcher</div>- <div className="text-gray-500 text-sm">+ <div className="text-gray-600 text-sm"><Transns="home"i18nKey="ericJobTitle"