From 7f58741cfea43780fcd8702afffeaea6cd322029 Mon Sep 17 00:00:00 2001 From: Rosa Date: Wed, 27 May 2026 01:51:11 -0400 Subject: storing progress --- .gitignore | 3 ++- build.zig | 12 ++++++------ build.zig.zon | 12 ++++++++++++ src/pages/index.html | 5 ++++- src/templates/base.html | 36 +++++++++++++++++++++++++----------- 5 files changed, 49 insertions(+), 19 deletions(-) create mode 100644 build.zig.zon diff --git a/.gitignore b/.gitignore index e73df20..7e295f8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /.direnv /.envrc /html-out -/.zig-cache *.tar.gz +/.zig-cache +/zig-pkg diff --git a/build.zig b/build.zig index c4a149f..5db4634 100644 --- a/build.zig +++ b/build.zig @@ -1,4 +1,5 @@ const std = @import("std"); +const webgen = @import("webgen"); pub fn build(b: *std.Build) void { const generate_html = b.addExecutable(.{ @@ -11,12 +12,9 @@ pub fn build(b: *std.Build) void { const run_generate_html = b.addRunArtifact(generate_html); run_generate_html.setCwd(b.path("")); // make sure we always run from buildroot - b.getInstallStep().dependOn(&run_generate_html.step); - const bundle_html = b.addSystemCommand(&[_][]const u8{ "tar", "--exclude=pages.tar.gz", "-czvf", "html-out/pages.tar.gz", "html-out" }); - const run_bundle_html = b.step("bundle", "Creates a tarball of the HTML output"); - bundle_html.step.dependOn(b.getInstallStep()); - run_bundle_html.dependOn(&bundle_html.step); + bundle_html.step.dependOn(&run_generate_html.step); + b.getInstallStep().dependOn(&bundle_html.step); const serve = b.addSystemCommand(&[_][]const u8{ "lighttpd", "-Df", "util/lighttpd.conf" }); const run_server = b.step("serve", "Run a local test server"); @@ -24,5 +22,7 @@ pub fn build(b: *std.Build) void { run_server.dependOn(&serve.step); const publish_to_prod = b.step("publish", "Publish the website to production"); - _ = publish_to_prod; + publish_to_prod.dependOn(b.getInstallStep()); + + b.getInstallStep().dependOn(&webgen.installHtmlStep(b).step); } diff --git a/build.zig.zon b/build.zig.zon new file mode 100644 index 0000000..7e1ce7b --- /dev/null +++ b/build.zig.zon @@ -0,0 +1,12 @@ +.{ + .name = .www_eviltransgenders_club, + .version = "0.16.0", + .dependencies = .{ + .webgen = .{ + .url = "/home/rosa/src/web/webgen", + .hash = "webgen-0.1.0-XDIIqScA-xKBcPSejmazf-afVXygLblU9anFQtVljBQd", + }, + }, + .paths = .{""}, + .fingerprint = 0xccaf7641aa454b2f, +} diff --git a/src/pages/index.html b/src/pages/index.html index c69a23e..4cb32f3 100644 --- a/src/pages/index.html +++ b/src/pages/index.html @@ -1 +1,4 @@ -

blah

+
+

wowowowow

+

aaaaa

+
diff --git a/src/templates/base.html b/src/templates/base.html index 0da5dd2..4f6b0ef 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -14,30 +14,41 @@ font-family: monospace; } - h1 { + header h1 { color: var(--trans-blue); text-align: center; } - .trans-shadow { - text-shadow: 1px 1px var(--trans-pink), 2px 2px white, 3px 3px var(--trans-pink), 4px 4px var(--trans-blue); + + a { + color: #fff; } - .subtitle { - text-align: center; + a:hover { + background-color: #fff; + color: #000; + } + + a[rel="external"]:after { + content: " (ext)"; } - .main-navigation { + main { + border: 2px solid #fff; + margin-left: 15%; + margin-right: 15%; + } + + #main-navigation { text-align: center; } - a { - color: #fff; + .trans-shadow { + text-shadow: 1px 1px var(--trans-pink), 2px 2px white, 3px 3px var(--trans-pink), 4px 4px var(--trans-blue); } - a:hover { - background-color: #fff; - color: #000; + .subtitle { + text-align: center; } @@ -45,6 +56,9 @@

the evil transgenders club

+
{{body}} -- cgit v1.3.1