Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25 lines (23 sloc)
725 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kweb.demos.https | |
import kweb.Kweb | |
import kweb.div | |
import kweb.h1 | |
import kweb.https.SSLConfig | |
import kweb.new | |
import kweb.plugins.fomanticUI.fomantic | |
import kweb.plugins.fomanticUI.fomanticUIPlugin | |
fun main() { | |
Kweb(9090, plugins = listOf(fomanticUIPlugin), httpsConfig = SSLConfig()) { | |
doc.body.new { | |
div(fomantic.ui.main.container).new { | |
div(fomantic.column).new { | |
div(fomantic.ui.vertical.segment).new { | |
div(fomantic.ui.message).new { | |
h1(fomantic.ui.header.center.aligned).text("Welcome to Https Kweb!") | |
} | |
} | |
} | |
} | |
} | |
} | |
} |