feat(brandbook): anadir campo de URL de LinkedIn tambien en seccion LinkedIn B2B
This commit is contained in:
@@ -2074,6 +2074,48 @@ export default function BrandZone({
|
||||
)}
|
||||
|
||||
{section === 'b2b' && (
|
||||
<div className="space-y-4">
|
||||
<div className="rounded-xl border border-blue-200/80 bg-gradient-to-br from-blue-50/60 via-white to-sky-50/50 p-4 shadow-xs">
|
||||
<div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3">
|
||||
<div className="flex-1">
|
||||
<label className="block text-xs font-semibold text-gray-800 mb-1">
|
||||
URL de la Empresa / Página en LinkedIn (o Perfil B2B)
|
||||
</label>
|
||||
<div className="flex gap-2 items-center">
|
||||
<input
|
||||
type="url"
|
||||
placeholder="https://www.linkedin.com/company/tu-empresa/"
|
||||
className="flex-1 rounded-lg border border-gray-300 bg-white px-3 py-2 text-xs text-gray-900 shadow-xs focus:border-brand-500 focus:outline-hidden focus:ring-1 focus:ring-brand-500"
|
||||
value={book.channel_handles.linkedin || ''}
|
||||
onChange={(e) =>
|
||||
patch({
|
||||
channel_handles: {
|
||||
...book.channel_handles,
|
||||
linkedin: e.target.value,
|
||||
},
|
||||
})
|
||||
}
|
||||
/>
|
||||
{book.channel_handles.linkedin && (
|
||||
<a
|
||||
href={book.channel_handles.linkedin}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="inline-flex items-center gap-1.5 px-3 py-2 text-xs font-medium text-blue-700 bg-blue-100 hover:bg-blue-200 rounded-lg transition-colors shrink-0"
|
||||
title="Abrir página en LinkedIn"
|
||||
>
|
||||
<ExternalLink className="w-3.5 h-3.5" />
|
||||
<span>Abrir</span>
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
<p className="mt-1 text-[11px] text-gray-500">
|
||||
Este campo está sincronizado en tiempo real con la pestaña <strong>Canales</strong> (`channel_handles.linkedin`).
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="grid gap-3 sm:grid-cols-2">
|
||||
<Field label="Temas LinkedIn">
|
||||
<textarea
|
||||
@@ -2137,6 +2179,7 @@ export default function BrandZone({
|
||||
/>
|
||||
</Field>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{section === 'blog' && (
|
||||
|
||||
Reference in New Issue
Block a user