package components

import "git.schreifuchs.ch/schreifuchs/schreifuchs.ch/internal/components/images"

templ ImageTile(src string) {
	<div class="grid grid-cols-1 grid-rows-1">
		<img
			src={ src }
			srcset={ images.SourceSet(src) }
			fetchpriority="high"
			loading="eager"
			class="row-start-1 col-start-1 pointer-events-none w-full h-96 object-cover"
		/>
		<div class="row-start-1 col-start-1">
			{ children... }
		</div>
	</div>
}
