Switch to version 4: modified src/app/page.tsx
This commit is contained in:
@@ -30,13 +30,10 @@ export default function LandingPage() {
|
||||
setSubmitStatus("loading");
|
||||
|
||||
try {
|
||||
// Send form data to user's inbox via webild integration
|
||||
// Send form data to user's inbox via email service
|
||||
const response = await fetch("/api/submit-project", {
|
||||
method: "POST", headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({
|
||||
...formData,
|
||||
source: "project-inquiry", timestamp: new Date().toISOString()
|
||||
})
|
||||
body: JSON.stringify(formData)
|
||||
});
|
||||
|
||||
if (response.ok) {
|
||||
@@ -47,8 +44,6 @@ export default function LandingPage() {
|
||||
setSubmitStatus("idle");
|
||||
}, 2000);
|
||||
} else {
|
||||
const errorData = await response.json();
|
||||
console.error("Form submission error:", errorData);
|
||||
setSubmitStatus("error");
|
||||
}
|
||||
} catch (error) {
|
||||
@@ -161,22 +156,22 @@ export default function LandingPage() {
|
||||
animationType="scale-rotate"
|
||||
metrics={[
|
||||
{
|
||||
id: "metric-1", value: "3+", title: "Projects Delivered", description: "Successfully completed projects across industries", icon: CheckCircle
|
||||
id: "metric-1", value: "150+", title: "Projects Delivered", description: "Successfully completed projects across diverse industries and markets", icon: CheckCircle
|
||||
},
|
||||
{
|
||||
id: "metric-2", value: "98%", title: "Client Satisfaction", description: "Repeat clients and positive testimonials", icon: Star
|
||||
id: "metric-2", value: "98%", title: "Client Satisfaction", description: "Repeat clients and positive testimonials from satisfied partners", icon: Star
|
||||
},
|
||||
{
|
||||
id: "metric-3", value: "1+", title: "Years in Business", description: "Trusted partner for digital transformation", icon: Briefcase
|
||||
id: "metric-3", value: "8+", title: "Years in Business", description: "Trusted partner for digital transformation and creative excellence", icon: Briefcase
|
||||
},
|
||||
{
|
||||
id: "metric-4", value: "5+", title: "Team Members", description: "Diverse experts in design and technology", icon: Users
|
||||
id: "metric-4", value: "25+", title: "Team Members", description: "Diverse experts in design, development, and strategy", icon: Users
|
||||
},
|
||||
{
|
||||
id: "metric-5", value: "$999+", title: "Client Revenue Growth", description: "Average revenue increase for our partners", icon: TrendingUp
|
||||
id: "metric-5", value: "$45M+", title: "Client Revenue Growth", description: "Total revenue increase generated for our partners", icon: TrendingUp
|
||||
},
|
||||
{
|
||||
id: "metric-6", value: "2 ", title: "Industry Awards", description: "helping local businesses achieve there dreams ", icon: Trophy
|
||||
id: "metric-6", value: "12", title: "Industry Awards", description: "Recognition for creative excellence and strategic innovation", icon: Trophy
|
||||
}
|
||||
]}
|
||||
/>
|
||||
@@ -308,7 +303,7 @@ export default function LandingPage() {
|
||||
<div className="text-center py-8">
|
||||
<CheckCircle className="w-12 h-12 text-green-500 mx-auto mb-4" />
|
||||
<h3 className="text-lg font-semibold text-green-600">Thank You!</h3>
|
||||
<p className="text-gray-600 mt-2">Your project inquiry has been sent to our inbox via Webild.</p>
|
||||
<p className="text-gray-600 mt-2">Your project inquiry has been sent to our inbox.</p>
|
||||
</div>
|
||||
) : (
|
||||
<form onSubmit={handleFormSubmit} className="space-y-4">
|
||||
@@ -376,8 +371,8 @@ export default function LandingPage() {
|
||||
</div>
|
||||
|
||||
{submitStatus === "error" && (
|
||||
<div className="bg-red-50 border border-red-200 text-red-700 text-sm font-medium p-3 rounded-lg">
|
||||
Failed to send your inquiry. Please check that Webild is properly configured in your settings, or try again in a moment.
|
||||
<div className="text-red-600 text-sm font-medium">
|
||||
An error occurred. Please try again.
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -395,4 +390,4 @@ export default function LandingPage() {
|
||||
)}
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user