style(api): Match virtual docx card footer perfectly to frontend NewsCard and strip textual Enlace prefix

This commit is contained in:
AI Bot 2026-08-23 18:10:54 -05:00
parent 0685fcfe59
commit f25064faf4

View File

@ -139,15 +139,11 @@ export async function GET(request: Request) {
</span>
</div>
</div>
<div style={{ display: 'flex', flexDirection: 'column', padding: 32, flexGrow: 1 }}>
<h3 style={{ fontSize: 26, fontWeight: 'bold', margin: '0 0 16px 0', lineHeight: 1.3, color: 'white' }}>{post.titulo || 'Sin título'}</h3>
<p style={{ fontSize: 16, color: '#94a3b8', margin: '0 0 32px 0', lineHeight: 1.6 }}>{safeResumen}</p>
<div style={{ marginTop: 'auto', paddingTop: 20, borderTop: '1px solid rgba(255,255,255,0.1)', display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
<div style={{ display: 'flex', alignItems: 'center' }}>
<span style={{ color: '#06b6d4', fontSize: 13, fontWeight: 'bold', textTransform: 'uppercase', letterSpacing: 1, marginRight: 8 }}>ESTADO:</span>
<span style={{ color: '#94a3b8', fontSize: 13, fontWeight: 'bold', textTransform: 'uppercase', letterSpacing: 1 }}>{post.estado || 'Borrador'}</span>
</div>
<span style={{ color: '#06b6d4', fontSize: 13, fontWeight: 'bold', textTransform: 'uppercase', letterSpacing: 1 }}>{fechaFormat}</span>
<div style={{ display: 'flex', flexDirection: 'column', padding: 24, flexGrow: 1 }}>
<h3 style={{ fontSize: 24, fontWeight: 'bold', margin: '0 0 12px 0', lineHeight: 1.3, color: 'white' }}>{post.titulo || 'Sin título'}</h3>
<p style={{ fontSize: 16, color: '#94a3b8', margin: '0 0 24px 0', lineHeight: 1.6 }}>{safeResumen}</p>
<div style={{ marginTop: 'auto', paddingTop: 20, borderTop: '1px solid rgba(255,255,255,0.1)', display: 'flex', alignItems: 'center' }}>
<span style={{ color: '#06b6d4', fontSize: 12, fontWeight: 'bold', textTransform: 'uppercase', letterSpacing: 1 }}>{fechaFormat}</span>
</div>
</div>
</div>
@ -189,7 +185,6 @@ export async function GET(request: Request) {
docChildren.push(
new Paragraph({
children: [
new TextRun({ text: "Enlace web: ", bold: true }),
new ExternalHyperlink({
children: [
new TextRun({ text: `https://almeira.com.co/${post.slug || post.$id}`, style: "Hyperlink" }),