all repos — breadsite @ c35e8d9c51b8f2c97f77df211fb07c45dcda1bcc

Unnamed repository; edit this file 'description' to name the repository.

replace png with webp
confusedbread confuseddbread@gmail.com
Mon, 07 Jul 2025 20:13:48 +0200
commit

c35e8d9c51b8f2c97f77df211fb07c45dcda1bcc

parent

010412e3ae6046d14dcf84264e7dbc678209d005

M src/main.rssrc/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.csssrc/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; } -}+}