chore: add privacy policy and term of use
This commit is contained in:
@@ -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>© 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>
|
||||
|
||||
Reference in New Issue
Block a user