From 8fec2ce4c2e9652683f6db61aea82180b5cefc4e Mon Sep 17 00:00:00 2001 From: Cosmos Admin Date: Sat, 7 Nov 2026 00:30:41 +0530 Subject: [PATCH] 3d-site page --- main.go | 6 + templates/forgot-password.html | 1091 ++++++++++---- templates/git.html | 1542 +++++++++++++++----- templates/index.html | 2486 +++++++++++++++----------------- templates/login.html | 864 ++++++++--- templates/oort.html | 1629 +++++++++++++++++---- templates/share.html | 585 +++++--- templates/signup.html | 1109 ++++++++++---- templates/three.min.js | 6 + 9 files changed, 6427 insertions(+), 2891 deletions(-) create mode 100644 templates/three.min.js diff --git a/main.go b/main.go index 42dcaef..c305b73 100644 --- a/main.go +++ b/main.go @@ -877,6 +877,12 @@ func main() { w.Header().Set("Content-Type", "text/css; charset=utf-8") w.Write(data) }) + mux.HandleFunc("/three.min.js", func(w http.ResponseWriter, r *http.Request) { + data, _ := templatesFS.ReadFile("templates/three.min.js") + w.Header().Set("Content-Type", "application/javascript; charset=utf-8") + w.Header().Set("Cache-Control", "public, max-age=31536000, immutable") + w.Write(data) + }) RegisterS3ConsoleRoutes(mux) RegisterOrbitRoutes(mux) mux.HandleFunc("/oort", func(w http.ResponseWriter, r *http.Request) { handleServicePage(w, r, "oort") }) diff --git a/templates/forgot-password.html b/templates/forgot-password.html index ec1c921..3cec319 100644 --- a/templates/forgot-password.html +++ b/templates/forgot-password.html @@ -3,110 +3,534 @@ -{{if eq .Step "reset"}}Set New Password{{else if eq .Step "done"}}Password Reset{{else}}Forgot Password{{end}} — Cosmos Storage - +{{if eq .Step "reset"}}Set New Password{{else if eq .Step "done"}}Password Reset{{else}}Forgot Password{{end}} — Cosmos {{.Service}} + - + - - - + + + + +
- ← Back to login - SECURE CHANNEL · {{.Service}} + ← Back to login +
+ + SECURE CHANNEL · {{.Service}} +
-
-
+
+
- - Cosmos Oort + + Cosmos {{.Service}} {{/* ─── REQUEST EMAIL ─── */}} @@ -115,25 +539,27 @@ a:focus-visible,button:focus-visible{outline:1px solid rgba(238,243,248,.55);out {{if .Sent}}
- + + + +
-
Check your inbox
-
If that email is registered, we've sent a reset link. It expires in 1 hour. Check your spam folder if you don't see it.
+

Check your inbox

+

If that email is registered, we've sent a reset link. It expires in 1 hour. Check your spam folder if you don't see it.

Try a different email {{else}} -
Forgot password?
-
Enter your account email and we'll send a secure reset link valid for 1 hour.
+

Forgot password?

+

Enter your account email and we'll send a secure reset link valid for 1 hour.

-
- - +
+ +
@@ -146,8 +572,8 @@ a:focus-visible,button:focus-visible{outline:1px solid rgba(238,243,248,.55);out {{/* ─── RESET PASSWORD FORM ─── */}} {{else if eq .Step "reset"}} -
Set new password
-
{{if .Email}}Resetting password for {{.Email}}{{else}}Choose a strong new password{{end}}
+

Set new password

+

{{if .Email}}Resetting password for {{.Email}}{{else}}Choose a strong new password{{end}}

{{if .Error}}
{{.Error}}
@@ -156,14 +582,16 @@ a:focus-visible,button:focus-visible{outline:1px solid rgba(238,243,248,.55);out
-
- +
+
- +
@@ -176,14 +604,16 @@ a:focus-visible,button:focus-visible{outline:1px solid rgba(238,243,248,.55);out
-
- +
+
- +
@@ -197,11 +627,13 @@ a:focus-visible,button:focus-visible{outline:1px solid rgba(238,243,248,.55);out
- + + +
-
Password updated!
-
Your password has been changed successfully. You can now sign in with your new password.
+

Password updated!

+

Your password has been changed successfully. You can now sign in with your new password.

Continue to Sign In {{/* ─── EXPIRED ─── */}} @@ -209,11 +641,15 @@ a:focus-visible,button:focus-visible{outline:1px solid rgba(238,243,248,.55);out
- + + + + +
-
Link expired
-
This reset link has expired. Links are only valid for 1 hour. Please request a new one.
+

Link expired

+

This reset link has expired. Links are only valid for 1 hour. Please request a new one.

Request New Link {{/* ─── INVALID / USED ─── */}} @@ -221,11 +657,15 @@ a:focus-visible,button:focus-visible{outline:1px solid rgba(238,243,248,.55);out
- + + + + +
-
Invalid link
-
This reset link is invalid or has already been used. Please request a fresh password reset.
+

Invalid link

+

This reset link is invalid or has already been used. Please request a fresh password reset.

Request New Link {{end}} @@ -236,157 +676,294 @@ a:focus-visible,button:focus-visible{outline:1px solid rgba(238,243,248,.55);out
51.4778° N · 0.0015° W - Self-hosted & private + Zero Cloud Leakage + Sovereign Enclave
+ + diff --git a/templates/git.html b/templates/git.html index 0e43b1d..ffffd8d 100644 --- a/templates/git.html +++ b/templates/git.html @@ -3,379 +3,1255 @@ -Source Code | Cosmos - +Forge — Sovereign Git Version Control · Cosmos + - + + + + + - + + -
-
-
FORGE CLUSTER · INNER SYSTEMPROTOCOL GIT/2 · SSH READY
-
00:00:00 UTC·ALL SYSTEMS NOMINAL
-
-
MODULE 01 · SOURCE CONTROL
-

Source Code.

-

Enterprise Git repository management. Secure, fast, and fully integrated.

- -
-
SCROLL
-
- -