oportunidades 7
tests / ci (push) Waiting to run

This commit is contained in:
2026-10-13 11:40:29 +02:00
parent 20971d523f
commit 287e991486
2902 changed files with 1085456 additions and 25957 deletions
+46 -23
View File
@@ -13,7 +13,12 @@ export type LegacyArticle = {
landing_href: string;
start_href: string;
group: { label: string; heading: string };
related_articles: { id: number; slug: string; title: string; href: string }[];
related_articles: {
id: number;
slug: string;
title: string;
href: string;
}[];
html: string;
library_href: string;
image: { href: string; alt: string; source_url: string } | null;
@@ -48,7 +53,9 @@ export default function LegacySector({
<main className="legacy-agronegocio mx-auto max-w-6xl space-y-8 rounded-2xl bg-[#f6f3ea] p-4 sm:p-8">
<Head
title={
view === 'landing' ? `Explorar ${article.group.label}` : article.title
view === 'landing'
? `Explorar ${article.group.label}`
: article.title
}
/>
<style>{`
@@ -62,7 +69,10 @@ export default function LegacySector({
.legacy-article ol { list-style: decimal; padding-inline-start: 1.6em; }
.legacy-article a { text-decoration: underline; }
`}</style>
<nav className="flex flex-wrap gap-4" aria-label={article.group.label}>
<nav
className="flex flex-wrap gap-4"
aria-label={article.group.label}
>
<Link href={article.landing_href} className="underline">
Explorar {article.group.label}
</Link>
@@ -141,24 +151,31 @@ export default function LegacySector({
</form>
{match ? (
<div className="grid gap-4 sm:grid-cols-2">
{articles.map((item) => (
<article key={item.id} className="space-y-3 rounded-xl border bg-white p-5">
<h3 className="text-xl font-semibold">
<Link className="underline" href={item.href}>
{item.title}
</Link>
</h3>
<p>
Conteúdo editorial preservado do portal Tempo.
</p>
<Link
className="inline-block rounded bg-[#10352b] px-5 py-3 text-white"
href={item.href}
>
Ler o artigo
</Link>
</article>
))}
{articles.map((item) => (
<article
key={item.id}
className="space-y-3 rounded-xl border bg-white p-5"
>
<h3 className="text-xl font-semibold">
<Link
className="underline"
href={item.href}
>
{item.title}
</Link>
</h3>
<p>
Conteúdo editorial preservado do portal
Tempo.
</p>
<Link
className="inline-block rounded bg-[#10352b] px-5 py-3 text-white"
href={item.href}
>
Ler o artigo
</Link>
</article>
))}
</div>
) : (
<p role="status">
@@ -175,10 +192,16 @@ export default function LegacySector({
)}
{view === 'article' && article.related_articles.length > 0 && (
<section className="space-y-3" aria-labelledby="related-title">
<h2 id="related-title" className="text-2xl font-semibold">Outras leituras no setor</h2>
<h2 id="related-title" className="text-2xl font-semibold">
Outras leituras no setor
</h2>
<ul className="grid gap-3 sm:grid-cols-2">
{article.related_articles.map((item) => (
<li key={item.id}><Link className="underline" href={item.href}>{item.title}</Link></li>
<li key={item.id}>
<Link className="underline" href={item.href}>
{item.title}
</Link>
</li>
))}
</ul>
</section>
+7 -1
View File
@@ -535,7 +535,13 @@ export default function Manage({
}
/>
</Field>
<Field label={legacyContentEnabled ? 'Assunto (opcional)' : 'Assunto'}>
<Field
label={
legacyContentEnabled
? 'Assunto (opcional)'
: 'Assunto'
}
>
<input
required={!legacyContentEnabled}
className={control}