chore: add privacy policy and term of use

This commit is contained in:
Zotov Ivan Yuryevich
2026-06-01 22:05:26 +03:00
parent 3ec1e776af
commit 5c7f09e37a
9 changed files with 5372 additions and 5425 deletions

View File

@@ -10,9 +10,17 @@ export interface FooterProps {
siteTitle?: string
contacts?: readonly SiteConfigContact[]
solutionCategories?: CategoryNavItem[]
privacyPolicyUrl?: string
termsOfUseUrl?: string
}
export function Footer({ siteTitle = '', contacts = [], solutionCategories = [] }: FooterProps) {
export function Footer({
siteTitle = '',
contacts = [],
solutionCategories = [],
privacyPolicyUrl,
termsOfUseUrl,
}: FooterProps) {
return (
<footer className="bg-gray-900 text-gray-400 pt-20 pb-10 border-t border-gray-800">
<div className="max-w-400 mx-auto px-6 xl:px-12 2xl:px-16">
@@ -109,12 +117,26 @@ export function Footer({ siteTitle = '', contacts = [], solutionCategories = []
<div className="pt-8 border-t border-gray-800 flex flex-col md:flex-row justify-between items-center gap-4">
<div>&copy; 2025 {siteTitle}. Все права защищены.</div>
<div className="flex gap-6">
<a href="#" className="hover:text-blue-400 transition-colors">
Политика конфиденциальности
</a>
<a href="#" className="hover:text-blue-400 transition-colors">
Условия использования
</a>
{privacyPolicyUrl ? (
<a
href={privacyPolicyUrl}
target="_blank"
rel="noopener noreferrer"
className="hover:text-blue-400 transition-colors"
>
Политика конфиденциальности
</a>
) : null}
{termsOfUseUrl ? (
<a
href={termsOfUseUrl}
target="_blank"
rel="noopener noreferrer"
className="hover:text-blue-400 transition-colors"
>
Условия использования
</a>
) : null}
</div>
</div>
</div>