Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
♻️ Use locale-aware links for landing page internal cross-links (#3136)
Luke Vella24f87b50bbd8
diff --git a/apps/landing/src/app/[locale]/(main)/dpa/page.tsx b/apps/landing/src/app/[locale]/(main)/dpa/page.tsxindex 46fcf0b61..ced3a466c 100644--- a/apps/landing/src/app/[locale]/(main)/dpa/page.tsx+++ b/apps/landing/src/app/[locale]/(main)/dpa/page.tsx@@ -3,6 +3,7 @@import type { Metadata } from "next";import { cacheLife } from "next/cache";import { Section } from "@/components/section";+import { LinkBase } from "@/i18n/client/link";export default async function DataProcessingAgreement() {cacheLife("max");@@ -15,11 +16,11 @@ export default async function DataProcessingAgreement() {<div className="longform mt-8 max-w-2xl"><p>This Data Processing Agreement ("DPA") forms part of the{" "}- <a href="/terms-of-use">Terms of Use</a> between Stack Snap Ltd- ("we", "us", "our") and the customer- ("you", "your") and governs our processing of- personal data on your behalf when we provide the hosted Rallly service- at rallly.co.+ <LinkBase href="/terms-of-use">Terms of Use</LinkBase> between Stack+ Snap Ltd ("we", "us", "our") and the+ customer ("you", "your") and governs our+ processing of personal data on your behalf when we provide the hosted+ Rallly service at rallly.co.</p><p>This DPA is incorporated into the Terms of Use by reference and@@ -77,7 +78,7 @@ export default async function DataProcessingAgreement() {personal data we process for our own purposes: managing accounts andbilling, securing and improving the Service, and communicating withusers. That processing is described in our{" "}- <a href="/privacy-policy">Privacy Policy</a>.+ <LinkBase href="/privacy-policy">Privacy Policy</LinkBase>.</p><p>2.3 This DPA applies for as long as we process Customer Data. If there@@ -246,10 +247,10 @@ export default async function DataProcessingAgreement() {8.1 We will make available to you the information reasonably necessaryto demonstrate compliance with this DPA. We support this primarilythrough documentation: this DPA, our{" "}- <a href="/security">security page</a>, our publicly auditable source- code, our public real-time status page, and the audit reports and- certifications of our Sub-processors, which are available from each- provider.+ <LinkBase href="/security">security page</LinkBase>, our publicly+ auditable source code, our public real-time status page, and the audit+ reports and certifications of our Sub-processors, which are available+ from each provider.</p><p>8.2 Where that documentation is not sufficient to demonstrate@@ -311,7 +312,8 @@ export default async function DataProcessingAgreement() {<h2>Annex 1: Technical and organizational measures</h2><p>The measures below describe how we protect Customer Data. Further- detail is published on our <a href="/security">security page</a>.+ detail is published on our{" "}+ <LinkBase href="/security">security page</LinkBase>.</p><ul><li>diff --git a/apps/landing/src/app/[locale]/(main)/page.tsx b/apps/landing/src/app/[locale]/(main)/page.tsxindex 20536cd68..a6781bb6f 100644--- a/apps/landing/src/app/[locale]/(main)/page.tsx+++ b/apps/landing/src/app/[locale]/(main)/page.tsx@@ -2,7 +2,6 @@import type { Metadata } from "next";import { cacheLife } from "next/cache";-import Link from "next/link";import { Trans } from "react-i18next/TransWithoutContext";import { PeopleBadge, PollsBadge } from "@/components/home/animated-number";import { Cta } from "@/components/home/cta";@@ -19,6 +18,7 @@ import {SectionHeading,SectionTitle,} from "@/components/section";+import { LinkBase } from "@/i18n/client/link";import { getTranslation } from "@/i18n/server";import { getAlternates } from "@/lib/alternates";import { getMonthlyPollCount, getMonthlyVoterCount } from "@/lib/data";@@ -157,7 +157,7 @@ export default async function Page(props: {i18nKey="faqIsFreeAnswer"defaults="Yes. 99% of people use Rallly completely free. Creating polls, sharing them, and collecting votes costs nothing and there is no limit on participants. We also offer <0>Rallly Pro</0>, a paid subscription with features that are useful if you use Rallly professionally, like adding your own branding, removing Rallly attribution from your polls, and keeping polls around indefinitely."components={[- <Link+ <LinkBasekey="pricing"className="text-gray-800 underline underline-offset-2 hover:text-gray-600"href="/pricing"@@ -215,7 +215,7 @@ export default async function Page(props: {i18nKey="faqPrivacyAnswer"defaults="Yes. Privacy is central to how we build Rallly. We do not show ads or sell your data, we collect only what we need to run the service, and polls on the free plan are deleted automatically once they become inactive. Rallly is also open source, so anyone can inspect how their data is handled. You can read the details in our <0>privacy policy</0>."components={[- <Link+ <LinkBasekey="privacy"className="text-gray-800 underline underline-offset-2 hover:text-gray-600"href="/privacy-policy"diff --git a/apps/landing/src/app/[locale]/(main)/security/page.tsx b/apps/landing/src/app/[locale]/(main)/security/page.tsxindex 1b8a4e7a6..6876ec29f 100644--- a/apps/landing/src/app/[locale]/(main)/security/page.tsx+++ b/apps/landing/src/app/[locale]/(main)/security/page.tsx@@ -22,6 +22,7 @@ import {SectionHeading,SectionTitle,} from "@/components/section";+import { LinkBase } from "@/i18n/client/link";import { getMonthlyPollCount, getMonthlyVoterCount } from "@/lib/data";function SecurityFeature({@@ -383,9 +384,9 @@ export default async function Security(props: {</FaqItem><FaqItem question="Do you offer a Data Processing Agreement (DPA)?">Yes. Our GDPR Article 28{" "}- <a className="text-primary hover:underline" href="/dpa">+ <LinkBase className="text-primary hover:underline" href="/dpa">Data Processing Agreement- </a>{" "}+ </LinkBase>{" "}is published openly and incorporated into our terms of use, so itapplies automatically without paperwork. It includes our technicaland organizational measures and the full subprocessor list, and wediff --git a/apps/landing/src/app/[locale]/(main)/terms-of-use/page.tsx b/apps/landing/src/app/[locale]/(main)/terms-of-use/page.tsxindex 6ec8b1a32..2d3b3d239 100644--- a/apps/landing/src/app/[locale]/(main)/terms-of-use/page.tsx+++ b/apps/landing/src/app/[locale]/(main)/terms-of-use/page.tsx@@ -3,6 +3,7 @@import type { Metadata } from "next";import { cacheLife } from "next/cache";import { Section } from "@/components/section";+import { LinkBase } from "@/i18n/client/link";export default async function TermsOfUse() {cacheLife("max");@@ -201,13 +202,13 @@ export default async function TermsOfUse() {<p>6.1 Where we process personal data on your behalf in providing thehosted Rallly service, we do so as a processor under our{" "}- <a href="/dpa">Data Processing Agreement</a>, which is incorporated- into these Terms by reference and forms part of them.+ <LinkBase href="/dpa">Data Processing Agreement</LinkBase>, which is+ incorporated into these Terms by reference and forms part of them.</p><p>6.2 Our processing of personal data for our own purposes as acontroller is described in our{" "}- <a href="/privacy-policy">Privacy Policy</a>.+ <LinkBase href="/privacy-policy">Privacy Policy</LinkBase>.</p><hr />