From f89012f23c5a788abba412971305473243415325 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Thu, 28 May 2026 23:24:50 +0200 Subject: [PATCH] refactor: redesign schedule with responsive grid and expanded spacing --- static/assets/style.css | 2 + templates/schedule.gohtml | 236 ++++++++++++++++++++------------------ 2 files changed, 128 insertions(+), 110 deletions(-) diff --git a/static/assets/style.css b/static/assets/style.css index 41bbfa7..073eda2 100644 --- a/static/assets/style.css +++ b/static/assets/style.css @@ -33,6 +33,8 @@ --surface-select: light-dark(#ffffff, #181818); --text-on-accent: light-dark(#fafaf9, #0c0a09); --overlay-subtle: light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.04)); + --border: light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.07)); + --border-light: light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.035)); --shadow-subtle: light-dark(0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.18)); --shadow-card: light-dark(0 2px 8px rgba(0, 0, 0, 0.04), 0 2px 10px rgba(0, 0, 0, 0.28)); --shadow-card-hover: light-dark(0 6px 18px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.34)); diff --git a/templates/schedule.gohtml b/templates/schedule.gohtml index 1ecfe8b..e6161c8 100644 --- a/templates/schedule.gohtml +++ b/templates/schedule.gohtml @@ -1,12 +1,12 @@ {{define "title"}}Schedule{{end}} {{define "content"}} -
-
-
-

Airing Schedule

-

Shows from your watchlist that are currently airing.

+
+
+
+

Schedule

+

Shows from your watchlist that are currently airing.

- Manage watchlist + Manage watchlist
@@ -16,77 +16,81 @@ {{end}} {{define "schedule_section"}} -
+
{{if eq (len .Animes) 0}} -
-
-

Nothing airing yet

-

Add currently airing shows to your watchlist to see their weekly broadcast time here.

- +
+ + + + + + +
+

Nothing airing yet

+

Add currently airing shows to your watchlist to see their weekly broadcast schedule here.

+
+
{{else}} -
-
-
-
- Time -
- - -
-
- -
- Images -
- - -
-
- -
- Sort - -
- -
- Week - +
+
+
+ Time +
+ +
-
- - +
+ Images +
+ + +
+ +
+ Sort + +
+ +
+ Week starts + +
+
+ +
+ +
-
+
{{range (list "Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday" "Sunday")}} {{$day := .}} -
-
+
+
-

{{$day}}

-
+

{{$day}}

+
-
0
+ 0
-
+
{{end}}
@@ -109,15 +113,15 @@ data-broadcast-time="{{$anime.Broadcast.Time}}" data-broadcast-timezone="{{$anime.Broadcast.Timezone}}" > -
- - {{$anime.DisplayTitle}} +
+ + {{$anime.DisplayTitle}} -
-
+
+ -
-
Unknown
+
+ Unknown {{if $anime.Score}} -
- + + {{$anime.Score}} -
+ {{end}}
@@ -151,52 +155,55 @@ {{end}} {{define "schedule_section_scraped"}} -
+
{{if eq (len .ScheduleDays) 0}} -
-
-

No schedule data

+
+ + + + +
+

No schedule data

Could not load the schedule feed right now.

{{else}} -
- Previous Week - Next Week + -
-
+
{{range .ScheduleDays}} -
-
+
+
-
{{.DateLabel}}
-

{{.WeekdayLabel}}

+
{{.DateLabel}}
+

{{.WeekdayLabel}}

-
{{end}} -
{{end}}
{{end}} {{define "schedule_skeleton"}} -
- {{range (seq 6)}} -
-
-
-
-
-
-
+
+ {{range (seq 7)}} +
+
+
+
+
+
+
+
+ {{range (seq 3)}} +
+
+
+
+
+
+
+ {{end}}
{{end}} -
+
{{end}}