This commit is contained in:
2025-12-07 10:15:32 -05:00
parent b89dc65e1f
commit 4ff689e299
31 changed files with 13 additions and 40 deletions

View File

@@ -0,0 +1,5 @@
[app]
name = "canonical"
version = "0.0.1"
authors = ["vx-clutch"]

View File

@@ -0,0 +1,16 @@
local header = {}
header.render = function(std)
return table.concat({
std.center(std.h1("Canonical")),
std.center(table.concat({
std.nav("example"),
std.nav("example"),
std.nav("example"),
std.nav("example"),
std.nav("example"),
}))
})
end
return header

View File

@@ -0,0 +1,17 @@
local fes = require("fes")
local std = fes.std
local u = fes.util
local site = fes.fes()
site.title = "404 Page Not Found"
site.copyright = u.copyright("https://git.vxserver.dev/fSD/", "fSD")
site:banner(std.h1(std.center("Canonical")))
site:note(table.concat({
std.center(std.h1("404 Page Not Found")),
std.center(std.p("The page you are looking for is not here. " .. std.a("/", "Go home?"))),
}))
return site

View File

@@ -0,0 +1,17 @@
local fes = require("fes")
local std = fes.std
local site = fes.fes()
site.title = "Canonical"
site.copyright = fes.util.copyright("https://git.vxserver.dev/fSD", "fSD")
site:banner(fes.app.header.render(std))
site:note(table.concat({
std.h1("Canonical"),
std.p("This is the example for the canonical 'fes' site, by canonical is meant a format and " .. std.external("https://git.vxserver.dev/fSD/fes/src/branch/master/examples/canonical/www/index.lua", "code") .. " that resembles the typical use case of the Microframework"),
std.p("This page also serves as a test for the integrity of a 'fes' build, given that it uses plenty crucial features to show everything from the HTML to CSS as well as the interactivity of certain elements."),
}))
return site