feat: modernize portfolio with architectural design system and production-ready docker/prisma config
This commit is contained in:
58
Dockerfile
Normal file
58
Dockerfile
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
# 1. Base image
|
||||||
|
FROM node:20-alpine AS base
|
||||||
|
|
||||||
|
# 2. Dependencies
|
||||||
|
FROM base AS deps
|
||||||
|
RUN apk add --no-cache libc6-compat
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Install dependencies based on the preferred package manager
|
||||||
|
COPY package.json package-lock.json* ./
|
||||||
|
RUN npm ci --legacy-peer-deps
|
||||||
|
|
||||||
|
|
||||||
|
# 3. Builder
|
||||||
|
FROM base AS builder
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Environment variables must be present at build time for Next.js
|
||||||
|
# Coolify will provide these, but we can set defaults
|
||||||
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
|
|
||||||
|
# Generate Prisma Client
|
||||||
|
RUN npx prisma generate
|
||||||
|
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
# 4. Runner
|
||||||
|
FROM base AS runner
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
ENV NODE_ENV=production
|
||||||
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
|
|
||||||
|
RUN addgroup --system --gid 1001 nodejs
|
||||||
|
RUN adduser --system --uid 1001 nextjs
|
||||||
|
|
||||||
|
COPY --from=builder /app/public ./public
|
||||||
|
|
||||||
|
# Set the correct permission for prerender cache
|
||||||
|
RUN mkdir .next
|
||||||
|
RUN chown nextjs:nodejs .next
|
||||||
|
|
||||||
|
# Automatically leverage output traces to reduce image size
|
||||||
|
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
||||||
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
||||||
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
||||||
|
|
||||||
|
USER nextjs
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
ENV PORT=3000
|
||||||
|
# set hostname to localhost
|
||||||
|
ENV HOSTNAME="0.0.0.0"
|
||||||
|
|
||||||
|
CMD ["node", "server.js"]
|
||||||
@@ -1,7 +1,15 @@
|
|||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
/* config options here */
|
output: 'standalone',
|
||||||
|
images: {
|
||||||
|
remotePatterns: [
|
||||||
|
{
|
||||||
|
protocol: 'https',
|
||||||
|
hostname: 'images.unsplash.com',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
|||||||
18
src/app/(main)/layout.tsx
Normal file
18
src/app/(main)/layout.tsx
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
import { Navbar } from "@/components/navbar";
|
||||||
|
import { Footer } from "@/components/footer";
|
||||||
|
|
||||||
|
export default function MainLayout({
|
||||||
|
children,
|
||||||
|
}: Readonly<{
|
||||||
|
children: React.ReactNode;
|
||||||
|
}>) {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Navbar />
|
||||||
|
<main className="flex-grow">
|
||||||
|
{children}
|
||||||
|
</main>
|
||||||
|
<Footer />
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
12
src/app/(main)/page.tsx
Normal file
12
src/app/(main)/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import { prisma } from "@/lib/prisma";
|
||||||
|
import { LandingPage } from "@/components/landing-page";
|
||||||
|
|
||||||
|
// Next.js 15+ allows server components by default
|
||||||
|
export default async function Home() {
|
||||||
|
const projects = await prisma.project.findMany({
|
||||||
|
orderBy: { createdAt: 'desc' },
|
||||||
|
take: 6 // Sadece en güncel 6 projeyi ana sayfada gösterelim
|
||||||
|
});
|
||||||
|
|
||||||
|
return <LandingPage projects={projects} />;
|
||||||
|
}
|
||||||
143
src/app/(main)/projeler/[id]/page.tsx
Normal file
143
src/app/(main)/projeler/[id]/page.tsx
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
import { prisma } from "@/lib/prisma";
|
||||||
|
import Image from "next/image";
|
||||||
|
import { notFound } from "next/navigation";
|
||||||
|
import { ArrowLeft, Maximize2, Layers, CheckCircle2, Ruler } from "lucide-react";
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
|
export default async function ProjectDetailPage({ params }: { params: Promise<{ id: string }> }) {
|
||||||
|
const { id } = await params;
|
||||||
|
const project = await prisma.project.findUnique({
|
||||||
|
where: { id }
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!project) {
|
||||||
|
notFound();
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<main className="min-h-screen bg-[#F9F9F9] pt-32 pb-24 px-6 md:px-24">
|
||||||
|
<div className="max-w-7xl mx-auto">
|
||||||
|
{/* Back Link */}
|
||||||
|
<Link href="/projeler" className="group inline-flex items-center gap-3 label-editorial text-gray-400 hover:text-[#1A1C1C] transition-colors mb-12">
|
||||||
|
<ArrowLeft size={16} className="group-hover:-translate-x-1 transition-transform" />
|
||||||
|
Geri Dön
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
{/* Hero Header */}
|
||||||
|
<div className="grid grid-cols-1 lg:grid-cols-12 gap-16 items-end mb-24">
|
||||||
|
<div className="lg:col-span-8">
|
||||||
|
<p className="label-editorial text-[#795900] mb-4">{project.status}</p>
|
||||||
|
<h1 className="text-6xl md:text-9xl font-inter font-black uppercase tracking-tighter leading-[0.9] break-words">
|
||||||
|
{project.title}
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
<div className="lg:col-span-4 pb-4">
|
||||||
|
<div className="flex flex-col gap-6 border-l-2 border-[#1A1C1C] pl-8">
|
||||||
|
<div>
|
||||||
|
<p className="label-editorial text-gray-400">Konum</p>
|
||||||
|
<p className="text-xl font-bold uppercase">Menteşe, Muğla</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p className="label-editorial text-gray-400">Yıl</p>
|
||||||
|
<p className="text-xl font-bold uppercase">2023 - 2024</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Main Image */}
|
||||||
|
<div className="relative aspect-[21/9] w-full overflow-hidden bg-gray-200 mb-24 shadow-2xl">
|
||||||
|
<Image
|
||||||
|
src={project.images[0] || "https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=2070"}
|
||||||
|
alt={project.title}
|
||||||
|
fill
|
||||||
|
className="object-cover"
|
||||||
|
priority
|
||||||
|
sizes="100vw"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Info Grid */}
|
||||||
|
<div className="grid grid-cols-1 lg:grid-cols-12 gap-24 mb-32">
|
||||||
|
<div className="lg:col-span-4 space-y-12">
|
||||||
|
<div className="grid grid-cols-2 gap-8">
|
||||||
|
<div className="bg-white p-8 border-b-4 border-[#FFBF00] shadow-xl">
|
||||||
|
<Maximize2 className="text-[#FFBF00] mb-4" size={24} />
|
||||||
|
<p className="label-editorial text-gray-400">Toplam Alan</p>
|
||||||
|
<p className="text-3xl font-black">{project.m2} m²</p>
|
||||||
|
</div>
|
||||||
|
<div className="bg-white p-8 border-b-4 border-[#1A1C1C] shadow-xl">
|
||||||
|
<Layers className="text-[#1A1C1C] mb-4" size={24} />
|
||||||
|
<p className="label-editorial text-gray-400">Oda Sayısı</p>
|
||||||
|
<p className="text-3xl font-black">{project.rooms}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="space-y-6">
|
||||||
|
<h3 className="text-2xl font-black uppercase flex items-center gap-4">
|
||||||
|
<CheckCircle2 size={24} className="text-[#FFBF00]" />
|
||||||
|
Mühendislik Kapsamı
|
||||||
|
</h3>
|
||||||
|
<ul className="space-y-4 font-manrope text-gray-600">
|
||||||
|
<li className="flex items-center gap-4">
|
||||||
|
<span className="w-2 h-2 bg-[#FFBF00]" />
|
||||||
|
Statik Proje Tasarımı
|
||||||
|
</li>
|
||||||
|
<li className="flex items-center gap-4">
|
||||||
|
<span className="w-2 h-2 bg-[#FFBF00]" />
|
||||||
|
Temel Güçlendirme Analizi
|
||||||
|
</li>
|
||||||
|
<li className="flex items-center gap-4">
|
||||||
|
<span className="w-2 h-2 bg-[#FFBF00]" />
|
||||||
|
Müşavirlik & Denetim
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="lg:col-span-8 flex flex-col justify-between">
|
||||||
|
<div className="space-y-12">
|
||||||
|
<div className="flex gap-8 items-start">
|
||||||
|
<Ruler size={48} className="text-[#FFBF00] opacity-30 shrink-0" />
|
||||||
|
<div>
|
||||||
|
<h2 className="text-4xl font-black uppercase mb-8">Mimari Vizyon</h2>
|
||||||
|
<p className="text-xl leading-relaxed text-gray-500 font-manrope">
|
||||||
|
{project.description}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="grid grid-cols-2 gap-8 pt-12 border-t border-gray-100">
|
||||||
|
<div className="relative aspect-square overflow-hidden bg-gray-100">
|
||||||
|
<Image
|
||||||
|
src={project.images[1] || project.images[0]}
|
||||||
|
alt="Detail 1"
|
||||||
|
fill
|
||||||
|
className="object-cover grayscale hover:grayscale-0 transition-all duration-700"
|
||||||
|
sizes="(max-width: 768px) 100vw, 40vw"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="relative aspect-square overflow-hidden bg-gray-100">
|
||||||
|
<Image
|
||||||
|
src={project.images[0]}
|
||||||
|
alt="Detail 2"
|
||||||
|
fill
|
||||||
|
className="object-cover grayscale hover:grayscale-0 transition-all duration-700 rotate-3 scale-110"
|
||||||
|
sizes="(max-width: 768px) 100vw, 40vw"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* CTA */}
|
||||||
|
<section className="bg-[#1A1C1C] p-16 md:p-24 text-center text-white">
|
||||||
|
<p className="label-editorial text-[#FFBF00] mb-8">Sıradaki Proje Sizinki Olabilir</p>
|
||||||
|
<h3 className="text-4xl md:text-6xl font-inter font-black uppercase mb-12">Benzer Bir Vizyonun<br />Varmı?</h3>
|
||||||
|
<a href="/#iletisim" className="inline-block bg-[#FFBF00] text-[#1A1C1C] px-16 py-6 font-bold uppercase hover:bg-white transition-all shadow-2xl">Bize Ulaşın</a>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
}
|
||||||
62
src/app/(main)/projeler/page.tsx
Normal file
62
src/app/(main)/projeler/page.tsx
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
import { prisma } from "@/lib/prisma";
|
||||||
|
import Image from "next/image";
|
||||||
|
import { ArrowUpRight } from "lucide-react";
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
|
export default async function ProjelerPage() {
|
||||||
|
const projects = await prisma.project.findMany({
|
||||||
|
orderBy: { createdAt: 'desc' }
|
||||||
|
});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<main className="pt-32 pb-24 px-6 md:px-24 bg-[#F3F3F3] min-h-screen">
|
||||||
|
<div className="max-w-7xl mx-auto">
|
||||||
|
<header className="mb-20">
|
||||||
|
<p className="label-editorial text-[#795900] mb-4">Portfolyo Koleksiyonu</p>
|
||||||
|
<h1 className="text-6xl md:text-9xl font-inter font-black uppercase tracking-tighter leading-[0.9]">
|
||||||
|
PROJELER
|
||||||
|
</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div className="grid grid-cols-1 md:grid-cols-2 gap-1 px-1 bg-white/5 shadow-2xl">
|
||||||
|
{projects.map((p, i) => (
|
||||||
|
<Link
|
||||||
|
href={`/projeler/${p.id}`}
|
||||||
|
key={p.id}
|
||||||
|
className={`group relative h-[600px] overflow-hidden ${i % 3 === 0 ? "md:col-span-2" : ""}`}
|
||||||
|
>
|
||||||
|
<Image
|
||||||
|
src={p.images[0] || "https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=2070"}
|
||||||
|
alt={p.title}
|
||||||
|
fill
|
||||||
|
className="object-cover grayscale group-hover:grayscale-0 group-hover:scale-105 transition-all duration-1000"
|
||||||
|
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 66vw"
|
||||||
|
/>
|
||||||
|
<div className="absolute inset-0 bg-gradient-to-t from-[#1A1C1C] via-transparent to-transparent opacity-60 group-hover:opacity-90 transition-opacity" />
|
||||||
|
|
||||||
|
<div className="absolute bottom-12 left-12 right-12 flex justify-between items-end">
|
||||||
|
<div>
|
||||||
|
<div className="label-editorial text-[#FFBF00] mb-2">{p.status}</div>
|
||||||
|
<h2 className="text-4xl font-inter font-black text-white uppercase tracking-tighter">{p.title}</h2>
|
||||||
|
<div className="flex gap-6 mt-4 text-[10px] font-manrope uppercase tracking-widest text-white/60">
|
||||||
|
<span>{p.m2} m² Alan</span>
|
||||||
|
<span>Muğla / Menteşe</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="w-16 h-16 bg-[#FFBF00] text-[#1A1C1C] flex items-center justify-center opacity-0 group-hover:opacity-100 translate-y-10 group-hover:translate-y-0 transition-all">
|
||||||
|
<ArrowUpRight size={24} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Link>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{projects.length === 0 && (
|
||||||
|
<div className="py-32 text-center">
|
||||||
|
<p className="label-editorial text-gray-400">Henüz proje eklenmemiş.</p>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
}
|
||||||
113
src/app/(main)/surec/page.tsx
Normal file
113
src/app/(main)/surec/page.tsx
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
import { HardHat, Compass, Ruler, Building2, Key, CheckCircle2 } from "lucide-react";
|
||||||
|
import Image from "next/image";
|
||||||
|
|
||||||
|
export default function SurecPage() {
|
||||||
|
const steps = [
|
||||||
|
{
|
||||||
|
id: "01",
|
||||||
|
title: "Keşif ve Analiz",
|
||||||
|
desc: "Müşteri beklentileri, arsa ve çevre koşullarının teknik analizi ile sürecin ilk taşını koyuyoruz.",
|
||||||
|
icon: Compass,
|
||||||
|
img: "https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=2062",
|
||||||
|
accent: "İhtiyaç Analizi"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "02",
|
||||||
|
title: "Mühendislik Tasarımı",
|
||||||
|
desc: "İleri düzey statik hesaplamalar ve 3D modellemelerle yapının teknik iskeletini oluşturuyoruz.",
|
||||||
|
icon: Ruler,
|
||||||
|
img: "https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=2062",
|
||||||
|
accent: "Statik Proje"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "03",
|
||||||
|
title: "Ruhsat ve İzinler",
|
||||||
|
desc: "Yasal mevzuat ve yerel yönetmeliklere tam uyum için tüm resmi süreçlerin takibi.",
|
||||||
|
icon: HardHat,
|
||||||
|
img: "https://images.unsplash.com/photo-1589829545856-d10d557cf95f?q=80&w=2070",
|
||||||
|
accent: "Belediye Onayı"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "04",
|
||||||
|
title: "İnşaat Uygulama",
|
||||||
|
desc: "Kendi ekip ve ekipmanlarımızla, mühendislik denetimi altında titiz inşaat süreci.",
|
||||||
|
icon: Building2,
|
||||||
|
img: "https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070",
|
||||||
|
accent: "Şantiye Yönetimi"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "05",
|
||||||
|
title: "Teslimat ve Sonuç",
|
||||||
|
desc: "Sıfır hata prensibi ve tüm testlerin ardından hayallerin anahtarla buluştuğu an.",
|
||||||
|
icon: Key,
|
||||||
|
img: "https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=2070",
|
||||||
|
accent: "Anahtar Teslim"
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<main className="pt-32 pb-24 bg-[#F9F9F9] min-h-screen">
|
||||||
|
{/* Hero */}
|
||||||
|
<section className="px-6 md:px-24 mb-32">
|
||||||
|
<div className="max-w-7xl mx-auto flex flex-col md:flex-row justify-between items-end gap-12">
|
||||||
|
<div className="md:w-2/3">
|
||||||
|
<p className="label-editorial text-[#795900] mb-6 tracking-[0.2em] uppercase font-bold">Mühendislik Disiplini</p>
|
||||||
|
<h1 className="text-6xl md:text-9xl font-inter font-black uppercase leading-none tracking-tighter">
|
||||||
|
İnşaat<br />
|
||||||
|
<span className="text-transparent border-t-2 border-b-2 border-[#1A1C1C] my-4 inline-block py-2">Süreci</span>
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
<div className="md:w-1/3">
|
||||||
|
<p className="text-xl text-gray-500 leading-relaxed font-manrope">
|
||||||
|
Her adımda şeffaflık, mühendislik hassasiyeti ve sarsılmaz bir iş disiplini. Utku Kırkan ile süreciniz her an kontrol altındadır.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{/* The Infographic List */}
|
||||||
|
<section className="px-6 md:px-24">
|
||||||
|
<div className="max-w-7xl mx-auto space-y-px bg-gray-200 shadow-2xl">
|
||||||
|
{steps.map((s, i) => (
|
||||||
|
<div key={s.id} className="group relative bg-[#F9F9F9] flex flex-col lg:flex-row hover:bg-white transition-all duration-700 overflow-hidden min-h-[500px]">
|
||||||
|
<div className="w-full lg:w-1/3 p-12 lg:p-16 flex flex-col justify-between border-b lg:border-b-0 lg:border-r border-gray-100">
|
||||||
|
<div>
|
||||||
|
<span className="text-8xl font-inter font-black text-gray-100 group-hover:text-[#FFBF00]/30 transition-colors duration-500">{s.id}</span>
|
||||||
|
<p className="label-editorial text-[#795900] mt-8 mb-4">{s.accent}</p>
|
||||||
|
<h2 className="text-4xl font-inter font-black uppercase tracking-tighter leading-none mb-6 group-hover:translate-x-3 transition-transform duration-500">{s.title}</h2>
|
||||||
|
</div>
|
||||||
|
<div className="w-16 h-16 bg-[#1A1C1C] text-white flex items-center justify-center rounded-sm">
|
||||||
|
<s.icon size={24} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="w-full lg:w-1/3 p-12 lg:p-16 flex items-center bg-[#F3F3F3]">
|
||||||
|
<p className="text-lg text-gray-500 leading-relaxed font-manrope group-hover:text-[#1A1C1C] transition-colors">{s.desc}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="w-full lg:w-1/3 relative h-[300px] lg:h-auto overflow-hidden grayscale group-hover:grayscale-0 transition-all duration-1000">
|
||||||
|
<div className="absolute inset-0 bg-[#795900]/20 mix-blend-multiply opacity-0 group-hover:opacity-40 transition-opacity" />
|
||||||
|
<Image
|
||||||
|
src={s.img}
|
||||||
|
alt={s.title}
|
||||||
|
fill
|
||||||
|
className="object-cover transition-transform duration-1000 group-hover:scale-110"
|
||||||
|
sizes="(max-width: 1024px) 100vw, 33vw"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{/* Call to Action */}
|
||||||
|
<section className="mt-32 px-6 md:px-24">
|
||||||
|
<div className="max-w-7xl mx-auto bg-[#1A1C1C] p-16 md:p-24 text-center">
|
||||||
|
<CheckCircle2 size={48} className="mx-auto text-[#FFBF00] mb-10" />
|
||||||
|
<h3 className="text-4xl md:text-6xl font-inter font-black text-white uppercase mb-8">Hayalleriniz<br />Güvenli Ellerde</h3>
|
||||||
|
<a href="/#iletisim" className="inline-block bg-[#FFBF00] text-[#1A1C1C] px-12 py-5 font-bold uppercase tracking-widest hover:bg-white transition-all shadow-xl">Hemen Başlayalım</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
}
|
||||||
32
src/app/actions.ts
Normal file
32
src/app/actions.ts
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
import { prisma } from "@/lib/prisma";
|
||||||
|
import { revalidatePath } from "next/cache";
|
||||||
|
|
||||||
|
export async function createProject(formData: FormData) {
|
||||||
|
"use server";
|
||||||
|
const title = formData.get("title") as string;
|
||||||
|
const description = formData.get("description") as string;
|
||||||
|
const m2 = parseInt(formData.get("m2") as string);
|
||||||
|
const rooms = formData.get("rooms") as string;
|
||||||
|
const status = formData.get("status") as string;
|
||||||
|
const imageUrl = formData.get("imageUrl") as string;
|
||||||
|
|
||||||
|
await prisma.project.create({
|
||||||
|
data: {
|
||||||
|
title,
|
||||||
|
description,
|
||||||
|
m2,
|
||||||
|
rooms,
|
||||||
|
status,
|
||||||
|
images: imageUrl ? [imageUrl] : []
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
revalidatePath("/admin");
|
||||||
|
revalidatePath("/");
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function deleteProject(id: string) {
|
||||||
|
"use server";
|
||||||
|
await prisma.project.delete({ where: { id } });
|
||||||
|
revalidatePath("/admin");
|
||||||
|
}
|
||||||
129
src/app/admin/page.tsx
Normal file
129
src/app/admin/page.tsx
Normal file
@@ -0,0 +1,129 @@
|
|||||||
|
import { prisma } from "@/lib/prisma";
|
||||||
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||||
|
import { Button } from "@/components/ui/button";
|
||||||
|
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog";
|
||||||
|
import { Input } from "@/components/ui/input";
|
||||||
|
import { Textarea } from "@/components/ui/textarea";
|
||||||
|
import { deleteProject, createProject } from "@/app/actions";
|
||||||
|
import { Plus, Trash2, MapPin, Square, Image as ImageIcon } from "lucide-react";
|
||||||
|
import Image from "next/image";
|
||||||
|
|
||||||
|
export default async function AdminPage() {
|
||||||
|
const projects = await prisma.project.findMany({
|
||||||
|
orderBy: { createdAt: 'desc' }
|
||||||
|
});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="p-8 bg-[#111827] min-h-screen text-gray-100 font-sans">
|
||||||
|
<div className="max-w-7xl mx-auto">
|
||||||
|
<div className="flex justify-between items-center mb-12 border-b border-gray-800 pb-8">
|
||||||
|
<div>
|
||||||
|
<h1 className="text-4xl font-heading font-bold text-white uppercase tracking-tight">
|
||||||
|
PROJE <span className="text-[#F59E0B]">YÖNETİMİ</span>
|
||||||
|
</h1>
|
||||||
|
<p className="text-gray-400 mt-2">Utku Kırkan Portfolyo Yönetim Paneli</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<Dialog>
|
||||||
|
<DialogTrigger render={<Button className="bg-[#F59E0B] hover:bg-[#d98c0a] text-[#111827] font-bold py-6 px-6 rounded-none uppercase gap-2"><Plus size={20}/> Yeni Proje Ekle</Button>} />
|
||||||
|
<DialogContent className="bg-[#1f2937] border-gray-700 text-white p-8 rounded-none max-w-2xl">
|
||||||
|
<DialogHeader className="mb-6">
|
||||||
|
<DialogTitle className="text-3xl font-heading uppercase">Yeni Proje Girişi</DialogTitle>
|
||||||
|
</DialogHeader>
|
||||||
|
<form action={createProject} className="space-y-6">
|
||||||
|
<div className="space-y-2">
|
||||||
|
<label className="text-xs uppercase font-bold text-gray-500 tracking-widest">Proje Adı</label>
|
||||||
|
<Input name="title" placeholder="Örn: Kırkan Villaları" className="bg-[#111827] border-gray-700 rounded-none h-12" required />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="space-y-2">
|
||||||
|
<label className="text-xs uppercase font-bold text-gray-500 tracking-widest">Açıklama</label>
|
||||||
|
<Textarea name="description" placeholder="Proje detayları..." className="bg-[#111827] border-gray-700 rounded-none min-h-[100px]" required />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="grid grid-cols-2 gap-6">
|
||||||
|
<div className="space-y-2">
|
||||||
|
<label className="text-xs uppercase font-bold text-gray-500 tracking-widest">Toplam m²</label>
|
||||||
|
<Input name="m2" type="number" placeholder="250" className="bg-[#111827] border-gray-700 rounded-none h-12" required />
|
||||||
|
</div>
|
||||||
|
<div className="space-y-2">
|
||||||
|
<label className="text-xs uppercase font-bold text-gray-500 tracking-widest">Oda Sayısı</label>
|
||||||
|
<Input name="rooms" placeholder="4+1" className="bg-[#111827] border-gray-700 rounded-none h-12" required />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="space-y-2">
|
||||||
|
<label className="text-xs uppercase font-bold text-gray-500 tracking-widest">Durum</label>
|
||||||
|
<Input name="status" placeholder="Tamamlandı / Devam Ediyor" className="bg-[#111827] border-gray-700 rounded-none h-12" required />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="space-y-2">
|
||||||
|
<label className="text-xs uppercase font-bold text-gray-500 tracking-widest">Görsel URL (Unsplash vb.)</label>
|
||||||
|
<Input name="imageUrl" placeholder="https://..." className="bg-[#111827] border-gray-700 rounded-none h-12" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<Button type="submit" className="w-full bg-[#F59E0B] hover:bg-[#d98c0a] text-[#111827] font-bold py-6 rounded-none uppercase text-lg mt-4 transition-all">
|
||||||
|
Projeyi Kaydet
|
||||||
|
</Button>
|
||||||
|
</form>
|
||||||
|
</DialogContent>
|
||||||
|
</Dialog>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||||
|
{projects.map((p) => (
|
||||||
|
<Card key={p.id} className="bg-[#1f2937] border-gray-800 rounded-none shadow-2xl group">
|
||||||
|
<div className="relative h-48 w-full bg-gray-800 overflow-hidden">
|
||||||
|
{p.images[0] ? (
|
||||||
|
<Image
|
||||||
|
src={p.images[0]}
|
||||||
|
alt={p.title}
|
||||||
|
fill
|
||||||
|
className="object-cover group-hover:scale-105 transition-transform duration-500"
|
||||||
|
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
<div className="flex items-center justify-center h-full text-gray-600">
|
||||||
|
<ImageIcon size={48} />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
<div className="absolute top-4 right-4">
|
||||||
|
<form action={deleteProject.bind(null, p.id)}>
|
||||||
|
<Button variant="destructive" size="icon" className="h-10 w-10 bg-red-600/20 hover:bg-red-600 border border-red-600 text-white rounded-none transition-all">
|
||||||
|
<Trash2 size={18} />
|
||||||
|
</Button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<CardHeader className="pb-2 text-center uppercase tracking-tighter">
|
||||||
|
<CardTitle className="text-xl font-heading text-white">{p.title}</CardTitle>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent className="space-y-4">
|
||||||
|
<div className="flex justify-between items-center text-sm border-y border-gray-700 py-3 mt-2">
|
||||||
|
<div className="flex items-center gap-2 text-gray-400">
|
||||||
|
<Square size={14} className="text-[#F59E0B]"/> {p.m2} m²
|
||||||
|
</div>
|
||||||
|
<div className="flex items-center gap-2 text-gray-400">
|
||||||
|
<Plus size={14} className="text-[#F59E0B]"/> {p.rooms} Oda
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="flex items-center gap-2 text-[#F59E0B] text-xs font-bold uppercase tracking-widest">
|
||||||
|
<MapPin size={14} /> {p.status}
|
||||||
|
</div>
|
||||||
|
<p className="text-gray-400 text-sm line-clamp-2 italic">"{p.description}"</p>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
))}
|
||||||
|
|
||||||
|
{projects.length === 0 && (
|
||||||
|
<div className="col-span-full py-20 text-center bg-[#1f2937] border-2 border-dashed border-gray-700 grayscale">
|
||||||
|
<ImageIcon className="mx-auto text-gray-700 mb-4" size={64}/>
|
||||||
|
<h2 className="text-xl text-gray-500 font-heading uppercase">Henüz Proje Eklenmemiş</h2>
|
||||||
|
<p className="text-gray-600">Başlamak için sağ üstten yeni bir proje girişi yapın.</p>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,130 +1,79 @@
|
|||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
@import "tw-animate-css";
|
@source "../../src/**/*.{ts,tsx}";
|
||||||
@import "shadcn/tailwind.css";
|
|
||||||
|
|
||||||
@custom-variant dark (&:is(.dark *));
|
@theme {
|
||||||
|
--color-background: #F9F9F9;
|
||||||
|
--color-foreground: #1A1C1C;
|
||||||
|
|
||||||
@theme inline {
|
--color-card: #FFFFFF;
|
||||||
--color-background: var(--background);
|
--color-card-foreground: #1A1C1C;
|
||||||
--color-foreground: var(--foreground);
|
|
||||||
--font-sans: var(--font-sans);
|
|
||||||
--font-mono: var(--font-geist-mono);
|
|
||||||
--font-heading: var(--font-sans);
|
|
||||||
--color-sidebar-ring: var(--sidebar-ring);
|
|
||||||
--color-sidebar-border: var(--sidebar-border);
|
|
||||||
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
||||||
--color-sidebar-accent: var(--sidebar-accent);
|
|
||||||
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
||||||
--color-sidebar-primary: var(--sidebar-primary);
|
|
||||||
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
||||||
--color-sidebar: var(--sidebar);
|
|
||||||
--color-chart-5: var(--chart-5);
|
|
||||||
--color-chart-4: var(--chart-4);
|
|
||||||
--color-chart-3: var(--chart-3);
|
|
||||||
--color-chart-2: var(--chart-2);
|
|
||||||
--color-chart-1: var(--chart-1);
|
|
||||||
--color-ring: var(--ring);
|
|
||||||
--color-input: var(--input);
|
|
||||||
--color-border: var(--border);
|
|
||||||
--color-destructive: var(--destructive);
|
|
||||||
--color-accent-foreground: var(--accent-foreground);
|
|
||||||
--color-accent: var(--accent);
|
|
||||||
--color-muted-foreground: var(--muted-foreground);
|
|
||||||
--color-muted: var(--muted);
|
|
||||||
--color-secondary-foreground: var(--secondary-foreground);
|
|
||||||
--color-secondary: var(--secondary);
|
|
||||||
--color-primary-foreground: var(--primary-foreground);
|
|
||||||
--color-primary: var(--primary);
|
|
||||||
--color-popover-foreground: var(--popover-foreground);
|
|
||||||
--color-popover: var(--popover);
|
|
||||||
--color-card-foreground: var(--card-foreground);
|
|
||||||
--color-card: var(--card);
|
|
||||||
--radius-sm: calc(var(--radius) * 0.6);
|
|
||||||
--radius-md: calc(var(--radius) * 0.8);
|
|
||||||
--radius-lg: var(--radius);
|
|
||||||
--radius-xl: calc(var(--radius) * 1.4);
|
|
||||||
--radius-2xl: calc(var(--radius) * 1.8);
|
|
||||||
--radius-3xl: calc(var(--radius) * 2.2);
|
|
||||||
--radius-4xl: calc(var(--radius) * 2.6);
|
|
||||||
}
|
|
||||||
|
|
||||||
:root {
|
--color-popover: #FFFFFF;
|
||||||
--background: oklch(1 0 0);
|
--color-popover-foreground: #1A1C1C;
|
||||||
--foreground: oklch(0.145 0 0);
|
|
||||||
--card: oklch(1 0 0);
|
|
||||||
--card-foreground: oklch(0.145 0 0);
|
|
||||||
--popover: oklch(1 0 0);
|
|
||||||
--popover-foreground: oklch(0.145 0 0);
|
|
||||||
--primary: oklch(0.205 0 0);
|
|
||||||
--primary-foreground: oklch(0.985 0 0);
|
|
||||||
--secondary: oklch(0.97 0 0);
|
|
||||||
--secondary-foreground: oklch(0.205 0 0);
|
|
||||||
--muted: oklch(0.97 0 0);
|
|
||||||
--muted-foreground: oklch(0.556 0 0);
|
|
||||||
--accent: oklch(0.97 0 0);
|
|
||||||
--accent-foreground: oklch(0.205 0 0);
|
|
||||||
--destructive: oklch(0.577 0.245 27.325);
|
|
||||||
--border: oklch(0.922 0 0);
|
|
||||||
--input: oklch(0.922 0 0);
|
|
||||||
--ring: oklch(0.708 0 0);
|
|
||||||
--chart-1: oklch(0.87 0 0);
|
|
||||||
--chart-2: oklch(0.556 0 0);
|
|
||||||
--chart-3: oklch(0.439 0 0);
|
|
||||||
--chart-4: oklch(0.371 0 0);
|
|
||||||
--chart-5: oklch(0.269 0 0);
|
|
||||||
--radius: 0.625rem;
|
|
||||||
--sidebar: oklch(0.985 0 0);
|
|
||||||
--sidebar-foreground: oklch(0.145 0 0);
|
|
||||||
--sidebar-primary: oklch(0.205 0 0);
|
|
||||||
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
||||||
--sidebar-accent: oklch(0.97 0 0);
|
|
||||||
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
||||||
--sidebar-border: oklch(0.922 0 0);
|
|
||||||
--sidebar-ring: oklch(0.708 0 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
.dark {
|
--color-primary: #5F5E5E;
|
||||||
--background: oklch(0.145 0 0);
|
--color-primary-foreground: #FFFFFF;
|
||||||
--foreground: oklch(0.985 0 0);
|
|
||||||
--card: oklch(0.205 0 0);
|
--color-secondary: #F3F3F3;
|
||||||
--card-foreground: oklch(0.985 0 0);
|
--color-secondary-foreground: #1A1C1C;
|
||||||
--popover: oklch(0.205 0 0);
|
|
||||||
--popover-foreground: oklch(0.985 0 0);
|
--color-muted: #F3F3F3;
|
||||||
--primary: oklch(0.922 0 0);
|
--color-muted-foreground: #6D6D6D;
|
||||||
--primary-foreground: oklch(0.205 0 0);
|
|
||||||
--secondary: oklch(0.269 0 0);
|
--color-accent: #FFBF00;
|
||||||
--secondary-foreground: oklch(0.985 0 0);
|
--color-accent-foreground: #1A1C1C;
|
||||||
--muted: oklch(0.269 0 0);
|
|
||||||
--muted-foreground: oklch(0.708 0 0);
|
--color-destructive: #EE4444;
|
||||||
--accent: oklch(0.269 0 0);
|
--color-destructive-foreground: #F9F9F9;
|
||||||
--accent-foreground: oklch(0.985 0 0);
|
|
||||||
--destructive: oklch(0.704 0.191 22.216);
|
--color-border: rgba(0, 0, 0, 0.05);
|
||||||
--border: oklch(1 0 0 / 10%);
|
--color-input: rgba(0, 0, 0, 0.05);
|
||||||
--input: oklch(1 0 0 / 15%);
|
--color-ring: #FFBF00;
|
||||||
--ring: oklch(0.556 0 0);
|
|
||||||
--chart-1: oklch(0.87 0 0);
|
--font-inter: var(--inter-font), sans-serif;
|
||||||
--chart-2: oklch(0.556 0 0);
|
--font-manrope: var(--manrope-font), sans-serif;
|
||||||
--chart-3: oklch(0.439 0 0);
|
--font-bebas-neue: var(--bebas-font), sans-serif;
|
||||||
--chart-4: oklch(0.371 0 0);
|
|
||||||
--chart-5: oklch(0.269 0 0);
|
--radius-sm: 0.125rem;
|
||||||
--sidebar: oklch(0.205 0 0);
|
--radius-md: 0.25rem;
|
||||||
--sidebar-foreground: oklch(0.985 0 0);
|
--radius-lg: 0.5rem;
|
||||||
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
||||||
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
||||||
--sidebar-accent: oklch(0.269 0 0);
|
|
||||||
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
||||||
--sidebar-border: oklch(1 0 0 / 10%);
|
|
||||||
--sidebar-ring: oklch(0.556 0 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
|
:root {
|
||||||
|
--background: #F9F9F9;
|
||||||
|
--foreground: #1A1C1C;
|
||||||
|
--primary: #5F5E5E;
|
||||||
|
--accent: #FFBF00;
|
||||||
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
@apply border-border outline-ring/50;
|
border-color: var(--color-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@apply bg-background text-foreground;
|
background-color: var(--color-background);
|
||||||
|
color: var(--color-foreground);
|
||||||
|
font-family: var(--font-manrope), sans-serif;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
min-height: 100vh;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
html {
|
}
|
||||||
@apply font-sans;
|
|
||||||
|
@layer utilities {
|
||||||
|
.label-editorial {
|
||||||
|
font-family: var(--font-manrope), sans-serif;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.15em;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.glass-nav {
|
||||||
|
background-color: rgba(255, 255, 255, 0.85);
|
||||||
|
backdrop-filter: blur(24px);
|
||||||
|
-webkit-backdrop-filter: blur(24px);
|
||||||
|
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,20 +1,27 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import { Geist, Geist_Mono } from "next/font/google";
|
import { Bebas_Neue, Inter, Manrope } from "next/font/google";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
|
|
||||||
const geistSans = Geist({
|
const bebasNeue = Bebas_Neue({
|
||||||
variable: "--font-geist-sans",
|
weight: "400",
|
||||||
|
variable: "--bebas-font",
|
||||||
subsets: ["latin"],
|
subsets: ["latin"],
|
||||||
});
|
});
|
||||||
|
|
||||||
const geistMono = Geist_Mono({
|
const inter = Inter({
|
||||||
variable: "--font-geist-mono",
|
variable: "--inter-font",
|
||||||
|
subsets: ["latin"],
|
||||||
|
weight: ["700", "800", "900"],
|
||||||
|
});
|
||||||
|
|
||||||
|
const manrope = Manrope({
|
||||||
|
variable: "--manrope-font",
|
||||||
subsets: ["latin"],
|
subsets: ["latin"],
|
||||||
});
|
});
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Create Next App",
|
title: "Utku Kırkan | Engineering Excellence",
|
||||||
description: "Generated by create next app",
|
description: "Modern Mühendislik, Güçlü Yapılar. Muğla'da Güvenilir Mühendislik ve İnşaat Hizmetleri.",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
@@ -24,10 +31,13 @@ export default function RootLayout({
|
|||||||
}>) {
|
}>) {
|
||||||
return (
|
return (
|
||||||
<html
|
<html
|
||||||
lang="en"
|
lang="tr"
|
||||||
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
className={`${bebasNeue.variable} ${inter.variable} ${manrope.variable} h-full`}
|
||||||
|
style={{ scrollBehavior: 'smooth' }}
|
||||||
>
|
>
|
||||||
<body className="min-h-full flex flex-col">{children}</body>
|
<body className="min-h-full flex flex-col font-sans antialiased text-foreground bg-background">
|
||||||
|
{children}
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,65 +0,0 @@
|
|||||||
import Image from "next/image";
|
|
||||||
|
|
||||||
export default function Home() {
|
|
||||||
return (
|
|
||||||
<div className="flex flex-col flex-1 items-center justify-center bg-zinc-50 font-sans dark:bg-black">
|
|
||||||
<main className="flex flex-1 w-full max-w-3xl flex-col items-center justify-between py-32 px-16 bg-white dark:bg-black sm:items-start">
|
|
||||||
<Image
|
|
||||||
className="dark:invert"
|
|
||||||
src="/next.svg"
|
|
||||||
alt="Next.js logo"
|
|
||||||
width={100}
|
|
||||||
height={20}
|
|
||||||
priority
|
|
||||||
/>
|
|
||||||
<div className="flex flex-col items-center gap-6 text-center sm:items-start sm:text-left">
|
|
||||||
<h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
|
|
||||||
To get started, edit the page.tsx file.
|
|
||||||
</h1>
|
|
||||||
<p className="max-w-md text-lg leading-8 text-zinc-600 dark:text-zinc-400">
|
|
||||||
Looking for a starting point or more instructions? Head over to{" "}
|
|
||||||
<a
|
|
||||||
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
|
||||||
className="font-medium text-zinc-950 dark:text-zinc-50"
|
|
||||||
>
|
|
||||||
Templates
|
|
||||||
</a>{" "}
|
|
||||||
or the{" "}
|
|
||||||
<a
|
|
||||||
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
|
||||||
className="font-medium text-zinc-950 dark:text-zinc-50"
|
|
||||||
>
|
|
||||||
Learning
|
|
||||||
</a>{" "}
|
|
||||||
center.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div className="flex flex-col gap-4 text-base font-medium sm:flex-row">
|
|
||||||
<a
|
|
||||||
className="flex h-12 w-full items-center justify-center gap-2 rounded-full bg-foreground px-5 text-background transition-colors hover:bg-[#383838] dark:hover:bg-[#ccc] md:w-[158px]"
|
|
||||||
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>
|
|
||||||
<Image
|
|
||||||
className="dark:invert"
|
|
||||||
src="/vercel.svg"
|
|
||||||
alt="Vercel logomark"
|
|
||||||
width={16}
|
|
||||||
height={16}
|
|
||||||
/>
|
|
||||||
Deploy Now
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
className="flex h-12 w-full items-center justify-center rounded-full border border-solid border-black/[.08] px-5 transition-colors hover:border-transparent hover:bg-black/[.04] dark:border-white/[.145] dark:hover:bg-[#1a1a1a] md:w-[158px]"
|
|
||||||
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>
|
|
||||||
Documentation
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
44
src/components/footer.tsx
Normal file
44
src/components/footer.tsx
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { motion } from "framer-motion";
|
||||||
|
|
||||||
|
export function Footer() {
|
||||||
|
return (
|
||||||
|
<footer className="bg-[#0A0B0B] text-white py-24 px-6 md:px-24">
|
||||||
|
<div className="max-w-7xl mx-auto flex flex-col md:flex-row justify-between gap-20">
|
||||||
|
<div>
|
||||||
|
<div className="font-inter font-black text-4xl uppercase mb-8 tracking-tighter">
|
||||||
|
UTKU <span className="text-[#FFBF00]">KIRKAN</span>
|
||||||
|
</div>
|
||||||
|
<p className="text-gray-500 max-w-sm font-manrope">
|
||||||
|
Muğla genelinde modern mühendislik standartlarını estetik tasarım ile buluşturan küratörlüğünü üstlendiğimiz projelerle geleceği inşa ediyoruz.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div className="grid grid-cols-2 gap-20">
|
||||||
|
<div className="space-y-6">
|
||||||
|
<p className="label-editorial text-[#FFBF00]">Harita</p>
|
||||||
|
<div className="text-sm font-manrope text-gray-400 space-y-2">
|
||||||
|
<p>Muğla, Menteşe</p>
|
||||||
|
<p>Kötekli Mevki</p>
|
||||||
|
<p>Türkiye</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="space-y-6">
|
||||||
|
<p className="label-editorial text-[#FFBF00]">Sosyal</p>
|
||||||
|
<div className="text-sm font-manrope text-gray-400 space-y-2">
|
||||||
|
<a href="#" className="block hover:text-white transition-colors uppercase tracking-widest">INSTAGRAM</a>
|
||||||
|
<a href="#" className="block hover:text-white transition-colors uppercase tracking-widest">LINKEDIN</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="max-w-7xl mx-auto mt-24 pt-12 border-t border-white/5 flex flex-col md:flex-row justify-between text-[10px] text-gray-600 tracking-widest uppercase">
|
||||||
|
<p>© 2024 UTKU KIRKAN ENGINEERING EXCELLENCE.</p>
|
||||||
|
<div className="flex gap-8">
|
||||||
|
<span>Gizlilik Politikası</span>
|
||||||
|
<span>KVKK Aydınlatma Metni</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
);
|
||||||
|
}
|
||||||
288
src/components/landing-page.tsx
Normal file
288
src/components/landing-page.tsx
Normal file
@@ -0,0 +1,288 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import Image from "next/image";
|
||||||
|
import { motion } from "framer-motion";
|
||||||
|
import {
|
||||||
|
Phone,
|
||||||
|
MessageSquare,
|
||||||
|
ArrowUpRight
|
||||||
|
} from "lucide-react";
|
||||||
|
import { Button } from "@/components/ui/button";
|
||||||
|
import { Input } from "@/components/ui/input";
|
||||||
|
import { Textarea } from "@/components/ui/textarea";
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
|
const fadeInUp = {
|
||||||
|
initial: { opacity: 0, y: 30 },
|
||||||
|
whileInView: { opacity: 1, y: 0 },
|
||||||
|
viewport: { once: true },
|
||||||
|
transition: { duration: 0.8, ease: "easeOut" as const }
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Project {
|
||||||
|
id: string;
|
||||||
|
title: string;
|
||||||
|
description: string;
|
||||||
|
m2: number;
|
||||||
|
rooms: string;
|
||||||
|
images: string[];
|
||||||
|
status: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function LandingPage({ projects }: { projects: Project[] }) {
|
||||||
|
return (
|
||||||
|
<div className="flex flex-col min-h-screen bg-[#F9F9F9] text-[#1A1C1C] selection:bg-[#FFBF00] selection:text-[#1A1C1C]">
|
||||||
|
{/* Hero Section - The Curated Monolith */}
|
||||||
|
<section className="relative h-[100vh] min-h-[700px] flex items-center overflow-hidden bg-[#1A1C1C]">
|
||||||
|
<div className="absolute inset-0 z-0 h-full w-full">
|
||||||
|
<Image
|
||||||
|
src="https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070"
|
||||||
|
alt="Architecture"
|
||||||
|
fill
|
||||||
|
className="object-cover opacity-40 grayscale"
|
||||||
|
priority
|
||||||
|
sizes="100vw"
|
||||||
|
/>
|
||||||
|
<div className="absolute inset-0 bg-gradient-to-r from-[#1A1C1C] via-[#1A1C1C]/40 to-transparent" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="relative z-10 px-6 md:px-24 w-full max-w-7xl mx-auto">
|
||||||
|
<motion.div
|
||||||
|
initial={{ opacity: 0, x: -50 }}
|
||||||
|
animate={{ opacity: 1, x: 0 }}
|
||||||
|
transition={{ duration: 1 }}
|
||||||
|
>
|
||||||
|
<p className="label-editorial text-[#FFBF00] mb-6">Muğla • Mühendislik & Müteahhitlik</p>
|
||||||
|
<h1 className="text-6xl md:text-9xl font-inter font-black text-white leading-[1.1] uppercase mb-8">
|
||||||
|
Modern<br />
|
||||||
|
<span className="text-transparent border-t-2 border-b-2 border-white/20 inline-block py-4 my-2 font-bebas-neue tracking-normal">Mühendislik</span><br />
|
||||||
|
Güçlü Yapılar
|
||||||
|
</h1>
|
||||||
|
<div className="flex flex-col sm:flex-row gap-6 mt-12">
|
||||||
|
<a href="/projeler">
|
||||||
|
<Button className="bg-[#FFBF00] hover:bg-[#E6AC00] text-[#1A1C1C] font-bold text-lg px-10 py-8 rounded-sm uppercase transition-all shadow-2xl">
|
||||||
|
Projeleri İncele
|
||||||
|
</Button>
|
||||||
|
</a>
|
||||||
|
<a href="/surec" className="flex items-center gap-4 group">
|
||||||
|
<div className="w-16 h-16 rounded-full border border-white/20 flex items-center justify-center text-white group-hover:bg-white group-hover:text-[#1A1C1C] transition-all">
|
||||||
|
<ArrowUpRight size={24} />
|
||||||
|
</div>
|
||||||
|
<span className="label-editorial text-white">Süreç</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</motion.div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{/* Services Section - Architectural Excellence */}
|
||||||
|
<section id="hizmetler" className="py-32 bg-[#F9F9F9] px-6 md:px-24">
|
||||||
|
<div className="max-w-7xl mx-auto">
|
||||||
|
<div className="grid grid-cols-1 lg:grid-cols-12 gap-12 lg:gap-24 items-start px-0">
|
||||||
|
<motion.div {...fadeInUp} className="lg:col-span-5 sticky top-32 z-10 bg-inherit">
|
||||||
|
<p className="label-editorial text-[#795900] mb-4">Uzmanlık Alanlarımız</p>
|
||||||
|
<h2 className="text-5xl md:text-6xl lg:text-7xl font-inter font-black uppercase leading-[1.1] mb-8 break-words">
|
||||||
|
Mimari<br />
|
||||||
|
<span className="bg-[#FFBF00] px-4 py-1 text-white inline-block mt-2">Mükemmeliyet</span>
|
||||||
|
</h2>
|
||||||
|
<p className="text-lg text-gray-600 leading-relaxed max-w-sm">
|
||||||
|
Sadece bina inşa etmiyoruz; mühendislik disipliniyle şekillendirilmiş, Muğla'nın dokusuna uyumlu yaşam alanları tasarlıyoruz.
|
||||||
|
</p>
|
||||||
|
</motion.div>
|
||||||
|
|
||||||
|
<div className="lg:col-span-7 space-y-1 relative z-0">
|
||||||
|
{[
|
||||||
|
{
|
||||||
|
id: "01",
|
||||||
|
title: "Statik Proje Tasarımı",
|
||||||
|
desc: "Maksimum dayanıklılık için ileri düzey mühendislik hesaplamaları ve deprem yönetmeliğine tam uyumlu taşıyıcı sistem analizleri.",
|
||||||
|
img: "https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=2062"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "02",
|
||||||
|
title: "Müteahhitlik Hizmetleri",
|
||||||
|
desc: "A'dan Z'ye anahtar teslim inşaat süreçleri. Kaliteli malzeme ve usta işçiliği mühendislik denetimiyle birleştiriyoruz.",
|
||||||
|
img: "https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "03",
|
||||||
|
title: "Teknik Danışmanlık",
|
||||||
|
desc: "İnşaat yatırım süreçlerinizde risk yönetimi, bütçe optimizasyonu ve yasal mevzuat uyumu konusunda profesyonel destek.",
|
||||||
|
img: "https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=1974"
|
||||||
|
}
|
||||||
|
].map((s, i) => (
|
||||||
|
<motion.div
|
||||||
|
key={i}
|
||||||
|
{...fadeInUp}
|
||||||
|
transition={{ delay: i * 0.2 }}
|
||||||
|
className="group relative bg-[#F3F3F3] p-12 overflow-hidden hover:bg-[#FFFFFF] transition-all duration-500"
|
||||||
|
>
|
||||||
|
<div className="flex flex-col md:flex-row justify-between items-start md:items-center gap-8 relative z-10">
|
||||||
|
<div className="flex gap-8 items-start">
|
||||||
|
<span className="text-4xl font-inter font-bold text-[#FFBF00]/30">{s.id}</span>
|
||||||
|
<div>
|
||||||
|
<h3 className="text-3xl font-inter font-black uppercase mb-4 group-hover:text-[#795900] transition-colors">{s.title}</h3>
|
||||||
|
<p className="text-gray-500 max-w-md group-hover:text-[#1A1C1C] transition-colors">{s.desc}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="opacity-0 group-hover:opacity-100 transition-opacity duration-500 w-32 h-32 relative hidden md:block">
|
||||||
|
<Image src={s.img} alt={s.title} fill className="object-cover grayscale" sizes="128px" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</motion.div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{/* Projects Section - Horizontal Monolith */}
|
||||||
|
<section id="projeler" className="py-32 bg-[#FFFFFF] px-6 md:px-24 overflow-hidden">
|
||||||
|
<div className="max-w-7xl mx-auto">
|
||||||
|
<motion.div {...fadeInUp} className="mb-20 flex flex-col md:flex-row justify-between items-end gap-10">
|
||||||
|
<h2 className="text-5xl md:text-9xl font-inter font-black uppercase leading-[0.9] tracking-tighter">
|
||||||
|
PROJELER
|
||||||
|
</h2>
|
||||||
|
<div className="w-full md:w-1/3 h-px bg-gray-200 hidden md:block" />
|
||||||
|
<p className="label-editorial text-gray-400">2023 - 2024 Koleksiyonu</p>
|
||||||
|
</motion.div>
|
||||||
|
|
||||||
|
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-12">
|
||||||
|
{projects.length > 0 ? projects.map((p, i) => (
|
||||||
|
<motion.div
|
||||||
|
key={p.id}
|
||||||
|
{...fadeInUp}
|
||||||
|
transition={{ delay: i * 0.1 }}
|
||||||
|
className="group cursor-pointer"
|
||||||
|
>
|
||||||
|
<Link href={`/projeler/${p.id}`}>
|
||||||
|
<div className="relative aspect-[4/5] overflow-hidden bg-gray-100 mb-8">
|
||||||
|
<Image
|
||||||
|
src={p.images[0] || "https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=2070"}
|
||||||
|
alt={p.title}
|
||||||
|
fill
|
||||||
|
className="object-cover grayscale translate-y-3 group-hover:translate-y-0 group-hover:grayscale-0 transition-all duration-700"
|
||||||
|
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
|
||||||
|
/>
|
||||||
|
<div className="absolute inset-0 bg-[#795900]/20 opacity-0 group-hover:opacity-100 transition-opacity" />
|
||||||
|
<div className="absolute bottom-8 right-8 w-16 h-16 bg-[#1A1C1C] flex items-center justify-center text-[#FFBF00] translate-y-20 group-hover:translate-y-0 transition-transform duration-500">
|
||||||
|
<ArrowUpRight size={24} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p className="label-editorial text-[#795900] mb-2">{p.status}</p>
|
||||||
|
<h4 className="text-3xl font-inter font-black uppercase mb-4">{p.title}</h4>
|
||||||
|
<div className="flex gap-6 text-[10px] font-manrope uppercase tracking-widest text-gray-400">
|
||||||
|
<span>{p.m2} m²</span>
|
||||||
|
<span>Muğla, Menteşe</span>
|
||||||
|
</div>
|
||||||
|
</Link>
|
||||||
|
</motion.div>
|
||||||
|
)) : (
|
||||||
|
[
|
||||||
|
"https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=2070",
|
||||||
|
"https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070",
|
||||||
|
"https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=1974"
|
||||||
|
].map((url, i) => (
|
||||||
|
<div key={i} className="aspect-[4/5] bg-gray-100 relative grayscale opacity-50 overflow-hidden" tabIndex={0}>
|
||||||
|
<Image src={url} alt="Fallback" fill className="object-cover" sizes="(max-width: 768px) 100vw, 33vw" />
|
||||||
|
</div>
|
||||||
|
))
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{/* About Section */}
|
||||||
|
<section id="hakkimizda" className="py-32 bg-[#F3F3F3] px-6 md:px-24">
|
||||||
|
<div className="max-w-7xl mx-auto grid grid-cols-1 lg:grid-cols-2 gap-24 items-center">
|
||||||
|
<motion.div {...fadeInUp} className="relative aspect-square bg-[#FFFFFF] p-4 shadow-2xl">
|
||||||
|
<div className="relative w-full h-full overflow-hidden">
|
||||||
|
<Image
|
||||||
|
src="https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=1974"
|
||||||
|
alt="Office"
|
||||||
|
fill
|
||||||
|
className="object-cover grayscale"
|
||||||
|
sizes="(max-width: 1024px) 100vw, 50vw"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="absolute -bottom-10 -left-10 bg-[#FFBF00] p-12 text-[#1A1C1C]">
|
||||||
|
<span className="text-7xl font-inter font-black">10+</span>
|
||||||
|
<p className="label-editorial">Yıllık Güven</p>
|
||||||
|
</div>
|
||||||
|
</motion.div>
|
||||||
|
<motion.div {...fadeInUp}>
|
||||||
|
<p className="label-editorial text-[#795900] mb-8">Kurumsal Vizyon</p>
|
||||||
|
<h2 className="text-5xl md:text-7xl font-inter font-black uppercase leading-none mb-12">
|
||||||
|
Disiplinli<br />
|
||||||
|
İnşaat Kültürü
|
||||||
|
</h2>
|
||||||
|
<div className="space-y-8 text-gray-600 text-lg leading-relaxed font-manrope">
|
||||||
|
<p>
|
||||||
|
İnşaat mühendisliği her şeyden önce bir disiplin, yapı güvenliği ise bir haktır. Utku Kırkan olarak, Muğla'nın mimari zenginliğini koruyarak geleceğin sağlam temellerini bugün atıyoruz.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Analitik çözümleme ve estetik kaygıyı bir dengede tutarak, "The Curated Monolith" anlayışıyla zamansız yapılar inşa ediyoruz. Her detayda titizlik, her projede sürdürebilirlik sözü veriyoruz.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</motion.div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{/* Contact Section */}
|
||||||
|
<section id="iletisim" className="py-32 bg-[#1A1C1C] text-white px-6 md:px-24">
|
||||||
|
<div className="max-w-7xl mx-auto">
|
||||||
|
<div className="grid grid-cols-1 lg:grid-cols-2 gap-32">
|
||||||
|
<motion.div {...fadeInUp}>
|
||||||
|
<p className="label-editorial text-[#FFBF00] mb-8">İletişim & Randevu</p>
|
||||||
|
<h2 className="text-5xl md:text-8xl font-inter font-black uppercase leading-[0.9] mb-12">
|
||||||
|
Projeyi<br />
|
||||||
|
Konuşalım
|
||||||
|
</h2>
|
||||||
|
<div className="space-y-12">
|
||||||
|
<div className="flex items-center gap-8 group cursor-pointer">
|
||||||
|
<div className="w-20 h-20 border border-white/20 flex items-center justify-center text-[#FFBF00] group-hover:bg-[#FFBF00] group-hover:text-[#1A1C1C] transition-all duration-500">
|
||||||
|
<Phone size={32} />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p className="label-editorial text-gray-500">Telefon Hattı</p>
|
||||||
|
<p className="text-3xl font-inter font-bold">+90 5XX XXX XX XX</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="flex items-center gap-8 group cursor-pointer">
|
||||||
|
<div className="w-20 h-20 border border-white/20 flex items-center justify-center text-[#FFBF00] group-hover:bg-[#FFBF00] group-hover:text-[#1A1C1C] transition-all duration-500">
|
||||||
|
<MessageSquare size={32} />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p className="label-editorial text-gray-500">WhatsApp</p>
|
||||||
|
<a href="https://wa.me/905XXXXXXXXX" className="text-3xl font-inter font-bold border-b-2 border-transparent hover:border-[#FFBF00] transition-all">MESAJ GÖNDER</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</motion.div>
|
||||||
|
|
||||||
|
<motion.div {...fadeInUp} className="bg-[#FFFFFF] p-12 md:p-16 text-[#1A1C1C]">
|
||||||
|
<h3 className="text-3xl font-inter font-black uppercase mb-12">Ücretsiz Teklif Formu</h3>
|
||||||
|
<form className="space-y-8">
|
||||||
|
<div className="space-y-2 group">
|
||||||
|
<label className="label-editorial text-gray-400 group-focus-within:text-[#FFBF00] transition-colors">Ad Soyad</label>
|
||||||
|
<Input className="border-0 border-b border-gray-200 rounded-none bg-transparent px-0 focus-visible:ring-0 focus-visible:border-[#FFBF00] h-12 transition-all" placeholder="ADINIZ SOYADINIZ" />
|
||||||
|
</div>
|
||||||
|
<div className="space-y-2 group">
|
||||||
|
<label className="label-editorial text-gray-400 group-focus-within:text-[#FFBF00] transition-colors">Tel / E-posta</label>
|
||||||
|
<Input className="border-0 border-b border-gray-200 rounded-none bg-transparent px-0 focus-visible:ring-0 focus-visible:border-[#FFBF00] h-12 transition-all" placeholder="iletisim@bilgi.com" />
|
||||||
|
</div>
|
||||||
|
<div className="space-y-2 group">
|
||||||
|
<label className="label-editorial text-gray-400 group-focus-within:text-[#FFBF00] transition-colors">Proje Detayları</label>
|
||||||
|
<Textarea className="border-0 border-b border-gray-200 rounded-none bg-transparent px-0 focus-visible:ring-0 focus-visible:border-[#FFBF00] min-h-[120px] resize-none transition-all" placeholder="PROJENİZ HAKKINDA KISA BİLGİ..." />
|
||||||
|
</div>
|
||||||
|
<Button className="w-full bg-[#1A1C1C] hover:bg-[#795900] text-white font-bold h-20 rounded-none uppercase transition-all shadow-xl group">
|
||||||
|
Formu Gönder <ArrowUpRight className="ml-4 group-hover:translate-x-2 group-hover:-translate-y-2 transition-transform" />
|
||||||
|
</Button>
|
||||||
|
</form>
|
||||||
|
</motion.div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
21
src/components/navbar.tsx
Normal file
21
src/components/navbar.tsx
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { motion } from "framer-motion";
|
||||||
|
import { ArrowUpRight } from "lucide-react";
|
||||||
|
|
||||||
|
export function Navbar() {
|
||||||
|
return (
|
||||||
|
<nav className="fixed top-0 w-full z-50 glass-nav h-20 flex items-center px-6 md:px-12 justify-between">
|
||||||
|
<div className="font-inter font-black text-2xl tracking-tighter uppercase">
|
||||||
|
<a href="/">Utku <span className="text-[#795900]">Kırkan</span></a>
|
||||||
|
</div>
|
||||||
|
<div className="hidden md:flex items-center gap-10 label-editorial">
|
||||||
|
<a href="/#hizmetler" className="hover:text-[#795900] transition-colors">Hizmetler</a>
|
||||||
|
<a href="/projeler" className="hover:text-[#795900] transition-colors">Projeler</a>
|
||||||
|
<a href="/surec" className="hover:text-[#795900] transition-colors">Süreç</a>
|
||||||
|
<a href="/#hakkimizda" className="hover:text-[#795900] transition-colors">Vizyon</a>
|
||||||
|
<a href="/#iletisim" className="bg-[#1A1C1C] text-white px-6 py-2 hover:bg-[#795900] transition-all">İletişim</a>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
);
|
||||||
|
}
|
||||||
71
src/seed.ts
Normal file
71
src/seed.ts
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
import { PrismaClient } from "./generated/prisma";
|
||||||
|
import { PrismaPg } from "@prisma/adapter-pg";
|
||||||
|
import pg from "pg";
|
||||||
|
import * as dotenv from "dotenv";
|
||||||
|
|
||||||
|
dotenv.config();
|
||||||
|
|
||||||
|
const connectionString = process.env.DATABASE_URL;
|
||||||
|
if (!connectionString) throw new Error("DATABASE_URL is not set");
|
||||||
|
|
||||||
|
const pool = new pg.Pool({ connectionString });
|
||||||
|
const adapter = new PrismaPg(pool);
|
||||||
|
const prisma = new PrismaClient({ adapter });
|
||||||
|
|
||||||
|
async function main() {
|
||||||
|
console.log("Seeding projects...");
|
||||||
|
|
||||||
|
const projects = [
|
||||||
|
{
|
||||||
|
title: "VILLA AURELIAN",
|
||||||
|
description: "Menteşe'nin kalbinde, modern mimariyle doğanın buluştuğu lüks villa projesi. Brütalist dokunuşlar ve geniş cam yüzeyler ile ferah bir yaşam alanı.",
|
||||||
|
m2: 450,
|
||||||
|
rooms: "5+1",
|
||||||
|
status: "TAMAMLANDI",
|
||||||
|
images: [
|
||||||
|
"https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=2070",
|
||||||
|
"https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?q=80&w=2075"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "ZENITH APARTMANI",
|
||||||
|
description: "Şehir merkezinde yüksek mühendislik standartlarıyla inşa edilen, deprem güvenliği öncelikli modern konut projesi.",
|
||||||
|
m2: 1200,
|
||||||
|
rooms: "3+1 / 4+1",
|
||||||
|
status: "DEVAM EDİYOR",
|
||||||
|
images: [
|
||||||
|
"https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070",
|
||||||
|
"https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=1974"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "MİLAS REZİDANS",
|
||||||
|
description: "Muğla'nın tarihi dokusuna uyumlu, sürdürülebilir enerji çözümleriyle donatılmış ekolojik konut kompleksi.",
|
||||||
|
m2: 3200,
|
||||||
|
rooms: "Stüdyo / 2+1",
|
||||||
|
status: "PLANLANIYOR",
|
||||||
|
images: [
|
||||||
|
"https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=2062",
|
||||||
|
"https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=2062"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
for (const project of projects) {
|
||||||
|
await prisma.project.create({
|
||||||
|
data: project
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log("Seeding complete!");
|
||||||
|
}
|
||||||
|
|
||||||
|
main()
|
||||||
|
.catch((e) => {
|
||||||
|
console.error(e);
|
||||||
|
process.exit(1);
|
||||||
|
})
|
||||||
|
.finally(async () => {
|
||||||
|
await prisma.$disconnect();
|
||||||
|
await pool.end();
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user