Files
kolaytercih/src/components/site-top-banner.tsx

50 lines
1.8 KiB
TypeScript
Raw Blame History

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 Link from "next/link";
import { ArrowRight, MessageSquareText } from "lucide-react";
import { SosyalBaglantilar } from "@/components/sosyal-baglantilar";
import {
GERI_BILDIRIM_ADRESI,
geriBildirimeOdaklan,
} from "@/features/geri-bildirim/geri-bildirim-baglantisi";
/**
* Üst mavi bant: solda geri bildirim kısayolu (sürüm notlarındaki forma,
* kutu yazmaya hazır açılır), sağda sosyal hesaplar.
*/
export function SiteTopBanner() {
return (
<section
aria-label="Geri bildirim ve sosyal hesaplar"
className="relative z-50 border-b border-primary-foreground/15 bg-primary text-primary-foreground print:hidden"
>
<div className="mx-auto flex min-h-12 max-w-6xl flex-wrap items-center justify-between gap-x-2 gap-y-1 px-4 py-2">
{/* Zaten sürüm notlarındaysak sayfa yeniden yüklenmez; kutuya odağı
burada veririz. */}
<Link
href={GERI_BILDIRIM_ADRESI}
onClick={geriBildirimeOdaklan}
className="group -mx-2.5 inline-flex h-8 items-center gap-2 rounded-full px-2.5 text-xs font-semibold sm:text-sm tracking-[-0.01em] transition-colors hover:bg-primary-foreground/15"
>
<MessageSquareText
className="size-4 shrink-0 opacity-80 max-sm:hidden"
aria-hidden
/>
Geri bildirimlerini önemsiyoruz
<ArrowRight
className="size-4 shrink-0 transition-transform duration-150 group-hover:translate-x-0.5"
aria-hidden
/>
</Link>
<div className="flex items-center gap-1.5">
<span className="text-xs font-medium opacity-85 max-sm:sr-only">
Bizi takip et
</span>
<SosyalBaglantilar />
</div>
</div>
</section>
);
}