Rebrand to Radical Party identity
Match theradicalparty.com brand pulled from sibling apps: - signature red #FF2D55 (+ hot pink #FF6B82) on warm near-black #0B0B09, cream #F0EDE6 - Syne (display/brand/headings) + IBM Plex Mono (recovery/linking codes) via Google Fonts - warm red/pink/gold aurora backdrop; red accent glows, focus rings, bubbles throughout - auth wordmark in Syne + 'A Radical Party Project' tag + 'Vibe, Vote, Veto' tagline - red lock icon, updated manifest name/description/theme, theme-color #0B0B09 - SW cache v6->v7 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
67367d5e83
commit
3d9f712867
5 changed files with 63 additions and 48 deletions
|
|
@ -1,8 +1,7 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<rect width="512" height="512" rx="112" fill="#0b141a"/>
|
||||
<path d="M256 96c-79.5 0-144 58.7-144 131 0 41 20.7 77.6 53.2 101.6L152 416l72.6-38.1c10.1 2 20.6 3.1 31.4 3.1 79.5 0 144-58.7 144-131S335.5 96 256 96z" fill="#00a884"/>
|
||||
<path d="M256 168c-30.9 0-56 22.4-56 50 0 12.2 4.9 23.4 13 32v34l31-19.2c3.9.8 8 1.2 12 1.2 30.9 0 56-22.4 56-50s-25.1-48-56-48z" fill="#0b141a" opacity="0"/>
|
||||
<g fill="#04140f">
|
||||
<rect width="512" height="512" rx="112" fill="#0B0B09"/>
|
||||
<path d="M256 96c-79.5 0-144 58.7-144 131 0 41 20.7 77.6 53.2 101.6L152 416l72.6-38.1c10.1 2 20.6 3.1 31.4 3.1 79.5 0 144-58.7 144-131S335.5 96 256 96z" fill="#FF2D55"/>
|
||||
<g fill="#0B0B09">
|
||||
<rect x="214" y="232" width="84" height="60" rx="10"/>
|
||||
<path d="M232 232v-18a24 24 0 0 1 48 0v18h-16v-18a8 8 0 0 0-16 0v18z"/>
|
||||
</g>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 650 B After Width: | Height: | Size: 489 B |
|
|
@ -3,28 +3,35 @@
|
|||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
<meta name="theme-color" content="#0a0a14" />
|
||||
<title>Cipher — encrypted messaging</title>
|
||||
<meta name="theme-color" content="#0B0B09" />
|
||||
<title>Cipher — a Radical Party project</title>
|
||||
<link rel="manifest" href="/manifest.webmanifest" />
|
||||
<link rel="icon" href="/icons/icon.svg" type="image/svg+xml" />
|
||||
<link rel="apple-touch-icon" href="/icons/icon.svg" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=IBM+Plex+Mono:wght@400;500;700&display=swap" rel="stylesheet" />
|
||||
<style>
|
||||
:root {
|
||||
--bg: #0a0a14;
|
||||
--bg-2: #0d0d1a;
|
||||
--glass: rgba(28, 28, 48, 0.55);
|
||||
--glass-2: rgba(40, 40, 66, 0.5);
|
||||
--stroke: rgba(255, 255, 255, 0.08);
|
||||
--stroke-2: rgba(255, 255, 255, 0.14);
|
||||
--text: #eef0f8;
|
||||
--muted: #9aa0c0;
|
||||
--accent: #7c5cff; /* violet */
|
||||
--accent-2: #22d3ee; /* cyan */
|
||||
--accent-grad: linear-gradient(135deg, #7c5cff, #22d3ee);
|
||||
--out-grad: linear-gradient(135deg, #6d4bff, #3b2ea8);
|
||||
--danger: #ff6b81;
|
||||
/* Radical Party identity: signature red on warm near-black, cream text. */
|
||||
--bg: #0B0B09;
|
||||
--bg-2: #12100d;
|
||||
--glass: rgba(30, 26, 24, 0.60);
|
||||
--glass-2: rgba(48, 42, 38, 0.50);
|
||||
--stroke: rgba(240, 237, 230, 0.09);
|
||||
--stroke-2: rgba(240, 237, 230, 0.16);
|
||||
--text: #F0EDE6;
|
||||
--muted: #9c948a;
|
||||
--accent: #FF2D55; /* Radical red */
|
||||
--accent-2: #FF6B82; /* hot pink */
|
||||
--gold: #c9a84c;
|
||||
--accent-grad: linear-gradient(135deg, #FF2D55, #FF6B82);
|
||||
--out-grad: linear-gradient(135deg, #FF2D55, #c81e3a);
|
||||
--danger: #ff6b82;
|
||||
--radius: 18px;
|
||||
--shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
|
||||
--shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
|
||||
--font-display: 'Syne', system-ui, sans-serif;
|
||||
--font-mono: 'IBM Plex Mono', ui-monospace, "SF Mono", Menlo, monospace;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; height: 100%; }
|
||||
|
|
@ -37,9 +44,9 @@
|
|||
body::before {
|
||||
content: ""; position: fixed; inset: -20%; z-index: -2;
|
||||
background:
|
||||
radial-gradient(40% 40% at 20% 25%, rgba(124, 92, 255, 0.28), transparent 60%),
|
||||
radial-gradient(45% 45% at 82% 20%, rgba(34, 211, 238, 0.20), transparent 60%),
|
||||
radial-gradient(50% 50% at 60% 90%, rgba(236, 72, 153, 0.16), transparent 60%);
|
||||
radial-gradient(40% 40% at 20% 25%, rgba(255, 45, 85, 0.30), transparent 60%),
|
||||
radial-gradient(45% 45% at 82% 20%, rgba(255, 107, 130, 0.20), transparent 60%),
|
||||
radial-gradient(50% 50% at 60% 90%, rgba(201, 168, 76, 0.15), transparent 60%);
|
||||
filter: blur(30px); animation: drift 22s ease-in-out infinite alternate;
|
||||
}
|
||||
body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(120% 120% at 50% 0%, transparent 40%, rgba(0,0,0,0.55)); }
|
||||
|
|
@ -48,7 +55,7 @@
|
|||
100% { transform: translate(-4%, 3%) scale(1.12); }
|
||||
}
|
||||
#app { height: 100dvh; }
|
||||
::selection { background: rgba(124,92,255,.4); }
|
||||
::selection { background: rgba(255,45,85,.4); }
|
||||
|
||||
/* scrollbars */
|
||||
::-webkit-scrollbar { width: 8px; height: 8px; }
|
||||
|
|
@ -70,19 +77,27 @@
|
|||
}
|
||||
.auth-card::before {
|
||||
content: ""; position: absolute; inset: 0; padding: 1px; border-radius: 26px;
|
||||
background: linear-gradient(135deg, rgba(124,92,255,.6), rgba(34,211,238,.5), transparent 60%);
|
||||
background: linear-gradient(135deg, rgba(255,45,85,.6), rgba(201,168,76,.45), transparent 60%);
|
||||
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
||||
-webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
|
||||
}
|
||||
.auth-card h1 {
|
||||
margin: 4px 0 0; text-align: center; font-size: 34px; letter-spacing: .5px; font-weight: 800;
|
||||
margin: 4px 0 0; text-align: center; font-size: 42px; letter-spacing: -1px; font-weight: 800;
|
||||
font-family: var(--font-display);
|
||||
background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
|
||||
}
|
||||
.tagline { margin: 0 0 6px; text-align: center; color: var(--muted); font-size: 13px; }
|
||||
.brand-tag {
|
||||
align-self: center; margin-top: -4px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 2px;
|
||||
text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent);
|
||||
padding: 3px 9px; border-radius: 999px; opacity: .9;
|
||||
}
|
||||
/* Syne display type for headings + brand */
|
||||
.modal-title, .empty-title { font-family: var(--font-display); letter-spacing: -.3px; }
|
||||
.auth-card input {
|
||||
padding: 13px 15px; border-radius: 13px; border: 1px solid var(--stroke); background: rgba(0,0,0,.25); color: var(--text); font-size: 15px; transition: border .2s, box-shadow .2s;
|
||||
}
|
||||
.auth-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.22); }
|
||||
.auth-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,45,85,.22); }
|
||||
.auth-err, .modal-err { color: var(--danger); font-size: 13px; min-height: 16px; text-align: center; }
|
||||
.auth-divider { text-align: center; color: var(--muted); font-size: 11px; margin-top: 6px; text-transform: uppercase; letter-spacing: 2px; opacity: .7; }
|
||||
.link-btn { background: transparent; color: var(--accent-2); padding: 5px; font-size: 14px; font-weight: 500; }
|
||||
|
|
@ -90,9 +105,9 @@
|
|||
|
||||
button.primary {
|
||||
padding: 13px 16px; border-radius: 13px; background: var(--accent-grad); color: #fff; font-weight: 700;
|
||||
box-shadow: 0 8px 24px rgba(124,92,255,.35);
|
||||
box-shadow: 0 8px 24px rgba(255,45,85,.35);
|
||||
}
|
||||
button.primary:hover { box-shadow: 0 10px 30px rgba(124,92,255,.5); transform: translateY(-1px); }
|
||||
button.primary:hover { box-shadow: 0 10px 30px rgba(255,45,85,.5); transform: translateY(-1px); }
|
||||
button.ghost {
|
||||
padding: 13px 16px; border-radius: 13px; background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--stroke);
|
||||
}
|
||||
|
|
@ -118,14 +133,14 @@
|
|||
flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
|
||||
padding: 10px; border-radius: 13px; background: rgba(255,255,255,.05); border: 1px solid var(--stroke); color: var(--text); font-weight: 600; font-size: 14px;
|
||||
}
|
||||
.pill:hover { background: rgba(124,92,255,.16); border-color: rgba(124,92,255,.5); }
|
||||
.pill:hover { background: rgba(255,45,85,.16); border-color: rgba(255,45,85,.5); }
|
||||
.pill span { font-size: 16px; line-height: 1; }
|
||||
|
||||
.chat-list { overflow-y: auto; flex: 1; padding: 6px; }
|
||||
.list-empty { color: var(--muted); text-align: center; padding: 30px 10px; font-size: 14px; }
|
||||
.chat-item { display: flex; gap: 13px; padding: 11px 12px; cursor: pointer; align-items: center; border-radius: 15px; transition: background .18s; }
|
||||
.chat-item:hover { background: rgba(255,255,255,.05); }
|
||||
.chat-item.active { background: rgba(124,92,255,.18); box-shadow: inset 0 0 0 1px rgba(124,92,255,.4); }
|
||||
.chat-item.active { background: rgba(255,45,85,.18); box-shadow: inset 0 0 0 1px rgba(255,45,85,.4); }
|
||||
.chat-meta { min-width: 0; }
|
||||
.chat-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.chat-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
|
|
@ -140,7 +155,7 @@
|
|||
/* ---------- main pane ---------- */
|
||||
.main { display: flex; flex-direction: column; min-height: 0; }
|
||||
.empty { margin: auto; text-align: center; padding: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
|
||||
.empty-badge { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; font-size: 34px; background: var(--accent-grad); box-shadow: 0 12px 40px rgba(124,92,255,.4); animation: float 4s ease-in-out infinite; }
|
||||
.empty-badge { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; font-size: 34px; background: var(--accent-grad); box-shadow: 0 12px 40px rgba(255,45,85,.4); animation: float 4s ease-in-out infinite; }
|
||||
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
|
||||
.empty-title { font-weight: 700; font-size: 17px; }
|
||||
.empty-sub { color: var(--muted); font-size: 14px; max-width: 280px; }
|
||||
|
|
@ -158,7 +173,7 @@
|
|||
}
|
||||
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
|
||||
.bubble.in { background: var(--glass-2); border: 1px solid var(--stroke); align-self: flex-start; border-bottom-left-radius: 5px; }
|
||||
.bubble.out { background: var(--out-grad); align-self: flex-end; border-bottom-right-radius: 5px; box-shadow: 0 4px 16px rgba(109,75,255,.3); }
|
||||
.bubble.out { background: var(--out-grad); align-self: flex-end; border-bottom-right-radius: 5px; box-shadow: 0 4px 16px rgba(255,45,85,.3); }
|
||||
.bubble .sender { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
|
||||
.bubble .time { font-size: 10.5px; color: rgba(255,255,255,.55); text-align: right; margin-top: 3px; }
|
||||
.media-img { max-width: 260px; border-radius: 12px; display: block; }
|
||||
|
|
@ -166,10 +181,10 @@
|
|||
|
||||
.composer { display: flex; gap: 10px; padding: 14px 16px; align-items: center; border-top: 1px solid var(--stroke); background: rgba(255,255,255,.02); }
|
||||
.composer-input { flex: 1; padding: 12px 16px; border-radius: 22px; border: 1px solid var(--stroke); background: rgba(0,0,0,.28); color: var(--text); font-size: 15px; transition: border .2s, box-shadow .2s; }
|
||||
.composer-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.2); }
|
||||
.composer-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,45,85,.2); }
|
||||
.attach { cursor: pointer; font-size: 20px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); user-select: none; flex: none; transition: background .2s; }
|
||||
.attach:hover { background: rgba(255,255,255,.12); }
|
||||
.send { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-grad); color: #fff; font-size: 17px; flex: none; box-shadow: 0 6px 18px rgba(124,92,255,.4); display: grid; place-items: center; }
|
||||
.send { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-grad); color: #fff; font-size: 17px; flex: none; box-shadow: 0 6px 18px rgba(255,45,85,.4); display: grid; place-items: center; }
|
||||
.send:hover { transform: translateY(-1px) scale(1.03); }
|
||||
|
||||
/* ---------- modal ---------- */
|
||||
|
|
@ -184,13 +199,13 @@
|
|||
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
|
||||
.modal-title { margin: 0; font-size: 19px; font-weight: 700; }
|
||||
.modal-input { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(0,0,0,.28); color: var(--text); font-size: 15px; }
|
||||
.modal-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.2); }
|
||||
.modal-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,45,85,.2); }
|
||||
textarea.modal-input { resize: vertical; font-family: inherit; }
|
||||
.modal-note { color: var(--muted); font-size: 13px; line-height: 1.45; }
|
||||
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
|
||||
.modal-actions button { padding: 10px 18px; }
|
||||
|
||||
.code-box { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 18px; letter-spacing: 1px; background: rgba(0,0,0,.35); padding: 15px; border-radius: 12px; text-align: center; word-break: break-all; user-select: all; border: 1px dashed var(--stroke-2); }
|
||||
.code-box { font-family: var(--font-mono); font-size: 18px; letter-spacing: 1px; background: rgba(0,0,0,.35); padding: 15px; border-radius: 12px; text-align: center; word-break: break-all; user-select: all; border: 1px dashed var(--accent); color: var(--accent-2); }
|
||||
.code-box.small { font-size: 12px; letter-spacing: 0; }
|
||||
.qr { display: block; width: 224px; height: 224px; margin: 4px auto; border-radius: 14px; background: #fff; padding: 8px; }
|
||||
.qr-video { width: 100%; max-width: 280px; border-radius: 14px; display: block; margin: 8px auto; background: #000; }
|
||||
|
|
@ -198,14 +213,14 @@
|
|||
/* account menu + group rows */
|
||||
.acct-row, .acct-action { text-align: left; background: rgba(255,255,255,.05); color: var(--text); padding: 12px 14px; border-radius: 13px; border: 1px solid var(--stroke); font-weight: 500; }
|
||||
.acct-row:hover, .acct-action:hover { background: rgba(255,255,255,.1); }
|
||||
.acct-row.active { outline: 1px solid var(--accent); background: rgba(124,92,255,.16); }
|
||||
.acct-row.active { outline: 1px solid var(--accent); background: rgba(255,45,85,.16); }
|
||||
.acct-action { color: var(--accent-2); text-align: center; }
|
||||
.acct-action.danger { color: var(--danger); }
|
||||
.member-row { display: flex; gap: 12px; align-items: center; padding: 4px 0; }
|
||||
|
||||
/* group creation chips */
|
||||
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
.chip { background: rgba(124,92,255,.2); border: 1px solid rgba(124,92,255,.4); color: var(--text); padding: 5px 10px; border-radius: 20px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
|
||||
.chip { background: rgba(255,45,85,.2); border: 1px solid rgba(255,45,85,.4); color: var(--text); padding: 5px 10px; border-radius: 20px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
|
||||
.chip-x { cursor: pointer; font-weight: 700; opacity: .8; }
|
||||
.chip-x:hover { opacity: 1; }
|
||||
|
||||
|
|
@ -219,8 +234,8 @@
|
|||
.remote-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
|
||||
.local-vid { position: absolute; right: 18px; bottom: 108px; width: 132px; height: 180px; object-fit: cover; border-radius: 16px; border: 2px solid rgba(255,255,255,.25); box-shadow: var(--shadow); z-index: 2; background: #111; }
|
||||
.call-avatar-wrap { z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
|
||||
.call-avatar { width: 120px !important; height: 120px !important; border-radius: 40px !important; font-size: 46px !important; box-shadow: 0 0 0 0 rgba(124,92,255,.5); animation: pulse 2s ease-in-out infinite; }
|
||||
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(124,92,255,.45); } 50% { box-shadow: 0 0 0 22px rgba(124,92,255,0); } }
|
||||
.call-avatar { width: 120px !important; height: 120px !important; border-radius: 40px !important; font-size: 46px !important; box-shadow: 0 0 0 0 rgba(255,45,85,.5); animation: pulse 2s ease-in-out infinite; }
|
||||
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,45,85,.45); } 50% { box-shadow: 0 0 0 22px rgba(255,45,85,0); } }
|
||||
.call-peer { font-size: 22px; font-weight: 700; }
|
||||
.call-status { z-index: 2; color: var(--muted); font-size: 15px; font-weight: 500; }
|
||||
.call-controls { z-index: 2; display: flex; gap: 18px; margin-bottom: 6px; }
|
||||
|
|
|
|||
|
|
@ -50,7 +50,8 @@ function renderAuth() {
|
|||
root.innerHTML = "";
|
||||
const form = el("form", { className: "auth-card" });
|
||||
const title = el("h1", { textContent: "Cipher" });
|
||||
const tag = el("p", { className: "tagline", textContent: "end-to-end encrypted messaging" });
|
||||
const brandTag = el("div", { className: "brand-tag", textContent: "A Radical Party Project" });
|
||||
const tag = el("p", { className: "tagline", textContent: "Radically private. End-to-end encrypted. Vibe, Vote, Veto." });
|
||||
const err = el("div", { className: "auth-err" });
|
||||
|
||||
const username = el("input", { placeholder: "username", autocomplete: "username", required: true });
|
||||
|
|
@ -64,7 +65,7 @@ function renderAuth() {
|
|||
const restoreBtn = el("button", { type: "button", className: "link-btn", textContent: "Restore with recovery code", onclick: (e) => { e.preventDefault(); startRecoveryRestore(); } });
|
||||
const qrLinkBtn = el("button", { type: "button", className: "link-btn", textContent: "Link from another device", onclick: (e) => { e.preventDefault(); startQrLink(); } });
|
||||
|
||||
form.append(title, tag, err, username, displayName, password, loginBtn, registerBtn, divider, restoreBtn, qrLinkBtn);
|
||||
form.append(title, brandTag, tag, err, username, displayName, password, loginBtn, registerBtn, divider, restoreBtn, qrLinkBtn);
|
||||
root.append(form);
|
||||
|
||||
form.onsubmit = async (e) => {
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"name": "Cipher",
|
||||
"name": "Cipher — Radical Party",
|
||||
"short_name": "Cipher",
|
||||
"description": "End-to-end encrypted messaging",
|
||||
"description": "Radically private, end-to-end encrypted messaging. A Radical Party project.",
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#0b141a",
|
||||
"theme_color": "#0b141a",
|
||||
"background_color": "#0B0B09",
|
||||
"theme_color": "#0B0B09",
|
||||
"icons": [
|
||||
{ "src": "/icons/icon.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "any maskable" }
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Service worker: offline app shell + Web Push wake-up.
|
||||
// It never touches message plaintext — decryption happens only in the page.
|
||||
|
||||
const CACHE = "cipher-v6";
|
||||
const CACHE = "cipher-v7";
|
||||
const SHELL = [
|
||||
"/",
|
||||
"/index.html",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue