mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
tile: making tweaks for mark :)
This commit is contained in:
parent
7b16f8d375
commit
305cd0b567
@ -64,14 +64,16 @@ export const Tile: FunctionComponent<TileProps> = ({ charge, desk }) => {
|
|||||||
lightText={lightText}
|
lightText={lightText}
|
||||||
className="absolute z-10 top-3 right-3 sm:top-5 sm:right-5 opacity-0 pointer-coarse:opacity-100 hover-none:opacity-100 focus:opacity-100 group-hover:opacity-100"
|
className="absolute z-10 top-3 right-3 sm:top-5 sm:right-5 opacity-0 pointer-coarse:opacity-100 hover-none:opacity-100 focus:opacity-100 group-hover:opacity-100"
|
||||||
/>
|
/>
|
||||||
|
{title && (
|
||||||
<div
|
<div
|
||||||
className="h4 absolute z-10 bottom-[8%] left-[5%] sm:bottom-7 sm:left-5 py-1 px-3 rounded-lg"
|
className="h4 absolute z-10 bottom-[8%] left-[5%] sm:bottom-7 sm:left-5 py-1 px-3 rounded-lg"
|
||||||
style={{ backgroundColor }}
|
style={{ backgroundColor }}
|
||||||
>
|
>
|
||||||
<h3 className="mix-blend-hard-light">{title}</h3>
|
<h3 className="mix-blend-hard-light">{title}</h3>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
{image && !loading && (
|
{image && !loading && (
|
||||||
<img className="absolute top-0 left-0 h-full w-full object-contain" src={image} alt="" />
|
<img className="absolute top-0 left-0 h-full w-full object-cover" src={image} alt="" />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user