90 lines
2.9 KiB
HTML
90 lines
2.9 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<title>GreenCoast — Client</title>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1"/>
|
|
<link rel="stylesheet" href="./styles.css"/>
|
|
<!-- Optional: set your API base explicitly -->
|
|
<!-- <meta name="gc-api-base" content="https://api-gc.fullmooncyberworks.com"> -->
|
|
<style>
|
|
#flash{position:fixed;right:12px;bottom:12px;background:#0b1222;border:1px solid #1f2937;color:#e5e7eb;
|
|
padding:.55rem .7rem;border-radius:.5rem;box-shadow:0 6px 18px rgba(0,0,0,.35);display:none;z-index:9999}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header class="topbar">
|
|
<div class="brand">GreenCoast</div>
|
|
<div class="actions">
|
|
<button id="signIn" type="button">Sign in (device key)</button>
|
|
<button id="discordStart" type="button">Discord</button>
|
|
<button id="panic" type="button">Panic wipe</button>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="container">
|
|
<section class="card">
|
|
<h2>Connection</h2>
|
|
<div class="row">
|
|
<label>Shard URL</label>
|
|
<input id="shardUrl" placeholder="https://api-gc.fullmooncyberworks.com"/>
|
|
</div>
|
|
<div class="row">
|
|
<label>Bearer</label>
|
|
<input id="bearer" placeholder="gc2 token"/>
|
|
</div>
|
|
<div class="row">
|
|
<label>Passphrase</label>
|
|
<input id="passphrase" type="password" placeholder="••••••••"/>
|
|
</div>
|
|
<button id="saveConn" type="button">Save</button>
|
|
<div id="health" class="muted"></div>
|
|
<p class="muted">
|
|
We do not store PII or logs. Third-party SSO is optional and not endorsed for security.
|
|
</p>
|
|
</section>
|
|
|
|
<section class="card">
|
|
<h2>Your profile</h2>
|
|
<div class="profile">
|
|
<img id="avatar" alt="avatar" width="64" height="64"/>
|
|
<div class="profile-meta">
|
|
<div><code id="fp">(pseudonymous)</code></div>
|
|
<div class="muted">Avatar is derived locally from your device key.</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="card">
|
|
<h2>Compose</h2>
|
|
<div class="row">
|
|
<label>Visibility</label>
|
|
<select id="visibility">
|
|
<option value="public">Public (plaintext)</option>
|
|
<option value="private">Private (E2EE via passphrase)</option>
|
|
</select>
|
|
</div>
|
|
<div class="row">
|
|
<label>Title</label>
|
|
<input id="title" placeholder="Optional title"/>
|
|
</div>
|
|
<div class="row">
|
|
<label>Body</label>
|
|
<textarea id="body" rows="6" placeholder="Write your post..."></textarea>
|
|
</div>
|
|
<button id="publish" type="button">Publish</button>
|
|
<div id="publishStatus" class="muted"></div>
|
|
</section>
|
|
|
|
<section class="card">
|
|
<h2>Posts (live index)</h2>
|
|
<div id="posts"></div>
|
|
</section>
|
|
</div>
|
|
|
|
<div id="flash"></div>
|
|
|
|
<script type="module" src="./app.js"></script>
|
|
</body>
|
|
</html>
|