mirror of
https://github.com/hex248/ob248.com.git
synced 2026-02-07 18:23:04 +00:00
images fill box
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 118 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 31 KiB |
@@ -8,19 +8,17 @@ interface Props {
|
|||||||
const { image, title, type = "simple" } = Astro.props;
|
const { image, title, type = "simple" } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
{type === "boxed" ? (
|
{
|
||||||
|
type === "boxed" ? (
|
||||||
<div class="border demo-border">
|
<div class="border demo-border">
|
||||||
<span>{title}</span>
|
<span>{title}</span>
|
||||||
<img
|
<img src={image} alt={title} class="object-cover w-full" />
|
||||||
src={image}
|
|
||||||
alt={title}
|
|
||||||
class="object-cover"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<img
|
<img
|
||||||
src={image}
|
src={image}
|
||||||
alt={title}
|
alt={title}
|
||||||
class="w-full h-full object-cover demo-border"
|
class="w-full h-full object-cover demo-border"
|
||||||
/>
|
/>
|
||||||
)}
|
)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user