initial commit

This commit is contained in:
cyclic
2025-07-20 20:23:49 -06:00
commit 6948e46327
19 changed files with 447 additions and 0 deletions

5
src/build.luau Normal file
View File

@@ -0,0 +1,5 @@
local fs = require("@lune/fs")
local site = require("./")
fs.writeDir("dist")
fs.writeFile("dist/index.html", site())

14
src/dev.luau Normal file
View File

@@ -0,0 +1,14 @@
local net = require("@lune/net")
local fs = require("@lune/fs")
local server = net.serve(3000, function()
return {
status = 200,
body = fs.readFile("dist/index.html"),
headers = {
['Application-Type'] = 'html'
}
}
end)
print(`Serving on http://localhost:3000`)

53
src/init.luau Normal file
View File

@@ -0,0 +1,53 @@
local h = require("@lib/html")
return h.html({ lang = "en" })({
h.head()({
h.meta({ charset = "utf-8" }),
h.meta({ name = "viewport", content = "width=device-width, initial-scale=1" }),
h.meta({ name = "color-scheme", content = "dark light" }),
h.title()({
"luau software",
}),
h.link({
rel = "icon",
href = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAGFBMVEUAov4Aov4Aof4Aov7l8/6l0v5ctP4Fof7s4QukAAAABHRSTlMBRY/MU7dEywAAALZJREFUeNqNk0EOwyAMBGvs3f3/j1sXWkKDK+biQ0YwisXjFPdm/76bJL0cq4VBdVBTp5RcSS2ZbqxJTQVe3QBwEfRLJJRakcCPYEUCIqkTugCpVQkEqoQJJdn5XwB1Y7khtoJ9BYR2zEUAkkBxmzBuYOQkuEnIbwJyAgFxSWgpAATSec8QMRM8ZYIIBIGUIewW0c9g9JkJA7N2lSKTx6on00nrsupC4txkLdWPzNxrYR7kp8/+CUlvDvtDdoJIAAAAAElFTkSuQmCC",
}),
h.link({
rel = "stylesheet",
href = "https://cdn.jsdelivr.net/npm/@picocss/pico@2.1.1/css/pico.classless.min.css",
}),
}),
h.body()({
h.header()({
h.h1()({
"luau software",
}),
h.p()({
"my personal website. i make software using luau. this website is written in luau.",
}),
}),
h.main()({
h.p()({
"you can find most of what you're looking for here:",
}),
h.div({ style = "display: flex; flex-direction: row; flex-wrap: wrap; column-gap: 10px;" })({
h.article()({
h.header()({
"my git (including all my foss work)",
}),
h.a({ href = 'https://git.luau.software/cyclic' })({
'profile',
}),
}),
h.article()({
h.header()({
"my email",
}),
h.p()({
'cyclic@luau.software',
}),
}),
}),
})
}),
})