Files
snapcad-studio/apps/web/src/components/snapcad/PlatformFooter.tsx
T
Enes Yakıştır 948e5153dd
Build and Push Docker Images / build (push) Canceled after 0s
CI / Typecheck and unit tests (push) Canceled after 0s
fix: footer YakNet Hesap (SSO) baglantisini developer-console hesabina yonlendir
2026-11-10 19:55:39 +03:00

287 lines
8.8 KiB
TypeScript

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use client";
import { Box, ShieldCheck } from "lucide-react";
interface PlatformFooterProps {
onNavigateSection?: (
section:
| "home"
| "drawing"
| "circuits"
| "codeblocks"
| "challenges"
| "customization"
| "about"
| "contact"
| "kvkk"
| "terms"
| "security"
) => void;
className?: string;
}
export function PlatformFooter({ onNavigateSection, className = "" }: PlatformFooterProps) {
const handleNav = (
section:
| "home"
| "drawing"
| "circuits"
| "codeblocks"
| "challenges"
| "customization"
| "about"
| "contact"
| "kvkk"
| "terms"
| "security",
fallbackUrl?: string
) => {
if (onNavigateSection) {
onNavigateSection(section);
} else if (fallbackUrl) {
window.location.href = fallbackUrl;
}
};
return (
<footer className={`snapcad-platform-footer ${className}`} role="contentinfo" aria-label="SnapCAD Studio Kurumsal">
<div className="footer-inner-container">
{/* 1. Sütun: Marka & Kurumsal Tanım */}
<div className="footer-col brand-col">
<div className="footer-brand">
<div className="footer-brand-gem" aria-hidden="true">
<Box size={20} className="text-white" />
</div>
<div>
<span className="footer-brand-title">
SnapCAD <span className="text-sky-400 font-bold">Studio</span>
</span>
<span className="footer-brand-subtitle">Resmi YakNet Hizmeti • YakHub Ekosistemi</span>
</div>
</div>
<p className="footer-brand-desc">
SnapCAD Studio, YakNet bulut altyapısı ve YakHub ekosistemi üzerinde çalışan kurumsal,
tam erişilebilir ve tarayıcı tabanlı 3B parametrik CAD ve mühendislik platformudur.
</p>
<div className="footer-badges-cluster">
<span className="footer-pill-badge yaknet-badge" title="Resmi YakNet ve YakHub Ekosistemi Hizmeti">
<ShieldCheck size={13} aria-hidden="true" />
<span>Resmi YakNet Hizmeti</span>
</span>
<span className="footer-pill-badge wcag-badge" title="Web İçeriği Erişilebilirlik Yönergeleri 2.1 AAA Seviyesi">
<ShieldCheck size={13} aria-hidden="true" />
<span>WCAG 2.1 AAA</span>
</span>
<span className="footer-pill-badge oss-badge">
<span>AGPLv3 Açık Kaynak</span>
</span>
</div>
</div>
{/* 2. Sütun: Stüdyolar */}
<div className="footer-col">
<h3 className="footer-col-title">Stüdyolar</h3>
<ul className="footer-links-list">
<li>
<button
type="button"
className="footer-link-btn"
onClick={() => handleNav("home", "/")}
>
3D Katı CAD
</button>
</li>
<li>
<button
type="button"
className="footer-link-btn"
onClick={() => handleNav("home", "/")}
>
İt / Çek
</button>
</li>
<li>
<button
type="button"
className="footer-link-btn"
onClick={() => handleNav("drawing", "/?section=drawing")}
>
Teknik Resim
</button>
</li>
<li>
<button
type="button"
className="footer-link-btn"
onClick={() => handleNav("circuits", "/?section=circuits")}
>
Elektronik Devreler
</button>
</li>
<li>
<button
type="button"
className="footer-link-btn"
onClick={() => handleNav("codeblocks", "/?section=codeblocks")}
>
Kod Blokları
</button>
</li>
<li>
<button
type="button"
className="footer-link-btn"
onClick={() => handleNav("challenges", "/?section=challenges")}
>
Görevler
</button>
</li>
</ul>
</div>
{/* 3. Sütun: Kurumsal & Yasal */}
<div className="footer-col">
<h3 className="footer-col-title">Kurumsal &amp; Yasal</h3>
<ul className="footer-links-list">
<li>
<button
type="button"
className="footer-link-btn"
onClick={() => handleNav("about", "/hakkimizda")}
>
Hakkımızda
</button>
</li>
<li>
<button
type="button"
className="footer-link-btn"
onClick={() => handleNav("contact", "/iletisim")}
>
İletişim
</button>
</li>
<li>
<button
type="button"
className="footer-link-btn"
onClick={() => handleNav("customization", "/?section=customization")}
>
Erişilebilirlik
</button>
</li>
<li>
<button
type="button"
className="footer-link-btn highlight-link"
onClick={() => handleNav("kvkk", "/kvkk")}
>
KVKK &amp; Gizlilik
</button>
</li>
<li>
<button
type="button"
className="footer-link-btn highlight-link"
onClick={() => handleNav("terms", "/kullanim-kosullari")}
>
Kullanım Koşulları
</button>
</li>
<li>
<button
type="button"
className="footer-link-btn highlight-link"
onClick={() => handleNav("security", "/kurumsal-guvenlik")}
>
Kurumsal Güvenlik
</button>
</li>
</ul>
</div>
{/* 4. Sütun: YakNet Ekosistemi */}
<div className="footer-col">
<h3 className="footer-col-title">YakNet Ekosistemi</h3>
<ul className="footer-links-list">
<li>
<a
href="https://developer-console.yakhub.com.tr"
target="_blank"
rel="noreferrer"
className="footer-link-btn external"
>
Geliştirici Konsolu
</a>
</li>
<li>
<a
href="https://cdnjs.yakhub.com.tr"
target="_blank"
rel="noreferrer"
className="footer-link-btn external"
>
CDNJS
</a>
</li>
<li>
<a
href="https://yakhub.com.tr"
target="_blank"
rel="noreferrer"
className="footer-link-btn external"
>
YakHub Ana Portal
</a>
</li>
<li>
<a
href="https://developer-console.yakhub.com.tr/profile"
target="_blank"
rel="noreferrer"
className="footer-link-btn external"
>
YakNet Hesap (SSO)
</a>
</li>
</ul>
</div>
</div>
{/* Alt Telif Barı */}
<div className="footer-bottom-bar">
<div className="footer-bottom-inner">
<p className="copyright-text">
&copy; 2026 SnapCAD Studio. Resmi bir YakNet hizmetidir. YakHub Ekosistemi çatısı altında geliştirilmektedir. Tüm hakları saklıdır.
</p>
<div className="footer-bottom-meta">
<button
type="button"
className="footer-meta-link-btn"
onClick={() => handleNav("kvkk", "/kvkk")}
>
KVKK &amp; Gizlilik
</button>
<span aria-hidden="true">&bull;</span>
<button
type="button"
className="footer-meta-link-btn"
onClick={() => handleNav("terms", "/kullanim-kosullari")}
>
Kullanım Koşulları
</button>
<span aria-hidden="true">&bull;</span>
<button
type="button"
className="footer-meta-link-btn"
onClick={() => handleNav("security", "/kurumsal-guvenlik")}
>
Kurumsal Güvenlik
</button>
</div>
</div>
</div>
</footer>
);
}