Fix: Remove top date from NewsCard and fix NewsTicker syntax

This commit is contained in:
Carlos (Almeira) 2026-03-26 14:47:15 -05:00
parent a446a70854
commit 8058618bbb
2 changed files with 2 additions and 6 deletions

View File

@ -55,11 +55,6 @@ export const NewsCard = ({
{/* Contenido */}
<div className="flex flex-col flex-grow p-6 relative z-20">
<div className="flex items-center gap-2 text-cyan-500/80 text-sm font-bold tracking-widest uppercase mb-4">
<Calendar size={14} />
<span>{fechaFormateada}</span>
</div>
<h3 className="text-xl font-bold font-outfit text-white leading-snug mb-3 group-hover:text-cyan-400 transition-colors line-clamp-2">
{titulo}
</h3>

View File

@ -20,7 +20,8 @@ export default async function NewsTicker() {
// Since 'createSessionClient' uses the session cookie, we might have issues on public incognito pages.
// The user previously used Admin API key for everything or a local backdoor.
// Settings const settingsRes = await client.databases.listDocuments(APPWRITE_ALMEIRA_CONFIG.databaseId, 'settings', []);
// Settings
const settingsRes = await client.databases.listDocuments(APPWRITE_ALMEIRA_CONFIG.databaseId, 'settings', []);
const settings: any = settingsRes.documents.length > 0 ? settingsRes.documents[0] : {};
const tickerCount = settings.ticker_count || 10;