phlexite/docs/pages/layout.rb
Aleks Rutins 04e1d9eb91
Some checks failed
/ build (push) Successful in 1m33s
Ruby / Ruby 3.3.5 (push) Failing after 14s
Try adding docs
2025-06-10 18:11:38 -04:00

29 lines
No EOL
1 KiB
Ruby

module Phlexite::Docs::Pages
class Layout < ::Phlex::HTML
def view_template
doctype
html {
head {
meta charset: 'utf-8'
meta name: 'viewport', content: 'width=device-width, initial-scale=1.0'
title { "Phlexite" }
link rel: 'stylesheet', href: 'https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css'
}
body(style: "padding: 0; margin: 0; display: flex; flex-direction: row; height: 100vh; width: 100vw;") {
aside(style: 'padding: 30px; min-width: 15%; border-right: 1px solid #6F7887;') {
nav {
ul {
li { a(href: '/') { 'Home' } }
}
}
}
div(class: 'container', style: 'padding: 20px') {
yield
}
}
}
end
end
end