Skip to content

Commit da3fa97

Browse files
committed
go back to img completely since astro-imagetools seems to have broken
1 parent ead7a7a commit da3fa97

File tree

4 files changed

+8
-18
lines changed

4 files changed

+8
-18
lines changed

src/components/ImageContainer.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
---
2-
import { Picture } from "astro-imagetools/components";
3-
42
export interface Props {
53
img: string;
64
alt?: string;
@@ -42,11 +40,10 @@ const { img, alt, text, height, width, tSize, placeholder } = Astro.props;
4240
<div class="image-container">
4341
{
4442
img ? (
45-
<Picture
43+
<img
4644
src={img}
4745
alt={alt}
4846
width={width}
49-
placeholder={placeholder ? placeholder : "blurred"}
5047
/>
5148
) : (
5249
<p>

src/components/carousels/ImageCarousel.astro

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,18 @@ const imageData = yml.default;
8282
imageData.map((image: CarouselItemType, index: number) => (
8383
<div class={index == 0 ? "carousel-item active" : "carousel-item"}>
8484
{image["img-link"] == null ? (
85-
<Picture
85+
<img
8686
src={image.img}
8787
alt="..."
88-
attributes={{
89-
class: "d-block w-100",
90-
}}
88+
class="d-block w-100"
9189
/>
9290
) : (
9391
<a href={image["img-link"]} target="_blank">
94-
<Picture
92+
<img
9593
src={image.img}
9694
alt="..."
97-
attributes={{
98-
class: "d-block w-100",
99-
}}
95+
class="d-block w-100"
96+
10097
/>
10198
</a>
10299
)}

src/components/leadership/LeadershipContainer.astro

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,7 @@ const { leadership, height, width, tSize, hSize } = Astro.props;
8787
>
8888
{
8989
leadership.image ? (
90-
(leadership.image.startsWith("/") || leadership.image.startsWith("http")) ? (
91-
<img src={leadership.image} alt={leadership.name} style="width:100%; height:auto; object-fit:contain;" />
92-
) : (
93-
<Picture src={leadership.image} alt={leadership.name} />
94-
)
90+
<img src={leadership.image} alt={leadership.name} />
9591
) : (
9692
<strong>
9793
<h1 class="fw-bold text-muted text-center ">{leadership.name}</h1>

src/components/news/NewsImage.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const { src, alt, desc } = Astro.props;
1111
---
1212

1313
<div class="text-center">
14-
<Picture src={src} alt={alt} />
14+
<img src={src} alt={alt} />
1515
</div>
1616
<div class="text-center">
1717
<small>{desc}</small>

0 commit comments

Comments
 (0)