Replace the projects-style card grid with a compact row list: 16:9 thumbnail, title, description and hostname per row, hairline dividers, hover tint and an arrow that slides on hover. Adds a live count chip to the heading. Swap the placeholder art for real captures of git.jonb.io, the castlemine squaremap render and the up.jonb.io status page.
72 lines
2.9 KiB
TypeScript
72 lines
2.9 KiB
TypeScript
import likesData from '@/data/likesData'
|
|
import Image from '@/components/Image'
|
|
import Link from '@/components/Link'
|
|
import { genPageMetadata } from 'app/seo'
|
|
|
|
export const metadata = genPageMetadata({ title: 'Likes' })
|
|
|
|
export default function Likes() {
|
|
return (
|
|
<div className="divide-y divide-gray-200 dark:divide-gray-700">
|
|
<div className="space-y-2 pb-8 pt-6 md:space-y-5">
|
|
<h1 className="text-3xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100 sm:text-4xl sm:leading-10 md:text-6xl md:leading-14">
|
|
Likes
|
|
<span className="ml-3 inline-block rounded-full border border-primary-500/40 px-2.5 py-0.5 align-middle text-xs font-semibold uppercase tracking-wide text-primary-500">
|
|
{likesData.length} things
|
|
</span>
|
|
</h1>
|
|
<p className="text-lg leading-7 text-gray-500 dark:text-gray-400">
|
|
These things are pretty cool, check 'em out.
|
|
</p>
|
|
</div>
|
|
<ul className="py-2">
|
|
{likesData.map((d) => (
|
|
<li key={d.title} className="border-b border-gray-200 last:border-0 dark:border-gray-700">
|
|
<Link
|
|
href={d.href}
|
|
aria-label={`Link to ${d.title}`}
|
|
className="group flex items-center gap-5 rounded-lg px-4 py-5 transition-colors hover:bg-gray-100 dark:hover:bg-gray-900"
|
|
>
|
|
<span className="h-[135px] w-[240px] flex-none overflow-hidden rounded-lg border border-gray-200 bg-gray-200 dark:border-gray-700 dark:bg-gray-800">
|
|
<Image
|
|
src={d.imgSrc}
|
|
alt={d.title}
|
|
width={480}
|
|
height={270}
|
|
className="h-full w-full object-cover object-center"
|
|
/>
|
|
</span>
|
|
<span className="min-w-0 flex-1">
|
|
<span className="block text-xl font-semibold tracking-tight text-gray-900 dark:text-gray-100">
|
|
{d.title}
|
|
</span>
|
|
<span className="mt-1.5 block max-w-[46ch] text-[15px] text-gray-500 dark:text-gray-400">
|
|
{d.description}
|
|
</span>
|
|
{d.host && (
|
|
<span className="mt-2.5 block font-mono text-xs text-gray-500 dark:text-gray-400">
|
|
{d.host}
|
|
</span>
|
|
)}
|
|
</span>
|
|
<svg
|
|
className="h-5 w-5 flex-none text-primary-500 opacity-60 transition group-hover:opacity-100"
|
|
viewBox="0 0 24 24"
|
|
fill="none"
|
|
stroke="currentColor"
|
|
strokeWidth="2"
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
aria-hidden="true"
|
|
>
|
|
<path d="M7 17 17 7" />
|
|
<path d="M8 7h9v9" />
|
|
</svg>
|
|
</Link>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</div>
|
|
)
|
|
}
|