aboutsummaryrefslogtreecommitdiff
path: root/luax/pages/projects.luax
diff options
context:
space:
mode:
authorStanisław Zagórowski <hasohasacz@gmail.com>2024-01-12 18:44:38 +0100
committerStanisław Zagórowski <hasohasacz@gmail.com>2024-01-12 18:44:38 +0100
commit2294bc65825972106aff44f2ad8204c4f2af30f4 (patch)
tree516a564f54912565695fd5abc5cad1d6313cbabc /luax/pages/projects.luax
parent6c247f1e1d69f817f585995a6d6a8301470814b4 (diff)
luax: initial
Diffstat (limited to 'luax/pages/projects.luax')
-rw-r--r--luax/pages/projects.luax24
1 files changed, 24 insertions, 0 deletions
diff --git a/luax/pages/projects.luax b/luax/pages/projects.luax
new file mode 100644
index 0000000..219f45d
--- /dev/null
+++ b/luax/pages/projects.luax
@@ -0,0 +1,24 @@
+local Project = require("components.project")
+
+local projects = require("data.projects")
+
+local project_display = {}
+for _, project in ipairs(projects) do
+ project_display[#project_display + 1] = <Project project={project} />
+end
+
+return function()
+ return
+ <div class="main-info">
+ <div class="main-info-title">
+ Other Projects
+ </div>
+ <div class="main-info-subtitle">
+ projects that are not games
+ </div>
+
+ <div class="projects-container">
+ {$ project_display $}
+ </div>
+ </div>
+end