Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
+113
@@ -0,0 +1,113 @@
|
||||
import { defaultBrandLinks } from "@toolctrl/brand";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { LoaderFunctionArgs, MetaFunction } from "react-router";
|
||||
import { getTranslations } from "~/locale/i18next.server";
|
||||
import { getLinkTags } from "~/utils/seo/linkTags.server";
|
||||
import PublicFooter from "~/components/public/PublicFooter";
|
||||
import PublicHeader from "~/components/public/PublicHeader";
|
||||
|
||||
export const meta: MetaFunction<typeof loader> = ({ data }) => data?.metatags || [];
|
||||
export const loader = async ({ request }: LoaderFunctionArgs) => {
|
||||
const { t } = await getTranslations(request);
|
||||
return {
|
||||
metatags: [{ title: `${t("front.terms.title")} | ${process.env.APP_NAME}` }, ...getLinkTags(request)],
|
||||
};
|
||||
};
|
||||
|
||||
export default function TermsAndConditionsRoute() {
|
||||
const { t } = useTranslation();
|
||||
const appName = t("pages.termsAndConditions.appName");
|
||||
const restrictionItems = t("pages.termsAndConditions.restrictionItems", { returnObjects: true }) as string[];
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div>
|
||||
<PublicHeader />
|
||||
<div className="min-h-screen py-6">
|
||||
<div className="mx-auto max-w-3xl px-4 sm:px-6 lg:px-8">
|
||||
<div className="sm:align-center space-y-4 sm:flex sm:flex-col">
|
||||
<div className="prose text-muted-foreground mx-auto">
|
||||
<h1 className="flex justify-center text-3xl font-extrabold tracking-tight text-black sm:text-4xl dark:text-white">{t("front.terms.title")}</h1>
|
||||
|
||||
<h3 className="text-black dark:text-white">{t("pages.termsAndConditions.introduction")}</h3>
|
||||
|
||||
<p>{t("pages.termsAndConditions.introductionDescription", { appName })}</p>
|
||||
|
||||
<p>
|
||||
{t("pages.termsAndConditions.acceptancePrefix")}{" "}
|
||||
<a className="text-black dark:text-white" href={defaultBrandLinks.legal.termsUrl}>
|
||||
{defaultBrandLinks.legal.termsUrl}
|
||||
</a>
|
||||
{t("pages.termsAndConditions.acceptanceSuffix")}
|
||||
</p>
|
||||
|
||||
<p>{t("pages.termsAndConditions.minorsRestriction")}</p>
|
||||
|
||||
<h3 className="text-black dark:text-white">{t("pages.termsAndConditions.intellectualProperty")}</h3>
|
||||
|
||||
<p>{t("pages.termsAndConditions.intellectualPropertyDescription", { appName })}</p>
|
||||
|
||||
<p>{t("pages.termsAndConditions.limitedLicense")}</p>
|
||||
|
||||
<h3 className="text-black dark:text-white">{t("pages.termsAndConditions.restrictions")}</h3>
|
||||
|
||||
<p>{t("pages.termsAndConditions.restrictionsDescription")}</p>
|
||||
|
||||
<ul>
|
||||
{restrictionItems.map((item) => (
|
||||
<li key={item}>{item}</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
<p>{t("pages.termsAndConditions.restrictedAccess")}</p>
|
||||
|
||||
<h3 className="text-black dark:text-white">{t("pages.termsAndConditions.yourContent")}</h3>
|
||||
|
||||
<p>{t("pages.termsAndConditions.yourContentDescription")}</p>
|
||||
|
||||
<p>{t("pages.termsAndConditions.yourContentOwnership")}</p>
|
||||
|
||||
<h3 className="text-black dark:text-white">{t("pages.termsAndConditions.yourPrivacy")}</h3>
|
||||
|
||||
<p>{t("pages.termsAndConditions.yourPrivacyDescription")}</p>
|
||||
|
||||
<h3 className="text-black dark:text-white">{t("pages.termsAndConditions.noWarranties")}</h3>
|
||||
|
||||
<p>{t("pages.termsAndConditions.noWarrantiesDescription")}</p>
|
||||
|
||||
<h3 className="text-black dark:text-white">{t("pages.termsAndConditions.limitationOfLiability")}</h3>
|
||||
|
||||
<p>{t("pages.termsAndConditions.limitationOfLiabilityDescription", { appName })}</p>
|
||||
|
||||
<h3 className="text-black dark:text-white">{t("pages.termsAndConditions.indemnification")}</h3>
|
||||
|
||||
<p>{t("pages.termsAndConditions.indemnificationDescription", { appName })}</p>
|
||||
|
||||
<h3 className="text-black dark:text-white">{t("pages.termsAndConditions.severability")}</h3>
|
||||
|
||||
<p>{t("pages.termsAndConditions.severabilityDescription")}</p>
|
||||
|
||||
<h3 className="text-black dark:text-white">{t("pages.termsAndConditions.variationOfTerms")}</h3>
|
||||
|
||||
<p>{t("pages.termsAndConditions.variationOfTermsDescription")}</p>
|
||||
|
||||
<h3 className="text-black dark:text-white">{t("pages.termsAndConditions.assignment")}</h3>
|
||||
|
||||
<p>{t("pages.termsAndConditions.assignmentDescription", { appName })}</p>
|
||||
|
||||
<h3 className="text-black dark:text-white">{t("pages.termsAndConditions.entireAgreement")}</h3>
|
||||
|
||||
<p>{t("pages.termsAndConditions.entireAgreementDescription", { appName })}</p>
|
||||
|
||||
<h3 className="text-black dark:text-white">{t("pages.termsAndConditions.governingLaw")}</h3>
|
||||
|
||||
<p>{t("pages.termsAndConditions.governingLawDescription")}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<PublicFooter />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user