update layout
This commit is contained in:
@@ -95,10 +95,10 @@ export function ContactForm() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="lg:col-span-7 bg-white rounded-3xl p-8 md:p-10 border border-outline-variant/25 shadow-xl relative overflow-hidden">
|
||||
<div className="w-full max-w-[520px] lg:ml-auto bg-white rounded-[2rem] md:rounded-[2.5rem] p-7 md:p-10 border border-outline-variant/25 shadow-[0_20px_60px_rgba(0,0,0,0.28)] relative overflow-hidden">
|
||||
{/* Background Accent Mesh */}
|
||||
<div className="absolute top-0 right-0 w-32 h-32 bg-primary/5 rounded-full blur-3xl" />
|
||||
<div className="absolute bottom-0 left-0 w-32 h-32 bg-secondary/5 rounded-full blur-3xl" />
|
||||
<div className="absolute bottom-0 left-0 w-32 h-32 bg-secondary/5 rounded-full blur-2xl" />
|
||||
|
||||
<div className="relative z-10">
|
||||
<span className="text-label-sm font-black text-primary uppercase tracking-widest">
|
||||
@@ -108,8 +108,8 @@ export function ContactForm() {
|
||||
Send Message
|
||||
</h2>
|
||||
|
||||
<form onSubmit={handleSubmit} className="space-y-6">
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||
<form onSubmit={handleSubmit} className="flex flex-col gap-5">
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-5">
|
||||
{/* Name field */}
|
||||
<div className="flex flex-col">
|
||||
<label htmlFor="field-name" className="text-label-sm text-on-surface-variant font-bold mb-2">
|
||||
@@ -185,7 +185,7 @@ export function ContactForm() {
|
||||
<textarea
|
||||
id="field-message"
|
||||
name="message"
|
||||
rows={5}
|
||||
rows={4}
|
||||
value={formData.message}
|
||||
onChange={handleInputChange}
|
||||
placeholder="Describe your inquiry in detail (e.g. partnership options, tech support, etc.)"
|
||||
@@ -193,7 +193,7 @@ export function ContactForm() {
|
||||
errors.message ? "border-error" : "border-outline-variant/30"
|
||||
} text-body-md text-on-surface placeholder:text-on-surface-variant/45 focus:outline-none focus:ring-2 ${
|
||||
errors.message ? "focus:ring-error/20" : "focus:ring-primary/20"
|
||||
} focus:border-primary transition-all resize-none`}
|
||||
} focus:border-primary transition-all resize-none min-h-[140px]`}
|
||||
/>
|
||||
</div>
|
||||
{errors.message && (
|
||||
|
||||
Reference in New Issue
Block a user