Build
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
'use client';
|
||||
|
||||
import { useState, useEffect } from 'react';
|
||||
import Header from "@/components/Header";
|
||||
import Footer from "@/components/Footer";
|
||||
import { dataStore, type SiteSettings } from '@/lib/dataStore';
|
||||
|
||||
export default function Contact() {
|
||||
const [settings, setSettings] = useState<SiteSettings | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
setSettings(dataStore.getSiteSettings());
|
||||
}, []);
|
||||
|
||||
if (!settings) return null;
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-[#003366]">
|
||||
<Header />
|
||||
@@ -35,8 +45,7 @@ export default function Contact() {
|
||||
<div className="flex-1">
|
||||
<h3 className="text-lg font-bold text-[#004B87] mb-2">ADRES</h3>
|
||||
<p className="text-gray-700 leading-relaxed">
|
||||
Emniyet Mah. Hipodrom Caddesi No: 5<br />
|
||||
Yenimahalle / Ankara
|
||||
{settings.contact.address}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -53,10 +62,10 @@ export default function Contact() {
|
||||
<div className="flex-1">
|
||||
<h3 className="text-lg font-bold text-[#004B87] mb-2">KEP ADRESİ</h3>
|
||||
<a
|
||||
href="mailto:ankarabuyuksehirbelediyesi@hs01.kep.tr"
|
||||
href={`mailto:${settings.contact.kep}`}
|
||||
className="text-gray-700 hover:text-[#00B4D8] transition-colors break-all"
|
||||
>
|
||||
ankarabuyuksehirbelediyesi@hs01.kep.tr
|
||||
{settings.contact.kep}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -73,10 +82,10 @@ export default function Contact() {
|
||||
<div className="flex-1">
|
||||
<h3 className="text-lg font-bold text-[#004B87] mb-2">TELEFON</h3>
|
||||
<a
|
||||
href="tel:+903125071000"
|
||||
href={`tel:${settings.contact.phone.replace(/\s/g, '')}`}
|
||||
className="text-xl font-semibold text-gray-700 hover:text-[#00B4D8] transition-colors"
|
||||
>
|
||||
+90 (312) 507 10 00
|
||||
{settings.contact.phone}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user