@@ -18,6 +18,7 @@ import {
1818 AlertCircle ,
1919} from "lucide-react" ;
2020import { contactPageContent , contactInfo , contactFAQ } from "@/constants" ;
21+ import { PageHeader } from "@/components/common" ;
2122
2223export default function ContactPage ( ) {
2324 const [ formData , setFormData ] = useState ( {
@@ -104,19 +105,11 @@ export default function ContactPage() {
104105
105106 return (
106107 < main >
107- < Header />
108-
109108 { /* Hero */ }
110- < section className = "pt-20 pb-16 md:pt-32 md:pb-24 bg-linear-to-b from-primary/5 to-transparent" >
111- < div className = "container-custom" >
112- < h1 className = "heading-xl text-primary mb-6 text-balance" >
113- { contactPageContent . hero . title }
114- </ h1 >
115- < p className = "text-lg text-foreground/80" >
116- { contactPageContent . hero . description }
117- </ p >
118- </ div >
119- </ section >
109+ < PageHeader
110+ title = { contactPageContent . hero . title }
111+ description = { contactPageContent . hero . description }
112+ />
120113
121114 { /* Contact Section */ }
122115 < section className = "py-16 md:py-24" >
@@ -155,7 +148,9 @@ export default function ContactPage() {
155148 < h3 className = "font-bold text-lg mb-2" >
156149 { contactPageContent . contactCards . location . title }
157150 </ h3 >
158- < p className = "text-foreground/70" > { contactInfo . location . full } </ p >
151+ < p className = "text-foreground/70" >
152+ { contactInfo . location . full }
153+ </ p >
159154 </ div >
160155
161156 < div className = "p-6 rounded-lg border hover:shadow-lg transition bg-card" >
@@ -292,9 +287,7 @@ export default function ContactPage() {
292287 < div >
293288 < textarea
294289 name = "message"
295- placeholder = {
296- contactPageContent . form . placeholders . message
297- }
290+ placeholder = { contactPageContent . form . placeholders . message }
298291 value = { formData . message }
299292 onChange = { handleChange }
300293 rows = { 6 }
@@ -327,10 +320,8 @@ export default function ContactPage() {
327320 < iframe
328321 width = "100%"
329322 height = "100%"
330- frameBorder = "0"
331323 title = "Amritsar, Punjab"
332324 src = "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3405.3656206644344!2d74.87919!3d31.633!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3919038e66666667%3A0x1234567890abc!2sAmritsar%2C%20Punjab!5e0!3m2!1sen!2sin!4v1234567890"
333- // allowFullScreen=""
334325 loading = "lazy"
335326 referrerPolicy = "no-referrer-when-downgrade"
336327 > </ iframe >
@@ -361,8 +352,6 @@ export default function ContactPage() {
361352 </ div >
362353 </ div >
363354 </ section >
364-
365- < Footer />
366355 </ main >
367356 ) ;
368357}
0 commit comments