feat: migrate CozSweet legal documents
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import { redirectToLegalDocument } from "../legalDocumentRedirect";
|
||||
|
||||
export default function AutoRenewalAgreementRedirect() {
|
||||
redirectToLegalDocument("auto-renewal-agreement");
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { redirectToLegalDocument } from "../legalDocumentRedirect";
|
||||
|
||||
export default function DataDeletionRedirect() {
|
||||
redirectToLegalDocument("data-deletion");
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export function redirectToLegalDocument(documentName: string): never {
|
||||
redirect(`/${documentName}.html`);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { redirectToLegalDocument } from "../legalDocumentRedirect";
|
||||
|
||||
export default function MembershipAgreementRedirect() {
|
||||
redirectToLegalDocument("membership-agreement");
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { redirectToLegalDocument } from "../legalDocumentRedirect";
|
||||
|
||||
export default function PrivacyPolicyRedirect() {
|
||||
redirectToLegalDocument("privacy-policy");
|
||||
}
|
||||
@@ -92,3 +92,7 @@ body{overflow-wrap:break-word}
|
||||
.service-grid:hover article:first-child:not(:hover){color:var(--ink);background:rgba(255,255,255,.70);box-shadow:0 12px 36px rgba(38,24,64,.045)}
|
||||
.service-grid:hover article:first-child:not(:hover)>span{color:var(--purple)}
|
||||
.service-grid:hover article:first-child:not(:hover) p{color:var(--muted)}
|
||||
|
||||
/* Legal links added for the migrated CozSweet agreements. */
|
||||
.footer-main nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
|
||||
@media(max-width:760px){.footer-main nav{grid-template-columns:1fr 1fr}.footer-main nav div:last-child{grid-column:1/-1}}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default function PrivacyPolicyRedirect() {
|
||||
redirect("/privacy-policy.html");
|
||||
}
|
||||
Reference in New Issue
Block a user