feat: Updates styles for sidebar and articles list view.
Some checks failed
CI / release (push) Failing after 2m31s

This commit is contained in:
2025-04-15 15:00:28 -04:00
parent 500f4746e8
commit ad81392dc7
5 changed files with 12 additions and 10 deletions

View File

@@ -2,8 +2,6 @@ import Foundation
import HTML
import Saga
// TODO: Try a sidebar with navigation to tags & years.
/// Displays lists of articles sectioned by a key.
///
///
@@ -66,9 +64,9 @@ struct ArticleGrid: NodeConvertible {
rssLink: rssLink,
extraHeader: extraHeader
) {
div(class: "grid grid-cols-4 mt-10 mb-10") {
div(class: "grid grid-cols-4 -mt-2") {
// Sidebar
div(class: "overflow-auto bg-slate-800 rounded-l-lg border border-slate-200") {
div(class: "overflow-auto border-r border-slate-200") {
// Years
section(class: "pt-2") {
div(class: "flex ps-2") {
@@ -90,7 +88,7 @@ struct ArticleGrid: NodeConvertible {
}
// Articles
div(class: "col-span-3 bg-slate-800 border border-slate-200 rounded-r-lg") {
div(class: "col-span-3") {
articles.map { key, articles in
section {
header(key)