Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | 6x 199x 13x 20x 6x 1x 995x 28x | import { Building2 } from "lucide-react";
import {
Card,
CardContent,
CardHeader,
CardTitle,
CardDescription,
} from "../ui/card";
import { Input } from "../ui/input";
interface BusinessInformationFormProps {
tagline: string;
setTagline: (value: string) => void;
about: string;
setAbout: (value: string) => void;
establishedYear: string;
setEstablishedYear: (value: string) => void;
teamSizeCategory: string;
setTeamSizeCategory: (value: string) => void;
areasServed: string;
setAreasServed: (value: string) => void;
}
const TEAM_SIZE_CATEGORIES = [
{ value: "solo", label: "Solo" },
{ value: "2-5", label: "2-5 people" },
{ value: "6-10", label: "6-10 people" },
{ value: "11-25", label: "11-25 people" },
{ value: "25+", label: "25+ people" },
];
export function BusinessInformationForm({
tagline,
setTagline,
about,
setAbout,
establishedYear,
setEstablishedYear,
teamSizeCategory,
setTeamSizeCategory,
areasServed,
setAreasServed,
}: BusinessInformationFormProps) {
return (
<Card>
<CardHeader>
<CardTitle className="flex items-center gap-2">
<Building2 className="h-5 w-5" />
Business Information
</CardTitle>
<CardDescription>Tell customers about your business</CardDescription>
</CardHeader>
<CardContent className="space-y-4">
<div className="space-y-2">
<label
htmlFor="tagline"
className="text-sm font-medium text-foreground-default"
>
Tagline
</label>
<Input
id="tagline"
value={tagline}
onChange={(e) => setTagline(e.target.value)}
placeholder="e.g., Transforming spaces, creating dreams"
maxLength={120}
/>
<p className="text-xs text-foreground-muted">
{tagline.length}/120 characters
</p>
</div>
<div className="space-y-2">
<label
htmlFor="about"
className="text-sm font-medium text-foreground-default"
>
About Us
</label>
<textarea
id="about"
value={about}
onChange={(e) => setAbout(e.target.value)}
placeholder="Tell your story... What makes your business unique?"
className="flex min-h-[120px] w-full rounded-md border border-default bg-background-elevated px-3 py-2 text-sm placeholder:text-foreground-subtle focus:outline-none focus:ring-2 focus:ring-primary-500/40 focus:border-primary-500"
maxLength={5000}
/>
<p className="text-xs text-foreground-muted">
{about.length}/5000 characters (100+ recommended)
</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
<div className="space-y-2">
<label
htmlFor="established"
className="text-sm font-medium text-foreground-default"
>
Established Year
</label>
<Input
id="established"
type="number"
value={establishedYear}
onChange={(e) => setEstablishedYear(e.target.value)}
placeholder="e.g., 2015"
min="1950"
max={new Date().getFullYear()}
/>
</div>
<div className="space-y-2">
<label
htmlFor="team-size"
className="text-sm font-medium text-foreground-default"
>
Team Size
</label>
<select
id="team-size"
value={teamSizeCategory}
onChange={(e) => setTeamSizeCategory(e.target.value)}
className="flex h-10 w-full rounded-md border border-default bg-background-elevated px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500/40 focus:border-primary-500"
>
<option value="">Select team size</option>
{TEAM_SIZE_CATEGORIES.map((size) => (
<option key={size.value} value={size.value}>
{size.label}
</option>
))}
</select>
</div>
</div>
<div className="space-y-2">
<label
htmlFor="areas"
className="text-sm font-medium text-foreground-default"
>
Areas Served
</label>
<Input
id="areas"
value={areasServed}
onChange={(e) => setAreasServed(e.target.value)}
placeholder="e.g., Banjara Hills, Jubilee Hills, Gachibowli"
/>
<p className="text-xs text-foreground-muted">
Comma-separated list of areas (up to 10)
</p>
</div>
</CardContent>
</Card>
);
}
|