www/components/quick-links.tsx
Paul W. e3c70632e2
Add programming-resources; swi->generic Nintendo;
Remove custom html from markdown, clean-up UI (again)

Signed-off-by: Paul W. <lambdapaul@protonmail.com>
2024-02-13 18:01:07 -05:00

26 lines
713 B
TypeScript

import Link from 'next/link';
import Pages from '../public/external.json';
function QuickLinks() {
return (
<div className='block'>
<h2>Quick Links</h2>
{
Object.entries(Pages).map(([title, link], i) => {
const extern = link.match(/^http/) && `blue extern` || '';
return (
<Link
key={i}
href={link}
className={`${extern} link button`}>
{title}
</Link>
);
})
}
</div>
);
}
export default QuickLinks;