downsize images

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

BIN
public/croisiere.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

BIN
public/en-charge.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 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">