Implement ProgCode identity and real shared reading UI kit
Build and deploy / deploy (push) Successful in 2m39s

This commit is contained in:
huncode committed 2026-10-27 15:19:49 +03:00
1 parent 99c848189e
commit 12562baeb5
2040 files changed
+184656 -181

No files matched your search

@@ -0,0 +1,3 @@
import Link from 'next/link';
import {articleHref,articleGenre,readingConnections} from '../../entities/article';
export default function RelatedReading({article,articles}){const connections=article?readingConnections(article,articles):[];if(!connections.length)return <section className="related"><p className="kicker">К СЛЕДУЮЩЕМУ ВОПРОСУ</p><Link href="/#journal">Найти материал в указателе →</Link></section>;return <section className="related" aria-label="Продолжить по смыслу"><p className="kicker">К СЛЕДУЮЩЕМУ ВОПРОСУ</p>{connections.map(({article:item,reason})=><Link className="continuation" key={item.slug} href={articleHref(item)}><span className="tiny-topic">{articleGenre(item)} · {item.categories.join(' / ')}</span><strong>{item.title}</strong><span className="reason">{reason}</span><span aria-hidden="true">→</span></Link>)}</section>}