commit 571afe6ab992c658598b6b3a11319d322ba8c66a Author: vx-clutch Date: Thu Jan 8 14:59:42 2026 -0500 inital commit diff --git a/Fes.toml b/Fes.toml new file mode 100644 index 0000000..c9e8172 --- /dev/null +++ b/Fes.toml @@ -0,0 +1,5 @@ +[app] + +name = "fes-in-fes" +version = "0.0.1" +authors = ["vx-clutch"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..afc46d9 --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +# fes-in-fes + +``` +fes new fes-in-fes +``` + +> **Know what you are doing?** Delete this file. Have fun! + +## Project Structure + +Inside your Fes project, you'll see the following directories and files: + +``` +. +├── Fes.toml +├── README.md +└── www + └── index.lua +``` + +Fes looks for `.lua` files in the `www/` directory. Each file is exposed as a route based on its file name. + +## Commands + +All commands are run from the root of the project, from a terminal: + +| Command | Action | +| :------------------------ | :----------------------------------------------- | +| `fes run .` | Runs the project at `.` | + +## What to learn more? + +Check out [Fes's docs](https://docs.vxserver.dev/static/fes.html). diff --git a/include/style.lua b/include/style.lua new file mode 100644 index 0000000..4e9783f --- /dev/null +++ b/include/style.lua @@ -0,0 +1,34 @@ +local M = {} + +M.get = function () + return [[ + +]] +end + +return M diff --git a/static/bg.jpg b/static/bg.jpg new file mode 100644 index 0000000..c36a859 Binary files /dev/null and b/static/bg.jpg differ diff --git a/www/index.lua b/www/index.lua new file mode 100644 index 0000000..b3fc81e --- /dev/null +++ b/www/index.lua @@ -0,0 +1,31 @@ +local fes = require("fes") +local std = fes.std +local u = fes.util + +local screen = function (cnt) + return string.format([[ +%s +%s +
+%s +
+]], fes.app.style.get(), std.center(std.h1("Fes in Fes")), cnt) +end + +local act = function (action) + return std.a("/?action=" .. action, action) +end + +local cnt = u.cc { + [[
]], + std.h2("Actions:"), + std.ul { + act("Punch"), + act("Kick"), + act("Block"), + act("Flee"), + }, + [[
]], +} + +return screen(cnt)