Refactored for WEBP images

This commit is contained in:
Firq 2023-01-27 23:12:43 +01:00
parent 0443303c5a
commit 7ed2e6c2dc
Signed by: Firq
GPG key ID: 4DE1059A4666E89F
49 changed files with 5 additions and 5 deletions
src/components

View file

@ -7,7 +7,7 @@ export interface Props {
const {mlb, link, name } = Astro.props;
const ce_img: string = `ce/${link}.png`;
const ce_img: string = `ce/${link}.webp`;
let mlb_image: string = "mlbalign";
if(mlb === "false") {
@ -21,7 +21,7 @@ if(mlb === "false") {
<img class="ce-crop" src={ce_img} alt={name}>
</div>
<div class={mlb_image}>
<img class="mlb" src="ce/mlb.png" alt="Max-limit broken"/>
<img class="mlb" src="ce/mlb.webp" alt="Max-limit broken"/>
</div>
</article>