package be.simplenotes.app.views import be.simplenotes.app.utils.StaticFileResolver import be.simplenotes.domain.security.JwtPayload import kotlinx.html.* import kotlinx.html.div import org.intellij.lang.annotations.Language class BaseView(staticFileResolver: StaticFileResolver) : View(staticFileResolver) { fun renderHome(jwtPayload: JwtPayload?) = renderPage( title = "Home", description = "A fast and simple note taking website", jwtPayload = jwtPayload ) { section("text-center my-2 p-2") { h1("text-5xl casual") { span("text-teal-300") { +"Simplenotes " } +"- access your notes anywhere" } } div("container mx-auto flex flex-wrap justify-center content-center") { unsafe { @Language("html") val html = """
| Title | Updated | Tags |
|---|---|---|
| Formula 1 | moments ago |
|
| Syntax highlighting | 2 hours ago |
|
| report | 5 days ago |
|