aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRosa <rosaontheweb@proton.me>2026-06-15 15:42:25 -0400
committerRosa <rosaontheweb@proton.me>2026-06-15 15:42:25 -0400
commit0305c874bbc10c549ba719491c42c97225b19eeb (patch)
tree2698993d51f78e5cd7f48c7b1a451c38fa1c8432 /src
parent600e21fa5c4e232f135b7728b111f6268f95a71f (diff)
remove /join for the time beingHEADmain
Diffstat (limited to '')
-rw-r--r--src/cgi/submit.zig40
-rw-r--r--src/pages/index.html4
-rw-r--r--src/pages/join/index.html73
-rw-r--r--src/templates/page.html1
4 files changed, 1 insertions, 117 deletions
diff --git a/src/cgi/submit.zig b/src/cgi/submit.zig
deleted file mode 100644
index b94c546..0000000
--- a/src/cgi/submit.zig
+++ /dev/null
@@ -1,40 +0,0 @@
-const std = @import("std");
-
-pub fn main(init: std.process.Init) !void {
- const query_string = init.environ_map.get("QUERY_STRING").?;
- var decoded = try init.gpa.alloc(u8, query_string.len);
- @memcpy(decoded, query_string);
- decoded = std.Uri.percentDecodeInPlace(decoded);
- std.mem.replaceScalar(u8, decoded, '+', ' ');
-
- // Parse the query string.
- var args_map = std.StringHashMap([]const u8).init(init.gpa);
- defer args_map.deinit();
- var args = std.mem.splitScalar(u8, decoded, '&');
- while (args.next()) |arg| {
- const arg_and_value = std.mem.cutScalar(u8, arg, '=').?;
- try args_map.put(arg_and_value[0], arg_and_value[1]);
- }
-
- const out_path = init.environ_map.get("OUT_PATH").?;
- const out_file = try std.Io.Dir.createFileAbsolute(init.io, out_path, .{ .truncate = false });
- defer out_file.close(init.io);
- const current_size = (try out_file.stat(init.io)).size;
- var buf: [128]u8 = undefined;
- var writer = out_file.writer(init.io, &buf);
- if (current_size == 0) {
- try writer.interface.print("name,email,website,about\r\n", .{});
- } else {
- try writer.seekTo(current_size);
- }
- try writer.interface.print("{s},{s},{s},{s}\r\n", .{
- args_map.get("name").?,
- args_map.get("email").?,
- args_map.get("website").?,
- args_map.get("about").?,
- });
- try writer.interface.flush();
-
- // redirect back to the homepage
- try std.Io.File.stdout().writeStreamingAll(init.io, "HTTP/1.0 302 Found\r\nLocation: https://eviltransgenders.club/join\r\n\r\n");
-}
diff --git a/src/pages/index.html b/src/pages/index.html
index 231cc02..3d160b4 100644
--- a/src/pages/index.html
+++ b/src/pages/index.html
@@ -16,9 +16,7 @@ home
is welcome! :)
</p>
<p>
- If you'd like to chat about tech or video games or being queer, or if you're
- perhaps interested in accessing our <a href="/services">services</a>, you
- can <a href="/join">ask to join</a>.
+ There currently isn't a system in place for accepting new members :(
</p>
</section>
</main>
diff --git a/src/pages/join/index.html b/src/pages/join/index.html
deleted file mode 100644
index 9f5b08a..0000000
--- a/src/pages/join/index.html
+++ /dev/null
@@ -1,73 +0,0 @@
-<!--: extends page.html -->
-<!--: replace title -->
-join
-<!--: endreplace -->
-
-<!--: replace extraHead -->
-<style>
- form {
- max-width: 50%;
- }
-
- form > label, fieldset, input[type="submit"] {
- display: block;
- margin-bottom: 5px;
- }
-
- label:has(> input:invalid)::before {
- color: var(--red);
- content: "!";
- }
-
- label:has(> input:required, textarea:required)::after {
- color: var(--red);
- content: "*";
- }
-
- input, textarea {
- appearance: none;
- background-color: black;
- border: 2px solid white;
- color: white;
- font-family: inherit;
- }
-
- textarea {
- font-size: inherit;
- vertical-align: 0;
- }
-
- input[type="submit"]:hover {
- background-color: white;
- color: white;
- }
-</style>
-<!--: endreplace -->
-
-<!--: replace body -->
-<main>
- <form action="submit">
- <header>
- <h2>Join the club.</h2>
- <p class="subtle">Required fields are marked with an asterisk.</p>
- </header>
-
- <label>
- Name: <input name="name" type="text" required />
- </label>
- <label>
- URL of your personal website:
- <input name="website" type="url" />
- </label>
- <label>
- Tell us a bit about yourself:
- <textarea name="about" required></textarea>
- </label>
- <label>
- Enter an e-mail address:
- <input name="email" type="email" required />
- </label>
- <input type="submit" value="Done" />
- </form>
-</main>
-<!--: endreplace -->
diff --git a/src/templates/page.html b/src/templates/page.html
index 40024c9..099a391 100644
--- a/src/templates/page.html
+++ b/src/templates/page.html
@@ -6,7 +6,6 @@
<li><a href="/">home</a></li>
<li><a href="/members">members</a></li>
<li><a href="/services">services</a></li>
- <li><a href="/join">join!</a></li>
</ul>
</nav>
<!--: endreplace -->