showing a full height image in image page
This commit is contained in:
@@ -12,3 +12,14 @@ export const ImageComponent: Component<{ ID: string }> = (props) => {
|
||||
</A>
|
||||
);
|
||||
};
|
||||
|
||||
export const ImageComponentFullHeight: Component<{ ID: string }> = (props) => {
|
||||
return (
|
||||
<A href={`/image/${props.ID}`} class="w-full flex justify-center">
|
||||
<img
|
||||
class="flex w-full object-cover rounded-xl"
|
||||
src={`${base}/images/${props.ID}`}
|
||||
/>
|
||||
</A>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user