diff --git a/src/app/company-info/page.tsx b/src/app/company-info/page.tsx new file mode 100644 index 0000000..2fd7aec --- /dev/null +++ b/src/app/company-info/page.tsx @@ -0,0 +1,217 @@ +"use client"; + +import React, { useState } from "react"; +import ReactLenis from "lenis/react"; +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline"; +import { Facebook, Instagram, Linkedin, MapPin, Mail, Phone, Twitter, Wrench } from "lucide-react"; + +export default function CompanyInfoPage() { + const [companyName, setCompanyName] = useState("AirPro HVAC"); + const [ownerName, setOwnerName] = useState("John Doe"); + const [phone, setPhone] = useState("(555) 987-6543"); + const [whatsApp, setWhatsApp] = useState("+15559876543"); + const [email, setEmail] = useState("info@airprohvac.com"); + const [address, setAddress] = useState("123 Comfort St, Austin, TX 78701"); + const [googleMaps, setGoogleMaps] = useState("https://maps.app.goo.gl/example"); + const [facebook, setFacebook] = useState("https://facebook.com/airprohvac"); + const [instagram, setInstagram] = useState("https://instagram.com/airprohvac"); + const [twitter, setTwitter] = useState("https://twitter.com/airprohvac"); + const [linkedin, setLinkedin] = useState("https://linkedin.com/company/airprohvac"); + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + // In a real application, you would send this data to a backend API + console.log("Company Info Updated:", { + companyName, + ownerName, + phone, + whatsApp, + email, + address, + googleMaps, + facebook, + instagram, + twitter, + linkedin, + }); + alert("Company information updated successfully!"); + }; + + return ( + + + + +
+
+

Company Information Management

+

Update your company's core details, contact information, and social media presence.

+ +
+
+
+ + setCompanyName(e.target.value)} + className="w-full rounded-md border border-input bg-background px-3 py-2 text-foreground shadow-sm focus:border-primary-cta focus:ring focus:ring-primary-cta focus:ring-opacity-50" + required + /> +
+
+ + setOwnerName(e.target.value)} + className="w-full rounded-md border border-input bg-background px-3 py-2 text-foreground shadow-sm focus:border-primary-cta focus:ring focus:ring-primary-cta focus:ring-opacity-50" + required + /> +
+
+ +
+
+ + setPhone(e.target.value)} + className="w-full rounded-md border border-input bg-background px-3 py-2 text-foreground shadow-sm focus:border-primary-cta focus:ring focus:ring-primary-cta focus:ring-opacity-50" + required + /> +
+
+ + setWhatsApp(e.target.value)} + className="w-full rounded-md border border-input bg-background px-3 py-2 text-foreground shadow-sm focus:border-primary-cta focus:ring focus:ring-primary-cta focus:ring-opacity-50" + /> +
+
+ +
+ + setEmail(e.target.value)} + className="w-full rounded-md border border-input bg-background px-3 py-2 text-foreground shadow-sm focus:border-primary-cta focus:ring focus:ring-primary-cta focus:ring-opacity-50" + required + /> +
+ +
+ + setAddress(e.target.value)} + className="w-full rounded-md border border-input bg-background px-3 py-2 text-foreground shadow-sm focus:border-primary-cta focus:ring focus:ring-primary-cta focus:ring-opacity-50" + required + /> +
+ +
+ + setGoogleMaps(e.target.value)} + className="w-full rounded-md border border-input bg-background px-3 py-2 text-foreground shadow-sm focus:border-primary-cta focus:ring focus:ring-primary-cta focus:ring-opacity-50" + /> +
+ +
+
+ + setFacebook(e.target.value)} + className="w-full rounded-md border border-input bg-background px-3 py-2 text-foreground shadow-sm focus:border-primary-cta focus:ring focus:ring-primary-cta focus:ring-opacity-50" + /> +
+
+ + setInstagram(e.target.value)} + className="w-full rounded-md border border-input bg-background px-3 py-2 text-foreground shadow-sm focus:border-primary-cta focus:ring focus:ring-primary-cta focus:ring-opacity-50" + /> +
+
+ + setTwitter(e.target.value)} + className="w-full rounded-md border border-input bg-background px-3 py-2 text-foreground shadow-sm focus:border-primary-cta focus:ring focus:ring-primary-cta focus:ring-opacity-50" + /> +
+
+ + setLinkedin(e.target.value)} + className="w-full rounded-md border border-input bg-background px-3 py-2 text-foreground shadow-sm focus:border-primary-cta focus:ring focus:ring-primary-cta focus:ring-opacity-50" + /> +
+
+ +
+ +
+
+
+
+
+
+ ); +}