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
@@ -0,0 +1,119 @@
|
||||
import { defaultBrandLinks } from "@toolctrl/brand";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { LoaderFunctionArgs, MetaFunction } from "react-router";
|
||||
import { getTranslations } from "~/locale/i18next.server";
|
||||
import CookieConsentSettings from "~/components/cookies/CookieConsentSettings";
|
||||
import { useState } from "react";
|
||||
import OpenModal from "~/components/ui/modals/OpenModal";
|
||||
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.privacy.title")} | ${process.env.APP_NAME}` }, ...getLinkTags(request)],
|
||||
};
|
||||
};
|
||||
|
||||
export default function PrivacyPolicyRoute() {
|
||||
const { t } = useTranslation();
|
||||
const appName = t("pages.privacyPolicy.appName");
|
||||
const disclosureItems = t("pages.privacyPolicy.disclosureItems", { returnObjects: true }) as string[];
|
||||
const [showCookieSettingsModal, setShowCookieSettingsModal] = useState(false);
|
||||
return (
|
||||
<div>
|
||||
<div>
|
||||
<PublicHeader />
|
||||
|
||||
{showCookieSettingsModal && (
|
||||
<OpenModal onClose={() => setShowCookieSettingsModal(false)}>
|
||||
<CookieConsentSettings onUpdated={() => setShowCookieSettingsModal(false)} />
|
||||
</OpenModal>
|
||||
)}
|
||||
|
||||
<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.privacy.title")}
|
||||
</h1>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setShowCookieSettingsModal(true)}
|
||||
className="text-theme-600 hover:text-theme-700 dark:hover:text-theme-400 underline"
|
||||
>
|
||||
{t("cookies.settings")}
|
||||
</button>
|
||||
<p>
|
||||
{t("pages.privacyPolicy.introductionPrefix", { appName })}{" "}
|
||||
<a className="text-black dark:text-white" href={defaultBrandLinks.siteUrl}>
|
||||
{defaultBrandLinks.siteUrl}
|
||||
</a>
|
||||
{t("pages.privacyPolicy.introductionSuffix")}
|
||||
</p>
|
||||
<p>{t("pages.privacyPolicy.effectiveDate")}</p>
|
||||
<h3 className="text-black dark:text-white">{t("pages.privacyPolicy.informationWeCollect")}</h3>
|
||||
<p>{t("pages.privacyPolicy.informationWeCollectDescription")}</p>
|
||||
<h4 className="text-black dark:text-white">{t("pages.privacyPolicy.logData")}</h4>
|
||||
<p>{t("pages.privacyPolicy.logDataDescription")}</p>
|
||||
<p>{t("pages.privacyPolicy.logDataIdentification")}</p>
|
||||
<h4 className="text-black dark:text-white">{t("pages.privacyPolicy.collectionAndUse")}</h4>
|
||||
<p>{t("pages.privacyPolicy.collectionAndUseDescription")}</p>
|
||||
<ul>
|
||||
<li>{t("pages.privacyPolicy.collectionItems.mobile")}</li>
|
||||
<li>{t("pages.privacyPolicy.collectionItems.contact")}</li>
|
||||
<li>{t("pages.privacyPolicy.collectionItems.social")}</li>
|
||||
</ul>
|
||||
<p>{t("pages.privacyPolicy.processingPurposes")}</p>
|
||||
<p>{t("pages.privacyPolicy.combinedInformation")}</p>
|
||||
<h4 className="text-black dark:text-white">{t("pages.privacyPolicy.securityOfPersonalInformation")}</h4>
|
||||
<p>{t("pages.privacyPolicy.securityDescription")}</p>
|
||||
<p>{t("pages.privacyPolicy.securityLimitations")}</p>
|
||||
<p>{t("pages.privacyPolicy.passwordResponsibility")}</p>
|
||||
<h4 className="text-black dark:text-white">{t("pages.privacyPolicy.howLongWeKeep")}</h4>
|
||||
<p>{t("pages.privacyPolicy.retentionDescription")}</p>
|
||||
<p>{t("pages.privacyPolicy.retentionExceptions")}</p>
|
||||
<h3 className="text-black dark:text-white">{t("pages.privacyPolicy.childrensPrivacy")}</h3>
|
||||
<p>{t("pages.privacyPolicy.childrensPrivacyDescription")}</p>
|
||||
<h3 className="text-black dark:text-white">{t("pages.privacyPolicy.disclosureToThirdParties")}</h3>
|
||||
<p>{t("pages.privacyPolicy.disclosureDescription")}</p>
|
||||
<ul>
|
||||
{disclosureItems.map((item) => (
|
||||
<li key={item}>{item}</li>
|
||||
))}
|
||||
</ul>
|
||||
<h3 className="text-black dark:text-white">{t("pages.privacyPolicy.internationalTransfers")}</h3>
|
||||
<p>{t("pages.privacyPolicy.internationalTransfersDescription")}</p>
|
||||
<h3 className="text-black dark:text-white">{t("pages.privacyPolicy.yourRights")}</h3>
|
||||
<p>{t("pages.privacyPolicy.yourRightsDescription")}</p>
|
||||
<p>{t("pages.privacyPolicy.thirdPartyInformation")}</p>
|
||||
<p>{t("pages.privacyPolicy.marketingOptOut")}</p>
|
||||
<p>{t("pages.privacyPolicy.correctionRequests")}</p>
|
||||
<p>{t("pages.privacyPolicy.complaints")}</p>
|
||||
<h3 className="text-black dark:text-white">{t("pages.privacyPolicy.useOfCookies")}</h3>
|
||||
<p>{t("pages.privacyPolicy.useOfCookiesDescription")}</p>
|
||||
<h3 className="text-black dark:text-white">{t("pages.privacyPolicy.limitsOfPolicy")}</h3>
|
||||
<p>{t("pages.privacyPolicy.limitsOfPolicyDescription")}</p>
|
||||
<h3 className="text-black dark:text-white">{t("pages.privacyPolicy.changesToPolicy")}</h3>
|
||||
<p>{t("pages.privacyPolicy.changesToPolicyDescription")}</p>
|
||||
<p>{t("pages.privacyPolicy.consentForNewUses")}</p>
|
||||
<h3 className="text-black dark:text-white">{t("pages.privacyPolicy.contactUs")}</h3>
|
||||
<p>{t("pages.privacyPolicy.contactUsDescription")}</p>
|
||||
<p>
|
||||
{t("pages.privacyPolicy.supportTeam")}
|
||||
<br />
|
||||
{defaultBrandLinks.support.email}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<PublicFooter />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user