feat(enamad): dynamic enamad HTML embedding with exact code fallback & admin edit support
Deploy Canina / deploy (push) Failing after 29s

This commit is contained in:
parsa aghaei committed 2026-08-08 18:12:42 +03:30
1 parent 74b3d24622
commit ea3bdf1ea3
3 files changed
+23 -38

No files matched your search

+7 -6
View File
@@ -347,16 +347,17 @@ export default function Settings() {
/>
</div>
<div>
<label className="block text-xs font-bold text-gray-700 mb-1">کد / شناسه ای‌نماد (Enamad Code/HTML)</label>
<input
type="text"
<div className="md:col-span-2">
<label className="block text-xs font-bold text-gray-700 mb-1">کد و اسکریپت نماد اعتماد الکترونیکی (Enamad HTML/Embed Code)</label>
<textarea
rows={4}
value={settings.ENAMAD_CODE}
onChange={(e) => setSettings({ ...settings, ENAMAD_CODE: e.target.value })}
placeholder="https://trustseal.enamad.ir/..."
className="w-full border border-gray-200 rounded-xl p-2.5 outline-none focus:ring-2 focus:ring-purple-500 text-xs font-mono"
placeholder="<a referrerpolicy='origin' target='_blank' href='...'><img src='...' code='...' /></a>"
className="w-full border border-gray-200 rounded-xl p-3 outline-none focus:ring-2 focus:ring-purple-500 text-xs font-mono bg-slate-50"
dir="ltr"
/>
<p className="text-[11px] text-gray-500 mt-1">کد کامل HTML دریافت شده از سامانه اینماد (trustseal.enamad.ir) را مستقیماً وارد کنید.</p>
</div>
<div>