2026-02-03 22:22:53 +01:00
|
|
|
<script lang="ts">
|
2026-04-24 20:48:22 +02:00
|
|
|
export interface LinkRowEntry {
|
2026-02-03 22:22:53 +01:00
|
|
|
title: string;
|
|
|
|
|
description: string;
|
|
|
|
|
img: string;
|
2026-04-24 20:48:22 +02:00
|
|
|
latestUpdate?: string;
|
2026-02-03 22:22:53 +01:00
|
|
|
altText: string;
|
|
|
|
|
link: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let {
|
|
|
|
|
entries,
|
|
|
|
|
}: {
|
2026-04-24 20:48:22 +02:00
|
|
|
entries: LinkRowEntry[];
|
2026-02-03 22:22:53 +01:00
|
|
|
} = $props();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div class="row-container">
|
|
|
|
|
{#each entries as entry}
|
2026-04-06 17:53:40 +02:00
|
|
|
<a class="row-entry blurred-background-hover" href="{entry.link}">
|
2026-02-03 22:22:53 +01:00
|
|
|
<div class="row-img-container">
|
|
|
|
|
<img class="row-img" src="{entry.img}" alt="{entry.altText}">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row-text-container">
|
|
|
|
|
<p class="row-title">> {entry.title}</p>
|
|
|
|
|
<p class="row-description">{@html entry.description}</p>
|
2026-04-24 20:48:22 +02:00
|
|
|
{#if entry.latestUpdate}
|
|
|
|
|
<p class="row-updated">updated: <span class="row-updated-date">{entry.latestUpdate}</span></p>
|
|
|
|
|
{/if}
|
2026-02-03 22:22:53 +01:00
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
{/each}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.row-container {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.row-entry {
|
|
|
|
|
flex: 1 1 0px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
text-decoration: none;
|
2026-04-08 21:31:35 +02:00
|
|
|
border-radius: var(--border-radius);
|
2026-03-07 13:43:38 +01:00
|
|
|
transition: background-color var(--duration-animation) var(--anim-curve),
|
|
|
|
|
border-color var(--duration-animation) var(--anim-curve),
|
|
|
|
|
backdrop-filter var(--duration-blur) var(--anim-curve);
|
2026-02-25 17:52:13 +01:00
|
|
|
border: var(--border-dash-size) var(--border-style) transparent;
|
2026-02-03 22:22:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.row-entry:hover {
|
|
|
|
|
background-color: var(--color-background-highlight);
|
|
|
|
|
border-color: var(--color-highlight);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.row-entry:hover .row-img {
|
2026-03-07 13:43:38 +01:00
|
|
|
scale: 1.2;
|
2026-02-03 22:22:53 +01:00
|
|
|
}
|
|
|
|
|
|
2026-04-08 21:31:35 +02:00
|
|
|
.row-entry:hover .row-img-container {
|
|
|
|
|
border-top-left-radius: calc(var(--border-radius) - 8px);
|
|
|
|
|
border-top-right-radius: calc(var(--border-radius) - 8px);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-03 22:22:53 +01:00
|
|
|
.row-img-container {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 160px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
2026-04-08 21:31:35 +02:00
|
|
|
transition: border-radius var(--duration-animation) var(--anim-curve);
|
2026-02-03 22:22:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.row-img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
object-fit: cover;
|
2026-03-07 13:43:38 +01:00
|
|
|
transition: scale var(--duration-animation) var(--anim-curve);
|
2026-02-03 22:22:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.row-text-container {
|
|
|
|
|
margin-top: 8px;
|
2026-04-24 20:48:22 +02:00
|
|
|
margin-bottom: 4px;
|
2026-02-03 22:22:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.row-title {
|
|
|
|
|
font-family: var(--font-mono);
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: var(--color-highlight);
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.row-description {
|
|
|
|
|
font-size: 1.0rem;
|
|
|
|
|
line-height: 1.3rem;
|
2026-04-24 20:48:22 +02:00
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.row-updated, .row-updated-date {
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
line-height: 1.2rem;
|
|
|
|
|
margin: 0;
|
|
|
|
|
font-style: italic;
|
|
|
|
|
width: fit-content;
|
|
|
|
|
transition: color var(--duration-animation) var(--anim-curve),
|
|
|
|
|
background-color var(--duration-animation) var(--anim-curve);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.row-updated {
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
background-color: var(--color-background-highlight);
|
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.row-entry:hover .row-updated {
|
|
|
|
|
color: var(--color-text-dark);
|
|
|
|
|
background-color: var(--color-highlight);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.row-updated-date {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.row-entry:hover .row-updated-date {
|
|
|
|
|
color: var(--color-text-dark);
|
2026-02-03 22:22:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media screen and (max-width: 600px) {
|
|
|
|
|
.row-container {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|