diff --git a/Public/css/output.css b/Public/css/output.css index 0858895..faf4842 100644 --- a/Public/css/output.css +++ b/Public/css/output.css @@ -6388,6 +6388,14 @@ width: calc(var(--spacing) * 7); height: calc(var(--spacing) * 7); } + .size-\[50px\] { + width: 50px; + height: 50px; + } + .size-\[150px\] { + width: 150px; + height: 150px; + } .status-lg { @layer daisyui.l1.l2 { width: calc(0.25rem * 3); @@ -6427,9 +6435,18 @@ } } } + .h-40 { + height: calc(var(--spacing) * 40); + } .h-\[1em\] { height: 1em; } + .h-\[50px\] { + height: 50px; + } + .h-fit { + height: fit-content; + } .h-full { height: 100%; } @@ -6570,9 +6587,15 @@ .w-24 { width: calc(var(--spacing) * 24); } + .w-40 { + width: calc(var(--spacing) * 40); + } .w-64 { width: calc(var(--spacing) * 64); } + .w-\[50px\] { + width: 50px; + } .w-\[80px\] { width: 80px; } @@ -6828,6 +6851,13 @@ margin-block-end: calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse))); } } + .space-x-0 { + :where(& > :not(:last-child)) { + --tw-space-x-reverse: 0; + margin-inline-start: calc(calc(var(--spacing) * 0) * var(--tw-space-x-reverse)); + margin-inline-end: calc(calc(var(--spacing) * 0) * calc(1 - var(--tw-space-x-reverse))); + } + } .space-x-2 { :where(& > :not(:last-child)) { --tw-space-x-reverse: 0; @@ -7643,6 +7673,12 @@ .mask-repeat { mask-repeat: repeat; } + .object-contain { + object-fit: contain; + } + .object-scale-down { + object-fit: scale-down; + } .checkbox-lg { @layer daisyui.l1.l2 { padding: 0.3125rem; diff --git a/Public/images/android-chrome-192x192.png b/Public/images/android-chrome-192x192.png new file mode 100644 index 0000000..0cd4769 Binary files /dev/null and b/Public/images/android-chrome-192x192.png differ diff --git a/Public/images/android-chrome-512x512.png b/Public/images/android-chrome-512x512.png new file mode 100644 index 0000000..1196e38 Binary files /dev/null and b/Public/images/android-chrome-512x512.png differ diff --git a/Public/images/apple-touch-icon.png b/Public/images/apple-touch-icon.png new file mode 100644 index 0000000..f2a8311 Binary files /dev/null and b/Public/images/apple-touch-icon.png differ diff --git a/Public/images/favicon-16x16.png b/Public/images/favicon-16x16.png new file mode 100644 index 0000000..90a2cf2 Binary files /dev/null and b/Public/images/favicon-16x16.png differ diff --git a/Public/images/favicon-32x32.png b/Public/images/favicon-32x32.png new file mode 100644 index 0000000..127025a Binary files /dev/null and b/Public/images/favicon-32x32.png differ diff --git a/Public/images/favicon.ico b/Public/images/favicon.ico new file mode 100644 index 0000000..9675c40 Binary files /dev/null and b/Public/images/favicon.ico differ diff --git a/Public/images/mand_logo.png b/Public/images/mand_logo.png new file mode 100644 index 0000000..5cef4f3 Binary files /dev/null and b/Public/images/mand_logo.png differ diff --git a/Public/images/mand_logo_md.webp b/Public/images/mand_logo_md.webp new file mode 100644 index 0000000..7e91eed Binary files /dev/null and b/Public/images/mand_logo_md.webp differ diff --git a/Public/images/mand_logo_sm.webp b/Public/images/mand_logo_sm.webp new file mode 100644 index 0000000..8a0befe Binary files /dev/null and b/Public/images/mand_logo_sm.webp differ diff --git a/Public/images/mand_logo_trimmed.png b/Public/images/mand_logo_trimmed.png new file mode 100644 index 0000000..e1e63c2 Binary files /dev/null and b/Public/images/mand_logo_trimmed.png differ diff --git a/Public/site.webmanifest b/Public/site.webmanifest new file mode 100644 index 0000000..45dc8a2 --- /dev/null +++ b/Public/site.webmanifest @@ -0,0 +1 @@ +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file diff --git a/Sources/ViewController/Views/MainPage.swift b/Sources/ViewController/Views/MainPage.swift index c29badd..98f1259 100644 --- a/Sources/ViewController/Views/MainPage.swift +++ b/Sources/ViewController/Views/MainPage.swift @@ -23,6 +23,22 @@ public struct MainPage: SendableHTMLDocument where Inner: Sendable script(.src("/js/main.js")) {} link(.rel(.stylesheet), .href("/css/output.css")) link(.rel(.icon), .href("/images/favicon.ico"), .custom(name: "type", value: "image/x-icon")) + link( + .rel(.icon), + .href("/images/favicon-32x32.png"), + .init(name: "type", value: "image/png") + ) + link( + .rel(.icon), + .href("/images/favicon-16x16.png"), + .init(name: "type", value: "image/png") + ) + link( + .rel(.init(rawValue: "apple-touch-icon")), + .init(name: "sizes", value: "180x180"), + .href("/images/apple-touch-icon.png") + ) + link(.rel(.init(rawValue: "manifest")), .href("/site.webmanifest")) script( .src("https://unpkg.com/htmx-remove@latest"), .crossorigin(.anonymous), diff --git a/Sources/ViewController/Views/Navbar.swift b/Sources/ViewController/Views/Navbar.swift index e5f163f..748e9fb 100644 --- a/Sources/ViewController/Views/Navbar.swift +++ b/Sources/ViewController/Views/Navbar.swift @@ -6,8 +6,14 @@ struct Navbar: HTML, Sendable { let sidebarToggle: Bool var body: some HTML { - nav(.class("navbar w-full bg-base-300 text-base-content shadow-sm mb-4")) { - div(.class("flex-1 space-x-4 items-center")) { + nav( + .class( + """ + navbar w-full bg-base-300 text-base-content shadow-sm mb-4 + """ + ) + ) { + div(.class("flex flex-1 space-x-4 items-center")) { if sidebarToggle { Tooltip("Open sidebar", position: .right) { label( @@ -20,12 +26,16 @@ struct Navbar: HTML, Sendable { .navButton() } } + Tooltip("Home", position: .right) { a( - .class("w-fit text-xl py-2 px-4"), + .class("flex w-fit h-fit text-xl items-end px-4 py-2"), .href(route: .project(.index)) ) { - "Manual-D" + img( + .src("/images/mand_logo_sm.webp"), + ) + span { "Manual-D" } } .navButton() }