starting fresh

This commit is contained in:
Chris Kruining 2025-03-31 00:34:55 +02:00
parent 85fa9aff4a
commit 3a762d2343
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
111 changed files with 1939 additions and 2961 deletions

View file

@ -0,0 +1,35 @@
import { Index } from "solid-js";
import { Entry } from "~/features/content";
import css from "./hero.module.css";
type HeroProps = {
entry: Entry;
};
export function Hero(props: HeroProps) {
return (
<div class={css.container}>
<h2 class={css.title}>{props.entry.title}</h2>
<img src={props.entry.thumbnail} class={css.thumbnail} />
<img src={props.entry.image} class={css.background} />
<span class={css.detail}>
{props.entry.releaseDate}
<Index each={props.entry.sources ?? []}>
{(source) => (
<>
&nbsp;&nbsp;
<a href={source().url.toString()} target="_blank">
{source().rating.score} {source().label}
</a>
</>
)}
</Index>
</span>
<p class={css.summary}>{props.entry.summary}</p>
</div>
);
}