Add src/app/contact/page.tsx

This commit is contained in:
2026-06-02 19:37:45 +00:00
parent 17cb8c872d
commit 2f4cae9917

176
src/app/contact/page.tsx Normal file
View File

@@ -0,0 +1,176 @@
"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import FooterBase from "@/components/sections/footer/FooterBase";
import Textarea from "@/components/form/Textarea";
import { useState } from "react";
import { Sparkles } from "lucide-react"; // Import any necessary icons
export default function ContactPage() {
const [name, setName] = useState("");
const [email, setEmail] = useState("");
const [message, setMessage] = useState("");
const handleSubmit = (e: React.FormEvent) => {
e.preventDefault();
console.log({ name, email, message });
alert("Message sent! We'll get back to you soon.");
setName("");
setEmail("");
setMessage("");
};
const navItems = [
{ name: "Work", id: "work" },
{ name: "Services", id: "services" },
{ name: "About", id: "about" },
{ name: "Pricing", href: "/pricing" },
{ name: "Contact", href: "/contact" }
];
const button = { text: "Get Started", href: "/contact" };
return (
<ThemeProvider
defaultButtonVariant="text-stagger"
defaultTextAnimation="entrance-slide"
borderRadius="pill"
contentWidth="medium"
sizing="medium"
background="none"
cardStyle="glass-elevated"
primaryButtonStyle="metallic"
secondaryButtonStyle="glass"
headingFontWeight="medium"
>
<NavbarLayoutFloatingOverlay
brandName="Webild"
navItems={navItems}
button={button}
/>
<div className="relative py-20 lg:py-32 flex flex-col items-center justify-center text-center">
<div className="container max-w-4xl px-4">
<h1 className="text-4xl lg:text-6xl font-semibold mb-6 text-foreground">
Get in Touch
</h1>
<p className="text-lg lg:text-xl text-foreground/70 mb-12">
Have a question or want to start a project? Fill out the form below or find us at our office.
</p>
<div className="grid md:grid-cols-2 gap-12 text-left">
{/* Contact Form */}
<div className="card-style p-8 rounded-lg">
<h2 className="text-2xl font-semibold mb-6 text-foreground">Send us a message</h2>
<form onSubmit={handleSubmit} className="space-y-6">
<div>
<label htmlFor="name" className="block text-foreground text-sm font-medium mb-2">
Name
</label>
<input
type="text"
id="name"
className="w-full p-3 rounded-md border border-border bg-input-background text-foreground focus:ring-2 focus:ring-primary-cta outline-none"
placeholder="Your Name"
value={name}
onChange={(e) => setName(e.target.value)}
required
/>
</div>
<div>
<label htmlFor="email" className="block text-foreground text-sm font-medium mb-2">
Email
</label>
<input
type="email"
id="email"
className="w-full p-3 rounded-md border border-border bg-input-background text-foreground focus:ring-2 focus:ring-primary-cta outline-none"
placeholder="your@email.com"
value={email}
onChange={(e) => setEmail(e.target.value)}
required
/>
</div>
<div>
<label htmlFor="message" className="block text-foreground text-sm font-medium mb-2">
Message
</label>
<Textarea
id="message"
value={message}
onChange={setMessage}
placeholder="Your message..."
rows={6}
required
/>
</div>
<button
type="submit"
className="w-full py-3 px-6 rounded-md bg-primary-cta text-primary-cta-foreground font-semibold hover:opacity-90 transition-opacity"
>
Send Message
</button>
</form>
</div>
{/* Location and Hours */}
<div className="card-style p-8 rounded-lg">
<h2 className="text-2xl font-semibold mb-6 text-foreground">Our Office</h2>
<div className="space-y-4 text-foreground/80">
<p>
<strong>Address:</strong><br />
123 Digital Avenue, Suite 400<br />
Innovation City, TX 78701<br />
United States
</p>
<p>
<strong>Phone:</strong><br />
+1 (555) 123-4567
</p>
<p>
<strong>Email:</strong><br />
info@webuild.com
</p>
<p>
<strong>Hours:</strong><br />
Monday - Friday: 9:00 AM - 5:00 PM (CST)<br />
Saturday - Sunday: Closed
</p>
</div>
</div>
</div>
</div>
</div>
<FooterBase
logoText="Webild"
copyrightText="© 2026 | Webild"
columns={[
{
title: "Company", items: [
{ label: "About", href: "#about" },
{ label: "Services", href: "#services" },
{ label: "Work", href: "#work" },
{ label: "Pricing", href: "/pricing" },
{ label: "Contact", href: "/contact" },
],
},
{
title: "Services", items: [
{ label: "Web Development", href: "#" },
{ label: "SEO", href: "#" },
{ label: "Branding", href: "#" },
{ label: "UI/UX Design", href: "#" },
],
},
{
title: "Connect", items: [
{ label: "Twitter", href: "#" },
{ label: "LinkedIn", href: "#" },
{ label: "Instagram", href: "#" },
{ label: "Dribbble", href: "#" },
],
},
]}
/>
</ThemeProvider>
);
}