feat: frontend page images

This commit is contained in:
2025-07-18 15:24:44 +01:00
parent 4870a8b1b1
commit 300a4925df
3 changed files with 33 additions and 25 deletions

View File

@@ -4,8 +4,11 @@ import { A } from "@solidjs/router";
export const ImageComponent: Component<{ ID: string }> = (props) => {
return (
<A href={`/image/${props.ID}`}>
<img src={`${base}/image/${props.ID}`} />
<A href={`/image/${props.ID}`} class="w-full h-full">
<img
class="w-full h-full object-contain"
src={`${base}/image/${props.ID}`}
/>
</A>
);
};