diff --git a/app/page-new.tsx b/app/page-new.tsx new file mode 100644 index 0000000..b590021 --- /dev/null +++ b/app/page-new.tsx @@ -0,0 +1,67 @@ +'use client'; + +import { useState, useEffect } from 'react'; +import Header from "@/components/Header"; +import Footer from "@/components/Footer"; +import HeroSlider from "@/components/HeroSlider"; +import QuickMenuCards from "@/components/QuickMenuCards"; +import LiveStreamSection from "@/components/LiveStreamSection"; +import NewsSection from "@/components/NewsSection"; +import MetroLine from "@/components/MetroLine"; + +export default function Home() { + const [showLiveStream, setShowLiveStream] = useState(false); + const [showNews, setShowNews] = useState(false); + const [showDocuments, setShowDocuments] = useState(false); + const [showMediaGallery, setShowMediaGallery] = useState(false); + const [showComplaintForm, setShowComplaintForm] = useState(false); + const [showContact, setShowContact] = useState(false); + + // Modal açıldığında yukarı kaydır + useEffect(() => { + if (showLiveStream || showNews || showDocuments || showMediaGallery || showComplaintForm || showContact) { + window.scrollTo({ top: 0, behavior: 'smooth' }); + } + }, [showLiveStream, showNews, showDocuments, showMediaGallery, showComplaintForm, showContact]); + + return ( +
- {doc.description} -
- {item.description} -
- A2 Metro Hattı projesi ile ilgili dilek, öneri ve şikayetlerinizi bu form aracılığıyla iletebilirsiniz. Başvurularınız en kısa sürede değerlendirilecektir. -
- Emniyet Mah. Hipodrom Caddesi No: 5 - Yenimahalle / Ankara -
- Hafta İçi: 08:30 - 17:30 - Hafta Sonu: Kapalı -
Ana sayfa hero slider içeriklerini yönetin
Haberler ve duyuruları yönetin, düzenleyin
Toplam Haber
{newsList.length}
{newsItems.length}
Ana Sayfada
{newsList.filter(n => n.featured).length}
{newsItems.filter(n => n.featured).length}
İnşaat Haberleri
{newsList.filter(n => n.category === 'construction').length}
{newsItems.filter(n => n.category === 'construction').length}
Duyurular
{newsList.filter(n => n.category === 'announcements').length}
{newsItems.filter(n => n.category === 'announcements').length}
Video ve fotoğraf içeriklerini yönetin
Toplam Medya
{mediaList.length}
{mediaItems.length}
Videolar
{mediaList.filter(m => m.type === 'video').length}
{mediaItems.filter(m => m.type === 'video').length}
Fotoğraflar
{mediaList.filter(m => m.type === 'photo').length}
{mediaItems.filter(m => m.type === 'photo').length}
Proje belgelerini ve dökümanları yönetin
Toplam
{documentsList.length}
{documents.length}
İhale
{documentsList.filter(d => d.category === 'ihale').length}
{documents.filter(d => d.category === 'ihale').length}
Teknik
{documentsList.filter(d => d.category === 'teknik').length}
{documents.filter(d => d.category === 'teknik').length}
Çevresel
{documentsList.filter(d => d.category === 'cevresel').length}
{documents.filter(d => d.category === 'cevresel').length}
Raporlar
{documentsList.filter(d => d.category === 'raporlar').length}
{documents.filter(d => d.category === 'raporlar').length}
Toplam İstasyon
{stationsList.length}
{metroStations.length}
Tamamlanan
{stationsList.filter(s => s.status === 'completed').length}
{metroStations.filter(s => s.status === 'completed').length}
Devam Eden
{stationsList.filter(s => s.status === 'in-progress').length}
{metroStations.filter(s => s.status === 'in-progress').length}
Planlanan
{stationsList.filter(s => s.status === 'planned').length}
{metroStations.filter(s => s.status === 'planned').length}
+ A2 Metro Hattı projesi ile ilgili dilek, öneri ve şikayetlerinizi bu form aracılığıyla iletebilirsiniz. Başvurularınız en kısa sürede değerlendirilecektir. +
+ Emniyet Mah. Hipodrom Caddesi No: 5 + Yenimahalle / Ankara +
+ Hafta İçi: 08:30 - 17:30 + Hafta Sonu: Kapalı +
+ {doc.description} +
+ {slide.description} +
+ A2 Metro Hattı İnşaat Çalışmaları - Canlı Yayın +
+ {item.description} +
- {index === currentStation ? '🚇 Metro Burada' : - station.status === 'completed' ? '✓ Tamamlandı' : + {index === currentStationIndex ? '🚇 Metro Burada' : + station.status === 'completed' || index < currentStationIndex ? '✓ Tamamlandı' : + station.status === 'in-progress' ? '🔄 Devam Ediyor' : '◯ Planlı'}
+ {news.summary} +
+ {news.content} +