-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathContactUs.tsx
More file actions
32 lines (24 loc) · 876 Bytes
/
ContactUs.tsx
File metadata and controls
32 lines (24 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React, { useEffect, useState } from 'react';
import DesktopVersion from './DesktopVersion';
import MobileVersion from './MobileVersion';
// import Footer from '../Footer';
export default function ContactUs() {
const [screenWidth, setScreenWidth] = useState<number | null>(null);
const breakpoint = 1024;
useEffect(() => {
setScreenWidth(window.innerWidth);
const handleResize = () => setScreenWidth(window.innerWidth);
window.addEventListener('resize', handleResize);
return () => window.removeEventListener('resize', handleResize);
}, []);
if (!screenWidth) return null;
return (
<section id="contact-us" className="bg-[#0096c7] pb-0">
<h2 className="font-montserrat text-lg uppercase w-fit mx-auto pt-5 font-semibold">
Contact us
</h2>
<DesktopVersion />
{/* <Footer/> */}
</section>
);
}