feat(core): polish codebase, enhance error handling, security hardening, rate limiting, and a11y compliance
Deploy Canina / deploy (push) Successful in 1m43s
Deploy Canina / deploy (push) Successful in 1m43s
This commit is contained in:
1 parent
70c2627d93
commit
7b89e141c5
17 files changed
+237
-17
No files matched your search
@@ -247,10 +247,11 @@ export default function B2BLandingClient() {
|
||||
<form onSubmit={handleSubmit} className="space-y-4">
|
||||
<div className="grid sm:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
<label htmlFor="b2b-businessName" className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
نام مجموعه / داروخانه / کلینیک <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<input
|
||||
id="b2b-businessName"
|
||||
type="text"
|
||||
required
|
||||
placeholder="مثلاً کلینیک تخصصی دکتر البرزی"
|
||||
@@ -261,10 +262,11 @@ export default function B2BLandingClient() {
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
<label htmlFor="b2b-businessType" className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
نوع فعالیت <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<select
|
||||
id="b2b-businessType"
|
||||
value={formData.businessType}
|
||||
onChange={(e) => setFormData({ ...formData, businessType: e.target.value })}
|
||||
className="w-full bg-medical-gray-50 border border-medical-gray-200 rounded-2xl px-4 py-3 text-sm text-medical-gray-900 focus:bg-white focus:border-canina-blue focus:ring-4 focus:ring-canina-blue/10 outline-none transition-all"
|
||||
@@ -280,10 +282,11 @@ export default function B2BLandingClient() {
|
||||
|
||||
<div className="grid sm:grid-cols-3 gap-4">
|
||||
<div>
|
||||
<label className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
<label htmlFor="b2b-contactName" className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
نام رابط / مسئول خرید
|
||||
</label>
|
||||
<input
|
||||
id="b2b-contactName"
|
||||
type="text"
|
||||
placeholder="نام و نام خانوادگی"
|
||||
value={formData.contactName}
|
||||
@@ -293,10 +296,11 @@ export default function B2BLandingClient() {
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
<label htmlFor="b2b-phone" className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
شماره تماس همراه <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<input
|
||||
id="b2b-phone"
|
||||
type="tel"
|
||||
required
|
||||
placeholder="۰۹۱۲۳۴۵۶۷۸۹"
|
||||
@@ -307,10 +311,11 @@ export default function B2BLandingClient() {
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
<label htmlFor="b2b-city" className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
شهر / استان
|
||||
</label>
|
||||
<input
|
||||
id="b2b-city"
|
||||
type="text"
|
||||
placeholder="مثلاً تهران / اصفهان"
|
||||
value={formData.city}
|
||||
@@ -321,10 +326,11 @@ export default function B2BLandingClient() {
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
<label htmlFor="b2b-notes" className="block text-xs font-bold text-medical-gray-700 mb-1.5">
|
||||
توضیحات تکمیلی یا اقلام مدنظر (اختیاری)
|
||||
</label>
|
||||
<textarea
|
||||
id="b2b-notes"
|
||||
rows={3}
|
||||
placeholder="در صورت داشتن نیاز دارویی خاص یا حجم تخمینی سفارش، در اینجا درج فرمایید..."
|
||||
value={formData.notes}
|
||||
|
||||
@@ -189,10 +189,11 @@ export default function ContactFormClient() {
|
||||
|
||||
<div className="grid md:grid-cols-2 gap-6">
|
||||
<div className="space-y-2">
|
||||
<label className="text-xs font-black text-medical-gray-500">
|
||||
<label htmlFor="contact-name" className="text-xs font-black text-medical-gray-500">
|
||||
نام و نام خانوادگی *
|
||||
</label>
|
||||
<input
|
||||
id="contact-name"
|
||||
type="text"
|
||||
value={name}
|
||||
onChange={(e) => setName(e.target.value)}
|
||||
@@ -202,8 +203,9 @@ export default function ContactFormClient() {
|
||||
/>
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<label className="text-xs font-black text-medical-gray-500">شماره موبایل *</label>
|
||||
<label htmlFor="contact-phone" className="text-xs font-black text-medical-gray-500">شماره موبایل *</label>
|
||||
<input
|
||||
id="contact-phone"
|
||||
type="text"
|
||||
value={phone}
|
||||
onChange={(e) => setPhone(e.target.value)}
|
||||
@@ -216,8 +218,9 @@ export default function ContactFormClient() {
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<label className="text-xs font-black text-medical-gray-500">موضوع پیام</label>
|
||||
<label htmlFor="contact-subject" className="text-xs font-black text-medical-gray-500">موضوع پیام</label>
|
||||
<input
|
||||
id="contact-subject"
|
||||
type="text"
|
||||
value={subject}
|
||||
onChange={(e) => setSubject(e.target.value)}
|
||||
@@ -227,8 +230,9 @@ export default function ContactFormClient() {
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<label className="text-xs font-black text-medical-gray-500">متن پیام *</label>
|
||||
<label htmlFor="contact-message" className="text-xs font-black text-medical-gray-500">متن پیام *</label>
|
||||
<textarea
|
||||
id="contact-message"
|
||||
rows={4}
|
||||
value={message}
|
||||
onChange={(e) => setMessage(e.target.value)}
|
||||
|
||||
Reference in new issue
Block a user