simplex/layouts/main.moon
Paul Liverman III d1ed0c3e41 styling
2018-04-24 15:08:23 -07:00

26 lines
1.1 KiB
Plaintext

import Widget from require "lapis.html"
csrf = require "lapis.csrf"
config = require("lapis.config").get!
class extends Widget
content: =>
html_5 ->
head ->
meta charset: "utf-8"
meta name: "viewport", content: "width=device-width, initial-scale=1"
title(@title or "Simplex")
-- Milligram CSS framework
link rel: "stylesheet", href: "https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic"
link rel: "stylesheet", href: "https://cdn.rawgit.com/necolas/normalize.css/master/normalize.css"
link rel: "stylesheet", href: "https://cdn.rawgit.com/milligram/milligram/master/dist/milligram.min.css"
-- JQuery
script src: "https://code.jquery.com/jquery-3.3.1.min.js", integrity: "sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=", crossorigin: "anonymous"
-- custom JS/CSS
script src: "/static/main.js"
link rel: "stylesheet", href: "/static/main.css"
body ->
div class: "container", ->
h1(@title or "Simplex")
@content_for "inner"