feat: add multi-user admin panel and featured partners toggle on home page

This commit is contained in:
AyrisAI
2026-05-17 13:48:05 +03:00
parent 36e98a3883
commit 0504f12f5b
29 changed files with 1110 additions and 182 deletions

View File

@@ -2,8 +2,7 @@
import Image from "next/image";
import Link from "next/link";
import { ArrowRight, Share2 } from "lucide-react";
import Footer from "@/components/Footer";
export default function WorkDetailClient({ project, nextProject }: { project: any, nextProject: any }) {
const isInstagram = (url: string) => {
@@ -43,13 +42,13 @@ export default function WorkDetailClient({ project, nextProject }: { project: an
return (
<main className="min-h-screen bg-[#f5f5f0] text-black pt-24">
{/* 1. Editorial Header Section */}
<section className="pt-32 pb-20 px-6 md:px-12 border-b border-black/10">
<div className="max-w-7xl mx-auto">
{/* Top Line */}
<div className="w-full h-px bg-black/10 mb-20" />
<div className="grid grid-cols-1 lg:grid-cols-12 gap-16 items-start">
{/* Left: Client Name */}
<div className="lg:col-span-5">
@@ -94,7 +93,7 @@ export default function WorkDetailClient({ project, nextProject }: { project: an
<div className="max-w-4xl mx-auto space-y-32">
{/* Hero Image First */}
<div className="relative aspect-[16/10] w-full overflow-hidden border border-black/5 shadow-2xl bg-[#e2d1c1] p-1">
<div className="relative w-full h-full overflow-hidden">
<div className="relative w-full h-full overflow-hidden">
<Image
src={project.hero_image || "https://images.unsplash.com/photo-1550745165-9bc0b252726f"}
alt={project.title}
@@ -102,54 +101,54 @@ export default function WorkDetailClient({ project, nextProject }: { project: an
className="object-cover"
priority
/>
</div>
</div>
</div>
{/* Gallery / Instagram Feed */}
<div className="grid grid-cols-1 md:grid-cols-2 gap-x-12 gap-y-24 mt-24">
{gallery.map((item: string, idx: number) => (
<div key={idx} className="space-y-8 animate-reveal">
<div className="flex items-center gap-4 text-[10px] font-bold text-black/20 tracking-widest uppercase">
<span>0{idx + 1}</span>
<div className="h-px flex-grow bg-black/5" />
<span>{isInstagram(item) ? "INSTAGRAM FEED" : "PRODUCTION VIEW"}</span>
</div>
<div className="flex items-center gap-4 text-[10px] font-bold text-black/20 tracking-widest uppercase">
<span>0{idx + 1}</span>
<div className="h-px flex-grow bg-black/5" />
<span>{isInstagram(item) ? "INSTAGRAM FEED" : "PRODUCTION VIEW"}</span>
</div>
{isInstagram(item) ? (
<div className="flex justify-center">
<div className="w-full max-w-[540px] border border-black/10 bg-white shadow-xl overflow-hidden rounded-xl">
<iframe
src={getInstaEmbedUrl(item)}
className="w-full h-[700px] border-0"
scrolling="no"
allowFullScreen
/>
{isInstagram(item) ? (
<div className="flex justify-center">
<div className="w-full max-w-[540px] border border-black/10 bg-white shadow-xl overflow-hidden rounded-xl">
<iframe
src={getInstaEmbedUrl(item)}
className="w-full h-[700px] border-0"
scrolling="no"
allowFullScreen
/>
</div>
</div>
</div>
) : (
<div className="relative aspect-[16/10] border border-black/5 bg-black/5 shadow-lg overflow-hidden group">
{isVideo(item) ? (
<iframe
src={item}
className="w-full h-full"
allowFullScreen
/>
) : (
<Image
src={item}
alt={`Gallery ${idx}`}
fill
className="object-cover transition-transform duration-1000 group-hover:scale-105"
/>
)}
</div>
)}
</div>
))}
) : (
<div className="relative aspect-[16/10] border border-black/5 bg-black/5 shadow-lg overflow-hidden group">
{isVideo(item) ? (
<iframe
src={item}
className="w-full h-full"
allowFullScreen
/>
) : (
<Image
src={item}
alt={`Gallery ${idx}`}
fill
className="object-cover transition-transform duration-1000 group-hover:scale-105"
/>
)}
</div>
)}
</div>
))}
</div>
</div>
</section>
{/* Minimal CTA Section */}
<section className="py-32 px-6 md:px-12 bg-[#f5f5f0]">
<div className="max-w-7xl mx-auto text-center">
@@ -157,9 +156,9 @@ export default function WorkDetailClient({ project, nextProject }: { project: an
<h2 className="editorial-headline text-3xl md:text-5xl lg:text-6xl text-black uppercase leading-tight mb-16 max-w-4xl mx-auto">
CESUR, İNSANCIL VE <br /> İZ BIRAKAN PROJELERİ <br /> <span className="text-primary">BİRLİKTE</span> ŞEKİLLENDİRELİM.
</h2>
<Link
href="/contact"
<Link
href="/contact"
className="inline-flex items-center justify-center w-32 h-32 md:w-40 md:h-40 rounded-full bg-primary text-white text-[10px] font-bold uppercase tracking-widest hover:scale-110 transition-all duration-500 shadow-xl shadow-primary/20 group"
>
<span className="group-hover:scale-110 transition-transform">İLETİŞİME GEÇ</span>
@@ -186,7 +185,6 @@ export default function WorkDetailClient({ project, nextProject }: { project: an
</section>
)}
<Footer />
</main>
);
}