refactor: eliminate all hardcoded strings in TSX components, enforce project rules in AGENTS.md, lock body scroll in cookie modal
This commit is contained in:
@@ -15,6 +15,7 @@ interface BlogListBlockProps {
|
||||
badge?: string
|
||||
heading: string
|
||||
subheading?: string
|
||||
readMoreLabel?: string
|
||||
articles?: Article[]
|
||||
}
|
||||
|
||||
@@ -79,10 +80,12 @@ export function BlogListBlockComponent(props: BlogListBlockProps) {
|
||||
{art.date}
|
||||
</span>
|
||||
)}
|
||||
<div className="text-xs font-black uppercase tracking-wider text-[#1f1f1f] flex items-center gap-1 hover:underline cursor-pointer whitespace-nowrap">
|
||||
<span>Czytaj poradnik</span>
|
||||
<ArrowRight className="h-3.5 w-3.5 text-[#1f1f1f]" />
|
||||
</div>
|
||||
{props.readMoreLabel && (
|
||||
<div className="text-xs font-black uppercase tracking-wider text-[#1f1f1f] flex items-center gap-1 hover:underline cursor-pointer whitespace-nowrap">
|
||||
<span>{props.readMoreLabel}</span>
|
||||
<ArrowRight className="h-3.5 w-3.5 text-[#1f1f1f]" />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</article>
|
||||
</AnimateIn>
|
||||
|
||||
Reference in New Issue
Block a user