Update landing page metrics and add contact features #2

Merged
ASOwnerYT merged 2 commits from v0/asowneryt-0dbbb987 into main 2026-03-20 14:25:42 +13:00
Showing only changes of commit fe1d728b6f - Show all commits
+61 -61
View File
@@ -151,74 +151,74 @@ export function Contact() {
<>
{error && (
<div className="mb-6 p-4 bg-destructive/10 border border-destructive/50 rounded-lg flex items-center gap-3">
<AlertCircle className="w-5 h-5 text-destructive flex-shrink-0" />
<AlertCircle className="w-5 h-5 text-destructive shrink-0" />
<p className="text-sm text-destructive">{error}</p>
</div>
)}
<form onSubmit={handleSubmit} className="space-y-6">
<div className="space-y-2">
<label htmlFor="name" className="text-sm font-medium">
Your Name
</label>
<Input
id="name"
type="text"
placeholder="John Smith"
value={formData.name}
onChange={(e) => setFormData({ ...formData, name: e.target.value })}
required
className="bg-background border-border focus:border-primary transition-colors"
/>
</div>
<div className="space-y-2">
<label htmlFor="name" className="text-sm font-medium">
Your Name
</label>
<Input
id="name"
type="text"
placeholder="John Smith"
value={formData.name}
onChange={(e) => setFormData({ ...formData, name: e.target.value })}
required
className="bg-background border-border focus:border-primary transition-colors"
/>
</div>
<div className="space-y-2">
<label htmlFor="email" className="text-sm font-medium">
Email Address
</label>
<Input
id="email"
type="email"
placeholder="[email protected]"
value={formData.email}
onChange={(e) => setFormData({ ...formData, email: e.target.value })}
required
className="bg-background border-border focus:border-primary transition-colors"
/>
</div>
<div className="space-y-2">
<label htmlFor="email" className="text-sm font-medium">
Email Address
</label>
<Input
id="email"
type="email"
placeholder="[email protected]"
value={formData.email}
onChange={(e) => setFormData({ ...formData, email: e.target.value })}
required
className="bg-background border-border focus:border-primary transition-colors"
/>
</div>
<div className="space-y-2">
<label htmlFor="message" className="text-sm font-medium">
How Can We Help?
</label>
<textarea
id="message"
placeholder="Tell us about your project or what you need help with..."
value={formData.message}
onChange={(e) => setFormData({ ...formData, message: e.target.value })}
required
rows={5}
className="w-full px-4 py-3 bg-background border border-border rounded-lg resize-none focus:outline-none focus:border-primary transition-colors"
/>
</div>
<div className="space-y-2">
<label htmlFor="message" className="text-sm font-medium">
How Can We Help?
</label>
<textarea
id="message"
placeholder="Tell us about your project or what you need help with..."
value={formData.message}
onChange={(e) => setFormData({ ...formData, message: e.target.value })}
required
rows={5}
className="w-full px-4 py-3 bg-background border border-border rounded-lg resize-none focus:outline-none focus:border-primary transition-colors"
/>
</div>
<Button
type="submit"
disabled={isSubmitting}
className="w-full bg-primary text-primary-foreground hover:bg-primary/90 py-6 text-lg transition-all duration-300 hover:scale-[1.02] hover:shadow-lg hover:shadow-primary/25 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100"
>
{isSubmitting ? (
<span className="flex items-center gap-2">
<span className="w-5 h-5 border-2 border-primary-foreground/30 border-t-primary-foreground rounded-full animate-spin" />
Sending...
</span>
) : (
<span className="flex items-center gap-2">
Send Message
<Send className="w-5 h-5" />
</span>
)}
</Button>
</form>
<Button
type="submit"
disabled={isSubmitting}
className="w-full bg-primary text-primary-foreground hover:bg-primary/90 py-6 text-lg transition-all duration-300 hover:scale-[1.02] hover:shadow-lg hover:shadow-primary/25 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100"
>
{isSubmitting ? (
<span className="flex items-center gap-2">
<span className="w-5 h-5 border-2 border-primary-foreground/30 border-t-primary-foreground rounded-full animate-spin" />
Sending...
</span>
) : (
<span className="flex items-center gap-2">
Send Message
<Send className="w-5 h-5" />
</span>
)}
</Button>
</form>
</>
)}
</div>