UI: Refactor all page headers to minimal text layout without hero images and fix overlapping with navbar

This commit is contained in:
Ayris Dev
2026-07-15 14:31:56 +03:00
parent 7a874ab11d
commit f78fb90a55
6 changed files with 63 additions and 131 deletions
+12 -25
View File
@@ -22,32 +22,19 @@ export default async function OdalarPage({ params }: { params: Promise<{ lang: s
: ["Organik Serpme Kahvaltı", "Ücretsiz Otopark", "Plaj & Nehir Erişimi", "Şezlong & Havlu", "Wi-Fi", "24/7 Resepsiyon", "Klima", "Minibar"];
return (
<div className="min-h-screen bg-background">
<div className="min-h-screen bg-background pt-40 pb-10">
{/* Page Header */}
<section className="relative h-[55vh] w-full flex items-end overflow-hidden">
<div className="absolute inset-0">
<Image
src="https://images.unsplash.com/photo-1618773928121-c32242e63f39?q=80&w=2940&auto=format&fit=crop"
alt={isEn ? "Our Rooms" : "Odalarımız"}
fill
sizes="100vw"
className="object-cover"
/>
<div className="absolute inset-0 bg-gradient-to-t from-dark/85 via-dark/30 to-black/20" />
</div>
<div className="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pb-14 w-full">
<span className="block text-accent text-xs tracking-[0.3em] uppercase font-semibold mb-3 animate-fade-up">
{isEn ? "Accommodation" : "Konaklama"}
</span>
<h1 className="font-serif text-5xl md:text-7xl text-white font-bold animate-fade-up delay-100">
{isEn ? "Our Rooms" : "Odalarımız"}
</h1>
<p className="text-white/60 text-lg mt-3 font-light animate-fade-up delay-200">
{isEn ? "A comfortable break in the heart of nature." : "Doğanın içinde, konforlu bir mola."}
</p>
</div>
</section>
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center mb-16">
<span className="inline-block text-accent text-xs tracking-[0.25em] uppercase font-semibold mb-4 animate-fade-up">
{isEn ? "Accommodation" : "Konaklama"}
</span>
<h1 className="font-serif text-5xl md:text-6xl text-dark font-bold animate-fade-up delay-100 mb-6">
{isEn ? "Our Rooms" : "Odalarımız"}
</h1>
<p className="text-muted text-lg max-w-2xl mx-auto animate-fade-up delay-200">
{isEn ? "A comfortable break in the heart of nature." : "Doğanın içinde, konforlu bir mola."}
</p>
</div>
{/* Intro & Price */}
<section className="py-20 max-w-5xl mx-auto px-4 sm:px-6 lg:px-8">