Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/SantaClaas/Time. Oh no another time tracking app!
Something went wrong. Try again.
1.6 kB · 65 lines
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566module Time.Server.Index
open Boleroopen Bolero.Htmlopen Bolero.Server.Htmlopen Time
let page = doctypeHtml { head { meta { attr.charset "UTF-8" }
meta { attr.name "viewport" attr.content "width=device-width, initial-scale=1.0" }
title { "Time" } ``base`` { attr.href "/" } // Automatic dark mode meta { attr.name "color-scheme" attr.content "dark light" }
meta { attr.name "theme-color" attr.content "#d800e9" }
meta { attr.name "accent-color" attr.content "#d800e9" } // For dark/light mode specifically meta { attr.name "theme-color" attr.content "#d800e9" }
meta { attr.name "accent-color" attr.content "#872e4e" attr.media "(prefers-color-scheme: dark)" }#if DEBUG // Tailwind CSS play CDN only in development script { attr.src "https://cdn.tailwindcss.com" } style { attr.``type`` "text/tailwindcss" }#endif link { attr.rel "stylesheet" attr.href "css/index.css" } }
body { div { attr.id "app" rootComp<Client.App.MyApp> }
boleroScript } }