Add ep-demo.html and some EP related logos

This commit is contained in:
2026-09-30 00:05:49 +03:00
parent d048ef82b7
commit 4ba0a55256
4 changed files with 108 additions and 1 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ Administrators can freeze member accounts from **Accounts**. Frozen members cann
The site ships with a light theme and a dark "wasteland" variant. The **WASTELAND** / **DAYLIGHT** button in the navigation toggles between them and remembers the choice in the browser's local storage; an inline script applies the saved theme before the page renders to avoid a flash of the wrong theme. Colors for both variants live as CSS custom properties in [static/css/site.css](static/css/site.css), overridden under the `[data-theme="dark"]` selector. The site ships with a light theme and a dark "wasteland" variant. The **WASTELAND** / **DAYLIGHT** button in the navigation toggles between them and remembers the choice in the browser's local storage; an inline script applies the saved theme before the page renders to avoid a flash of the wrong theme. Colors for both variants live as CSS custom properties in [static/css/site.css](static/css/site.css), overridden under the `[data-theme="dark"]` selector.
A framework-agnostic copy of the theme is available under [themes/](themes/) for reuse on other web pages: [themes/eternity-theme.css](themes/eternity-theme.css) contains the core design system (header, buttons, hero, cards, forms, code blocks, flashes) with no Flask or Jinja dependencies, and [themes/demo.html](themes/demo.html) is a standalone starter template demonstrating the components and the dark-mode toggle. A framework-agnostic copy of the theme is available under [themes/](themes/) for reuse on other web pages: [themes/eternity-theme.css](themes/eternity-theme.css) contains the core design system (header, buttons, hero, cards, forms, code blocks, flashes) with no Flask or Jinja dependencies, and [themes/demo.html](themes/demo.html) is a standalone starter template demonstrating the components and the dark-mode toggle. [themes/ep-demo.html](themes/ep-demo.html) is the same template branded with the Eternity Project logo mark and orange wheel from [themes/assets/](themes/assets/), for projects that want the branding as-is.
## Accounts and MFA ## Accounts and MFA
+7
View File
@@ -0,0 +1,7 @@
<!-- inline this markup (don't load via <img>) so the ring picks up the page's --ink color per theme -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="Eternity Project mark">
<circle cx="32" cy="32" r="28" fill="none" stroke="currentColor" stroke-width="4"/>
<circle cx="18" cy="18" r="4" fill="#ff6b35"/>
<circle cx="46" cy="46" r="4" fill="#ff6b35"/>
<circle cx="32" cy="32" r="4" fill="#c7ef4b"/>
</svg>

After

Width:  |  Height:  |  Size: 475 B

+7
View File
@@ -0,0 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 320" width="320" height="320" role="img" aria-label="Eternity Project wheel">
<circle cx="160" cy="160" r="156" fill="none" stroke="#ff6b35" stroke-width="4"/>
<line x1="0" y1="160" x2="320" y2="160" stroke="#ff6b35" stroke-width="1" transform="rotate(45 160 160)"/>
<line x1="0" y1="160" x2="320" y2="160" stroke="#ff6b35" stroke-width="1" transform="rotate(90 160 160)"/>
<line x1="0" y1="160" x2="320" y2="160" stroke="#ff6b35" stroke-width="1" transform="rotate(135 160 160)"/>
<text x="160" y="200" text-anchor="middle" font-family="Georgia, serif" font-size="140" fill="#ff6b35">&#8734;</text>
</svg>

After

Width:  |  Height:  |  Size: 674 B

+93
View File
@@ -0,0 +1,93 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Eternity Project Theme — Branded Template</title>
<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=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="eternity-theme.css">
<style>
.brand { display:flex; gap:10px; align-items:center; font-family:"DM Mono", monospace; line-height:1; color:var(--ink); }
.brand strong { display:block; letter-spacing:1px; font-size:16px; }
.brand small { font-size:9px; color:var(--muted); }
.brand svg { width:31px; height:31px; }
.hero { position:relative; overflow:hidden; }
.wheel { position:absolute; right:8%; bottom:-95px; width:310px; height:310px; opacity:.9; }
</style>
<script>(function(){if(localStorage.getItem('ep-theme')==='dark'){document.documentElement.setAttribute('data-theme','dark');}})();</script>
</head>
<body>
<header class="site-header">
<a class="brand" href="#" aria-label="Eternity Project home">
<svg viewBox="0 0 64 64" aria-hidden="true">
<circle cx="32" cy="32" r="28" fill="none" stroke="currentColor" stroke-width="4"/>
<circle cx="18" cy="18" r="4" fill="#ff6b35"/>
<circle cx="46" cy="46" r="4" fill="#ff6b35"/>
<circle cx="32" cy="32" r="4" fill="#c7ef4b"/>
</svg>
<span><strong>ETERNITY</strong><small>PROJECT / FI</small></span>
</a>
<nav>
<a href="#">Journal</a>
<a class="button compact" href="#">Create account</a>
<button type="button" class="theme-toggle" id="theme-toggle">WASTELAND</button>
</nav>
</header>
<main>
<section class="hero">
<span class="signal-label">/// BRANDED TEMPLATE</span>
<h1>Reusable <em>post-apocalyptic</em> theme.</h1>
<p>Drop <code>eternity-theme.css</code> plus the <code>assets/</code> logo and wheel into any site to reuse the Eternity Project look, including the wasteland dark mode.</p>
<button class="button">Primary action</button>
<img class="wheel" src="assets/eternity-wheel.svg" alt="" aria-hidden="true">
</section>
<section style="padding:40px max(5vw,24px);">
<div class="card-grid">
<div class="card"><h2>Card one</h2><p>Short description of a feature or article.</p></div>
<div class="card"><h2>Card two</h2><p>Short description of a feature or article.</p></div>
<div class="card"><h2>Card three</h2><p>Short description of a feature or article.</p></div>
</div>
</section>
<section style="padding:0 max(5vw,24px) 40px;max-width:600px;">
<form class="panel">
<label>Name<input type="text" placeholder="Jane Doe"></label>
<label>Message<textarea rows="4" placeholder="Say something..."></textarea></label>
<button class="button" type="submit">Send</button>
</form>
<div class="flash success" style="margin-top:16px;">This is a success message.</div>
<div class="flash error">This is an error message.</div>
</section>
<section style="padding:0 max(5vw,24px) 60px;max-width:700px;">
<div class="code-block">
<div class="code-block-head"><span>example.js</span><span>copy</span></div>
<pre><code>console.log("themed code block");</code></pre>
</div>
</section>
</main>
<footer>
<span>ETERNITY PROJECT</span>
<span>MADE WITH ETERNITY THEME</span>
</footer>
<script>
(function(){
var root=document.documentElement,btn=document.getElementById('theme-toggle');
function label(){btn.textContent=root.getAttribute('data-theme')==='dark'?'DAYLIGHT':'WASTELAND';}
label();
btn.addEventListener('click', function(){
var dark=root.getAttribute('data-theme')==='dark';
if (dark) { root.removeAttribute('data-theme'); localStorage.setItem('ep-theme','light'); }
else { root.setAttribute('data-theme','dark'); localStorage.setItem('ep-theme','dark'); }
label();
});
})();
</script>
</body>
</html>