From 75c00e447a1fccd067c95cb8df4ca71cd143d349 Mon Sep 17 00:00:00 2001 From: amnesia Date: Fri, 4 Jul 2025 09:22:25 +0200 Subject: [PATCH 1/5] made design better for tiling window manager --- frontend/assets/style.css | 25 ++++---- frontend/index.html | 119 +++++++++++++++++++------------------- 2 files changed, 71 insertions(+), 73 deletions(-) diff --git a/frontend/assets/style.css b/frontend/assets/style.css index d8f181a..2d8842c 100644 --- a/frontend/assets/style.css +++ b/frontend/assets/style.css @@ -6,24 +6,22 @@ body { margin: 0; height: 100vh; - padding-left: auto; - padding-right: auto; background-color: pink; display: flex; align-items: center; justify-content: center; - background: url("bg.svg") center center/auto repeat, linear-gradient( - to bottom, transparent, pink - ); + background: + url("bg.svg") center center/auto repeat, + linear-gradient(to bottom, transparent, pink); } .search-grid { - margin-top: -10em; + width: 100%; - width: 40em; - height: 30em; + margin-left: 10em; + margin-right: 10em; display: grid; gap: 5em; @@ -32,6 +30,8 @@ body { } .search { + width: 100%; + grid-row: 2; grid-column: 1 / span 2; } @@ -39,16 +39,17 @@ body { .search-logo { grid-row: 1; height: 100%; + width: 100%; display: flex; flex-direction: row; align-items: center; - justify-content: space-between; + justify-content: space-between; color: black; } -@media (min-height: 700px){ +@media (min-height: 700px) { .search-grid { margin-top: 0; } @@ -62,7 +63,7 @@ body { } .card { - background-color: rgba(255, 255, 255, .5); + background-color: rgba(255, 255, 255, 0.5); width: 10em; display: flex; flex-direction: column; @@ -85,5 +86,5 @@ body { background-color: lightblue; padding: 1em; - border-radius: .5em; + border-radius: 0.5em; } diff --git a/frontend/index.html b/frontend/index.html index ca0558b..3920fa1 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,68 +1,65 @@ - + - - - - {{ .PageTitle }} + + + + {{ .PageTitle }} - - - -
- - - -
- {{range $Store := .Stores }} - -

{{ $Store.Name }}

-

{{ $Store.Description }}

-
- {{- end }} -
-
+ + + +
+ + +
- - - \ No newline at end of file + + // Start the animation + animateMarquee(); + }); + + + From 6fa6b04b408f4c9b6915fe53791e1368ea921466 Mon Sep 17 00:00:00 2001 From: amnesia Date: Fri, 4 Jul 2025 10:09:30 +0200 Subject: [PATCH 2/5] responsive hiding of titel and estrogen --- frontend/assets/style.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/assets/style.css b/frontend/assets/style.css index 2d8842c..5f0b5cc 100644 --- a/frontend/assets/style.css +++ b/frontend/assets/style.css @@ -49,9 +49,13 @@ body { color: black; } -@media (min-height: 700px) { +@media (max-height: 300px) { .search-grid { - margin-top: 0; + grid-template-rows: 4em; + } + + .search-logo { + display: none; } } From 6e8611266bb65cf6058860f6a2c467af2209b370 Mon Sep 17 00:00:00 2001 From: amnesia Date: Fri, 4 Jul 2025 10:51:04 +0200 Subject: [PATCH 3/5] added animation to title --- frontend/index.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/index.html b/frontend/index.html index 3920fa1..de7014d 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -30,8 +30,16 @@ {{- end }} ] + function putString(element, s, i) { + i++ + element.textContent = s.substring(0, i) + + if (i >=s.length) return; + setTimeout(() => putString(element, s, i), 100); + } + Array.from(document.querySelectorAll(".phrases")).forEach(element => { - element.textContent = phrases[Math.floor(Math.random()*phrases.length)]; + putString(element, phrases[Math.floor(Math.random()*phrases.length)], 0) }) document.addEventListener('DOMContentLoaded', function() { From cb47786810c15a8373330f8d44136aee0641d80f Mon Sep 17 00:00:00 2001 From: amnesia Date: Fri, 4 Jul 2025 10:56:42 +0200 Subject: [PATCH 4/5] added periodic title change --- frontend/index.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index de7014d..267126e 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -30,16 +30,21 @@ {{- end }} ] - function putString(element, s, i) { + function setTitle(element, s, i) { i++ element.textContent = s.substring(0, i) if (i >=s.length) return; - setTimeout(() => putString(element, s, i), 100); + setTimeout(() => setTitle(element, s, i), 100); + } + + function titleChanger(element) { + setTitle(element, phrases[Math.floor(Math.random()*phrases.length)], 0); + setTimeout(() => titleChanger(element), 10000); } Array.from(document.querySelectorAll(".phrases")).forEach(element => { - putString(element, phrases[Math.floor(Math.random()*phrases.length)], 0) + titleChanger(element); }) document.addEventListener('DOMContentLoaded', function() { From cb2895c498dfcc781b9a2c32286a59031da43c47 Mon Sep 17 00:00:00 2001 From: amnesia Date: Fri, 4 Jul 2025 10:58:52 +0200 Subject: [PATCH 5/5] added semicolons --- internal/rendering/config.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/rendering/config.go b/internal/rendering/config.go index 94dad12..e630e7e 100644 --- a/internal/rendering/config.go +++ b/internal/rendering/config.go @@ -22,13 +22,13 @@ type RenderingConfig struct { func DefaultRenderingConfig() RenderingConfig { return RenderingConfig{ HeaderPhrases: []string{ - "GirlJuice.Inject()", - "Child.CrowdKill()", - "CopCar.Burn()", - "You.Cute = true", - "You.Gay = true", - "Nazi.Punch()", - "Dolls.GiveGuns()", + "GirlJuice.Inject();", + "Child.CrowdKill();", + "CopCar.Burn();", + "You.Cute = true;", + "You.Gay = true;", + "Nazi.Punch();", + "Dolls.GiveGuns();", }, BackgroundScrollX: "1", BackgroundScrollY: "0",