Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5cda667a27 | |||
| 85e28ada26 | |||
| c46979419d | |||
| 84e6302dbf |
@@ -1384,4 +1384,4 @@ export default function RootLayout({
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -15,9 +15,9 @@ import { useState } from 'react';
|
|||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
const [formData, setFormData] = useState({
|
const [formData, setFormData] = useState({
|
||||||
phoneNumber: '',
|
|
||||||
email: '',
|
|
||||||
workType: '',
|
workType: '',
|
||||||
|
email: '',
|
||||||
|
phoneNumber: '',
|
||||||
});
|
});
|
||||||
|
|
||||||
const handleInputChange = (e: React.ChangeEvent<HTMLInputElement | HTMLSelectElement>) => {
|
const handleInputChange = (e: React.ChangeEvent<HTMLInputElement | HTMLSelectElement>) => {
|
||||||
@@ -33,9 +33,9 @@ export default function LandingPage() {
|
|||||||
console.log('Quote form submitted:', formData);
|
console.log('Quote form submitted:', formData);
|
||||||
// Handle form submission here
|
// Handle form submission here
|
||||||
setFormData({
|
setFormData({
|
||||||
phoneNumber: '',
|
|
||||||
email: '',
|
|
||||||
workType: '',
|
workType: '',
|
||||||
|
email: '',
|
||||||
|
phoneNumber: '',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -211,38 +211,6 @@ export default function LandingPage() {
|
|||||||
|
|
||||||
<form onSubmit={handleSubmit} className="bg-card rounded-lg p-8 shadow-lg border border-accent">
|
<form onSubmit={handleSubmit} className="bg-card rounded-lg p-8 shadow-lg border border-accent">
|
||||||
<div className="mb-6">
|
<div className="mb-6">
|
||||||
<label htmlFor="phoneNumber" className="block text-sm font-medium mb-2">
|
|
||||||
Phone Number <span className="text-red-500">*</span>
|
|
||||||
</label>
|
|
||||||
<input
|
|
||||||
type="tel"
|
|
||||||
id="phoneNumber"
|
|
||||||
name="phoneNumber"
|
|
||||||
value={formData.phoneNumber}
|
|
||||||
onChange={handleInputChange}
|
|
||||||
placeholder="(555) 123-4567"
|
|
||||||
required
|
|
||||||
className="w-full px-4 py-3 border border-accent rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-cta"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="mb-6">
|
|
||||||
<label htmlFor="email" className="block text-sm font-medium mb-2">
|
|
||||||
Email Address <span className="text-red-500">*</span>
|
|
||||||
</label>
|
|
||||||
<input
|
|
||||||
type="email"
|
|
||||||
id="email"
|
|
||||||
name="email"
|
|
||||||
value={formData.email}
|
|
||||||
onChange={handleInputChange}
|
|
||||||
placeholder="your@email.com"
|
|
||||||
required
|
|
||||||
className="w-full px-4 py-3 border border-accent rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-cta"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="mb-8">
|
|
||||||
<label htmlFor="workType" className="block text-sm font-medium mb-2">
|
<label htmlFor="workType" className="block text-sm font-medium mb-2">
|
||||||
Type of Work Needed <span className="text-red-500">*</span>
|
Type of Work Needed <span className="text-red-500">*</span>
|
||||||
</label>
|
</label>
|
||||||
@@ -265,6 +233,38 @@ export default function LandingPage() {
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="mb-6">
|
||||||
|
<label htmlFor="email" className="block text-sm font-medium mb-2">
|
||||||
|
Email Address <span className="text-red-500">*</span>
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="email"
|
||||||
|
id="email"
|
||||||
|
name="email"
|
||||||
|
value={formData.email}
|
||||||
|
onChange={handleInputChange}
|
||||||
|
placeholder="your@email.com"
|
||||||
|
required
|
||||||
|
className="w-full px-4 py-3 border border-accent rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-cta"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mb-8">
|
||||||
|
<label htmlFor="phoneNumber" className="block text-sm font-medium mb-2">
|
||||||
|
Phone Number <span className="text-red-500">*</span>
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="tel"
|
||||||
|
id="phoneNumber"
|
||||||
|
name="phoneNumber"
|
||||||
|
value={formData.phoneNumber}
|
||||||
|
onChange={handleInputChange}
|
||||||
|
placeholder="(555) 123-4567"
|
||||||
|
required
|
||||||
|
className="w-full px-4 py-3 border border-accent rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-cta"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
className="w-full bg-primary-cta text-white font-semibold py-3 rounded-lg hover:opacity-90 transition-opacity"
|
className="w-full bg-primary-cta text-white font-semibold py-3 rounded-lg hover:opacity-90 transition-opacity"
|
||||||
@@ -309,4 +309,4 @@ export default function LandingPage() {
|
|||||||
</div>
|
</div>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user