downsize images

This commit is contained in:
Christophe Robillard 2025-05-23 17:40:13 +02:00
parent c4f1c61522
commit 02116c9dd1
5 changed files with 3 additions and 3 deletions

BIN
public/creatif.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
public/croisiere.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
public/en-charge.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
public/frigo-vide.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View file

@ -12,12 +12,12 @@
showMode(event) {
const image = this.imageTarget
image.src = event.target.dataset.mode + ".png"
image.src = event.target.dataset.mode + ".jpg"
}
showCurrent() {
const image = this.imageTarget
image.src = "<%= @mode %>.png"
image.src = "<%= @mode %>.jpg"
}
})
@ -25,7 +25,7 @@
</head>
<main data-controller="mood">
<div class="mode">
<img data-mood-target="image" src="<%= @mode %>.png">
<img data-mood-target="image" src="<%= @mode %>.jpg">
</div>
<div class="tracker">
<div class="title">