Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
"use cache";
import { cacheLife } from "next/cache";
import Image from "next/image";
import { Trans } from "react-i18next/TransWithoutContext";
import { LinkBase } from "@/i18n/client/link";
import { getTranslation } from "@/i18n/server";
export default async function LicensingThankYouPage(props: {
params: Promise<{ locale: string }>;
}) {
cacheLife("max");
const { locale } = await props.params;
const { t } = await getTranslation(locale);
return (
<main className="relative flex h-dvh flex-col p-4 sm:justify-center sm:p-16">
<div className="relative z-10 mx-auto w-full max-w-2xl space-y-6">
<div className="py-4">
<LinkBase className="inline-block rounded-sm" href="/">
<Image src="/logo.svg" width={150} height={30} alt="rallly.co" />
</LinkBase>
</div>
<div className="space-y-4">
<h1 className="font-semibold text-2xl tracking-tight">
<Trans
t={t}
i18nKey="licensingThankYouTitle"
defaults="Thank you for your purchase!"
/>
</h1>
<p>
<Trans
t={t}
i18nKey="licensingThankYouSubtitle"
defaults="Your Rallly self-hosted license is confirmed. We're excited to have you on board!"
/>
</p>
</div>
<div className="space-y-4">
<h2 className="font-semibold text-xl">
<Trans
t={t}
i18nKey="licensingThankYouLicense"
defaults="Next steps"
/>
</h2>
<p className="text-gray-700 dark:text-gray-300">
<Trans
t={t}
i18nKey="licensingThankYouLicenseEmailed"
defaults="Your license key has been sent to the email address you provided during checkout. Please check your inbox."
/>
</p>
<ul className="list-inside list-disc space-y-1">
<li>
<a
className="text-link"
href="https://support.rallly.co/self-hosting/installation/docker"
>
<Trans
t={t}
i18nKey="licensingThankYouNextStepsInstallation"
defaults="Installation guide"
/>
</a>
</li>
<li>
<a
className="text-link"
href="https://support.rallly.co/self-hosting/licensing#activating-your-license"
>
<Trans
t={t}
i18nKey="licensingThankYouNextStepsActivateLicense"
defaults="How to activate your license"
/>
</a>
</li>
</ul>
</div>
<div className="text-muted-foreground">
<p className="mb-6">
<Trans
t={t}
i18nKey="licensingThankYouSupportPrompt"
defaults="Need help or have questions? Visit our <0>self-hosted docs</0> or email us at <1>[email protected]</1>."
components={[
<a
key="self-hosted-docs"
href="https://support.rallly.co"
className="underline"
/>,
<a
key="contact-us"
href="mailto:[email protected]"
className="select-all underline"
/>,
]}
/>
</p>
<LinkBase href="/" className="hover:underline">
<Trans
t={t}
i18nKey="licensingThankYouGoHomeLink"
defaults="Return to home"
/>
</LinkBase>
</div>
</div>
</main>
);
}