replace png with webp
confusedbread confuseddbread@gmail.com
Mon, 07 Jul 2025 20:13:48 +0200
8 files changed,
5 insertions(+),
5 deletions(-)
M
src/main.rs
→
src/main.rs
@@ -23,7 +23,7 @@ (DOCTYPE)
head { meta charset="utf-8"; title { (page_title) } - link rel="icon" href="./static/neodog_laptop_notice.png"; + link rel="icon" href="./static/neodog_laptop_notice.webp"; link rel="stylesheet" href="static/style.css"; script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.6/dist/htmx.min.js" {} script { "htmx.config.selfRequestsOnly = false" }@@ -96,7 +96,7 @@ h1 { "Boop me" }
div class="boop timestamp" { (format!("boops since {}:",Local::now().format("%d/%m/%Y %H:%M UTC%Z"))) } div class="boop counter" #boop-counter hx-get={(format!("{}/boop", URL))} hx-trigger="load" {} div class="boop stack" { - img class="boop unboop" src="./static/neodog.png" {} + img class="boop unboop" src="./static/neodog.webp" {} button class="boop button" hx-post={(format!("{}/boop", URL))} hx-trigger="mousedown throttle:300ms" hx-swap="swap:275ms" hx-target="#boop-counter" {} } }@@ -153,4 +153,4 @@ )
.bind(("localhost", 8083))? .run() .await -}+}
M
src/static/style.css
→
src/static/style.css
@@ -630,7 +630,7 @@ width: 16rem;
} .button { - background: url("neodog_boop_blep.png") no-repeat scroll 0 0 transparent; + background: url("neodog_boop_blep.webp") no-repeat scroll 0 0 transparent; border: none; background-size: 16rem 16rem; opacity: 0;@@ -675,4 +675,4 @@
@keyframes fadeOut { 0% { opacity: 1; } 100% { opacity: 0; } -}+}