aboutsummaryrefslogtreecommitdiff
path: root/174bg/website
diff options
context:
space:
mode:
authorAlex Pooley (@zuedev) <zuedev@gmail.com>2026-07-26 13:16:16 +0100
committerAlex Pooley (@zuedev) <zuedev@gmail.com>2026-07-26 13:16:16 +0100
commit1f1527de088096239c4915dd8421dd49b2c2aadb (patch)
treef2538aad5284bd6fabf86072b0b54a2eb900b84e /174bg/website
parenta8bb2d67acb2394b6ba67df19f162031aabc43cf (diff)
downloadunnamed-group-1f1527de088096239c4915dd8421dd49b2c2aadb.tar
unnamed-group-1f1527de088096239c4915dd8421dd49b2c2aadb.tar.gz
unnamed-group-1f1527de088096239c4915dd8421dd49b2c2aadb.tar.bz2
unnamed-group-1f1527de088096239c4915dd8421dd49b2c2aadb.tar.xz
unnamed-group-1f1527de088096239c4915dd8421dd49b2c2aadb.zip
better org
Diffstat (limited to '174bg/website')
-rw-r--r--174bg/website/.gitignore1
-rw-r--r--174bg/website/assets/index.html65
-rw-r--r--174bg/website/assets/logo.pngbin0 -> 47784 bytes
-rw-r--r--174bg/website/worker.js45
-rw-r--r--174bg/website/wrangler.jsonc28
5 files changed, 139 insertions, 0 deletions
diff --git a/174bg/website/.gitignore b/174bg/website/.gitignore
new file mode 100644
index 0000000..0460e34
--- /dev/null
+++ b/174bg/website/.gitignore
@@ -0,0 +1 @@
+/.wrangler/ \ No newline at end of file
diff --git a/174bg/website/assets/index.html b/174bg/website/assets/index.html
new file mode 100644
index 0000000..2543ad5
--- /dev/null
+++ b/174bg/website/assets/index.html
@@ -0,0 +1,65 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>174th Battle Group - Star Citizen Military Organisation</title>
+ <style>
+ body {
+ margin: 1rem;
+ max-width: 666px;
+ }
+
+ p {
+ text-align: justify;
+ }
+
+ a {
+ color: red;
+ text-decoration: none;
+ }
+
+ #header {
+ display: flex;
+ align-items: center;
+ margin-bottom: 1rem;
+ }
+
+ #logo {
+ width: 100px;
+ height: auto;
+ }
+ </style>
+</head>
+<body>
+ <div id="header">
+ <img id="logo" src="logo.png">
+ <div style="margin-left: 1rem; display: flex; flex-direction: column; justify-content: center; height: 100px;">
+ <h1 style="margin: 0;">174th Battle Group</h1>
+ <h2 style="color: rgb(158, 0, 0); margin: 0;">The "Red Right Hand" of the UEE</h2>
+ </div>
+ </div>
+ <!-- elevator pitch -->
+ <p>
+ We're a Star Citizen organisation that operates in the 'verse in a structured and organized manner. With a focus on small-team tactics and distributed operations, we aim to provide a rich and varied experience for our members.
+ </p>
+ <!-- ops times and attendance -->
+ <p>
+ Our bigger sessions are held on Saturdays around 17-18:00 UTC and usually last for 4 hours. We also have smaller sessions during the week, utilizing an "on call" system to coordinate with members. We expect our members to attend at least one bigger session per two weeks, but we understand that real life comes first and will work with members to accommodate their schedules.
+ </p>
+ <!-- entry requirements and how to join -->
+ <p>
+ We welcome anyone who is interested in joining our organisation, regardless of their experience level. However, we do have some requirements for new members. We expect our members to be respectful and professional in their interactions with others, and to adhere to our code of conduct. We also require that our members either have a working knowledge of Star Citizen and its mechanics or a willingness to learn and improve their skills.
+ </p>
+ <!-- final pitch to join -->
+ <p>
+ If you're interested in joining the 174th Battle Group, please reach out to us through our Discord server linked below. We look forward to welcoming you to our organisation and working together to achieve our goals in the 'verse.
+ </p>
+
+
+ <!-- links -->
+ <p>
+ <b>Discord:</b> <a href="https://174bg.net/discord" target="_blank">174bg.net/discord</a>
+ </p>
+</body>
+</html> \ No newline at end of file
diff --git a/174bg/website/assets/logo.png b/174bg/website/assets/logo.png
new file mode 100644
index 0000000..082d182
--- /dev/null
+++ b/174bg/website/assets/logo.png
Binary files differ
diff --git a/174bg/website/worker.js b/174bg/website/worker.js
new file mode 100644
index 0000000..d5e2753
--- /dev/null
+++ b/174bg/website/worker.js
@@ -0,0 +1,45 @@
+const configuration = {
+ redirects: [
+ { from: "/discord", to: "https://discord.gg/RGgSfVj4DD" },
+ { from: "/handbook", to: "https://handbook.174bg.net" },
+ { from: "/docs", to: "https://handbook.174bg.net" },
+ { from: "/manager", to: "https://manager.174bg.net" },
+ { from: "/login", to: "https://manager.174bg.net" },
+ { from: "/database", to: "https://db.174bg.net" },
+ { from: "/db", to: "https://db.174bg.net" },
+ ],
+};
+
+export default {
+ /**
+ * Fetch event handler, this function will be called whenever a request is made to the worker. The function will parse the request and return a response based on the request path.
+ *
+ * @param {Request} request - the incoming request object
+ * @param {Environment} environment - the environment object
+ * @param {Context} context - the context object
+ *
+ * @returns {Response} a new Response object
+ */
+ async fetch(request, environment, context) {
+ const url = new URL(request.url);
+
+ if (configuration.redirects) {
+ for (const redirect of configuration.redirects) {
+ if (
+ url.pathname === redirect.from ||
+ url.pathname === redirect.from + "/"
+ ) {
+ return Response.redirect(redirect.to, 301);
+ }
+ }
+ }
+
+ if (url.pathname.startsWith("/api")) {
+ return new Response("Hello from the API!", {
+ headers: { "Content-Type": "text/plain" },
+ });
+ }
+
+ return environment.ASSETS.fetch(new Request(url, request));
+ }
+}; \ No newline at end of file
diff --git a/174bg/website/wrangler.jsonc b/174bg/website/wrangler.jsonc
new file mode 100644
index 0000000..d9cb044
--- /dev/null
+++ b/174bg/website/wrangler.jsonc
@@ -0,0 +1,28 @@
+{
+ "$schema": "https://esm.sh/wrangler@4.90.1/config-schema.json",
+ "compatibility_flags": ["nodejs_compat"],
+ "compatibility_date": "2026-03-29",
+ "account_id": "424d9dabd39849818d9e22366a20e4d6",
+ "name": "www-174bg-net",
+ "main": "./worker.js",
+ "assets": {
+ "directory": "./assets/",
+ "not_found_handling": "single-page-application",
+ "binding": "ASSETS",
+ "run_worker_first": true,
+ },
+ "minify": true,
+ "observability": {
+ "enabled": true,
+ },
+ "routes": [
+ {
+ "pattern": "174bg.net",
+ "custom_domain": true,
+ },
+ {
+ "pattern": "www.174bg.net",
+ "custom_domain": true,
+ },
+ ],
+}