stable
This commit is contained in:
9
.claude/settings.local.json
Normal file
9
.claude/settings.local.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"WebSearch",
|
||||
"WebFetch(domain:svelte.dev)",
|
||||
"Bash(pnpm check:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
23
.gitignore
vendored
Normal file
23
.gitignore
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
node_modules
|
||||
|
||||
# Output
|
||||
.output
|
||||
.vercel
|
||||
.netlify
|
||||
.wrangler
|
||||
/.svelte-kit
|
||||
/build
|
||||
|
||||
# OS
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Env
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
!.env.test
|
||||
|
||||
# Vite
|
||||
vite.config.js.timestamp-*
|
||||
vite.config.ts.timestamp-*
|
||||
3
.vscode/extensions.json
vendored
Normal file
3
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"recommendations": ["svelte.svelte-vscode"]
|
||||
}
|
||||
BIN
Maltemedia Schriftliche Arbeit.pdf
Normal file
BIN
Maltemedia Schriftliche Arbeit.pdf
Normal file
Binary file not shown.
42
README.md
Normal file
42
README.md
Normal file
@@ -0,0 +1,42 @@
|
||||
# sv
|
||||
|
||||
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
|
||||
|
||||
## Creating a project
|
||||
|
||||
If you're seeing this, you've probably already done this step. Congrats!
|
||||
|
||||
```sh
|
||||
# create a new project
|
||||
npx sv create my-app
|
||||
```
|
||||
|
||||
To recreate this project with the same configuration:
|
||||
|
||||
```sh
|
||||
# recreate this project
|
||||
pnpm dlx sv@0.12.8 create --template minimal --types ts --add sveltekit-adapter="adapter:static" --install pnpm the-maltemedia-pulse
|
||||
```
|
||||
|
||||
## Developing
|
||||
|
||||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
||||
|
||||
```sh
|
||||
npm run dev
|
||||
|
||||
# or start the server and open the app in a new browser tab
|
||||
npm run dev -- --open
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
To create a production version of your app:
|
||||
|
||||
```sh
|
||||
npm run build
|
||||
```
|
||||
|
||||
You can preview the production build with `npm run preview`.
|
||||
|
||||
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
|
||||
23
package.json
Normal file
23
package.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "the-maltemedia-pulse",
|
||||
"private": true,
|
||||
"version": "0.0.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"prepare": "svelte-kit sync || echo ''",
|
||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-static": "^3.0.10",
|
||||
"@sveltejs/kit": "^2.50.2",
|
||||
"@sveltejs/vite-plugin-svelte": "^6.2.4",
|
||||
"svelte": "^5.51.0",
|
||||
"svelte-check": "^4.4.2",
|
||||
"typescript": "^5.9.3",
|
||||
"vite": "^7.3.1"
|
||||
}
|
||||
}
|
||||
1026
pnpm-lock.yaml
generated
Normal file
1026
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
2
pnpm-workspace.yaml
Normal file
2
pnpm-workspace.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
onlyBuiltDependencies:
|
||||
- esbuild
|
||||
13
src/app.d.ts
vendored
Normal file
13
src/app.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
// See https://svelte.dev/docs/kit/types#app.d.ts
|
||||
// for information about these interfaces
|
||||
declare global {
|
||||
namespace App {
|
||||
// interface Error {}
|
||||
// interface Locals {}
|
||||
// interface PageData {}
|
||||
// interface PageState {}
|
||||
// interface Platform {}
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
14
src/app.html
Normal file
14
src/app.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700;800&display=swap" rel="stylesheet" />
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
<body data-sveltekit-preload-data="hover">
|
||||
<div style="display: contents">%sveltekit.body%</div>
|
||||
</body>
|
||||
</html>
|
||||
1
src/lib/assets/favicon.svg
Normal file
1
src/lib/assets/favicon.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="107" height="128" viewBox="0 0 107 128"><title>svelte-logo</title><path d="M94.157 22.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282 29.608A29.92 29.92 0 0 0 8.764 49.65a31.5 31.5 0 0 0 3.108 20.231 30 30 0 0 0-4.477 11.183 31.9 31.9 0 0 0 5.448 24.116c10.402 14.887 30.942 19.297 45.791 9.835l26.083-16.624A29.92 29.92 0 0 0 98.235 78.35a31.53 31.53 0 0 0-3.105-20.232 30 30 0 0 0 4.474-11.182 31.88 31.88 0 0 0-5.447-24.116" style="fill:#ff3e00"/><path d="M45.817 106.582a20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.503 18 18 0 0 1 .624-2.435l.49-1.498 1.337.981a33.6 33.6 0 0 0 10.203 5.098l.97.294-.09.968a5.85 5.85 0 0 0 1.052 3.878 6.24 6.24 0 0 0 6.695 2.485 5.8 5.8 0 0 0 1.603-.704L69.27 76.28a5.43 5.43 0 0 0 2.45-3.631 5.8 5.8 0 0 0-.987-4.371 6.24 6.24 0 0 0-6.698-2.487 5.7 5.7 0 0 0-1.6.704l-9.953 6.345a19 19 0 0 1-5.296 2.326 20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.502 17.99 17.99 0 0 1 8.13-12.052l26.081-16.623a19 19 0 0 1 5.3-2.329 20.72 20.72 0 0 1 22.237 8.243 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-.624 2.435l-.49 1.498-1.337-.98a33.6 33.6 0 0 0-10.203-5.1l-.97-.294.09-.968a5.86 5.86 0 0 0-1.052-3.878 6.24 6.24 0 0 0-6.696-2.485 5.8 5.8 0 0 0-1.602.704L37.73 51.72a5.42 5.42 0 0 0-2.449 3.63 5.79 5.79 0 0 0 .986 4.372 6.24 6.24 0 0 0 6.698 2.486 5.8 5.8 0 0 0 1.602-.704l9.952-6.342a19 19 0 0 1 5.295-2.328 20.72 20.72 0 0 1 22.237 8.242 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-8.13 12.053l-26.081 16.622a19 19 0 0 1-5.3 2.328" style="fill:#fff"/></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
1
src/lib/index.ts
Normal file
1
src/lib/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
// place files you want to import through the `$lib` alias in this folder.
|
||||
11
src/routes/+layout.svelte
Normal file
11
src/routes/+layout.svelte
Normal file
@@ -0,0 +1,11 @@
|
||||
<script lang="ts">
|
||||
import favicon from '$lib/assets/favicon.svg';
|
||||
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<link rel="icon" href={favicon} />
|
||||
</svelte:head>
|
||||
|
||||
{@render children()}
|
||||
679
src/routes/+page.svelte
Normal file
679
src/routes/+page.svelte
Normal file
@@ -0,0 +1,679 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from "svelte";
|
||||
import { fade, fly } from "svelte/transition";
|
||||
|
||||
// ── Phase types ────────────────────────────────────────────────────────────
|
||||
type Phase = "alpha" | "beta" | "gamma";
|
||||
|
||||
let phase = $state<Phase>("alpha");
|
||||
let currentSlide = $state(0);
|
||||
let slideKey = $state(0);
|
||||
let progress = $state(0);
|
||||
let glitchActive = $state(false);
|
||||
let contentVisible = $state(false);
|
||||
|
||||
const ALPHA_MS = 5000;
|
||||
const BETA_MS = 2000;
|
||||
const GAMMA_MS = 45000;
|
||||
|
||||
// ── Slide content (from PDF) ───────────────────────────────────────────────
|
||||
const slides = [
|
||||
{
|
||||
icon: "🔐",
|
||||
tag: "Datenschutz",
|
||||
title: "Sicherheit & Vertrauen",
|
||||
body: "Maltemedia gibt dir die volle Kontrolle über deine Daten. Keine zentralisierten Server — Nachrichten werden Anonym von den Servern geladen.",
|
||||
ticker: "Deine Daten. Deine Regeln. Deine Freiheit.",
|
||||
},
|
||||
{
|
||||
icon: "🌐",
|
||||
tag: "Dezentralität",
|
||||
title: "Nostr-Protokoll",
|
||||
body: "Ein freies, dezentrales Open-Source-Protokoll. So viele Relays wie gewünscht — fällt einer aus, sind alle Nachrichten auf den anderen synchronisiert.",
|
||||
ticker: "Nostr: Freiheit ist kein Feature, sondern das Fundament.",
|
||||
},
|
||||
{
|
||||
icon: "⚡",
|
||||
tag: "Technologie",
|
||||
title: "Rust-Powered Performance",
|
||||
body: "Entwickelt mit der Programmiersprache Rust und dem Tauri-Framework für Multiplattform-Apps. Sicher. Schnell. Effizient — technisch fast unmöglich auszufallen.",
|
||||
ticker: "Rust: Sicher. Schnell. Effizient.",
|
||||
},
|
||||
{
|
||||
icon: "📦",
|
||||
tag: "Open Source",
|
||||
title: "Easy-Nostr",
|
||||
body: "Meine eigene Rust-Bibliothek (Crate) für einfachere Nostr-Integration. Verbindung erstellen, Nachrichten senden, Relays hinzufügen — alles in einer einzigen Funktion.",
|
||||
ticker: "Easy-Nostr: Eine eigene Bibliothek für die Zukunft.",
|
||||
},
|
||||
{
|
||||
icon: "🤖",
|
||||
tag: "KI-Integration",
|
||||
title: "KI ohne Zentralisierung",
|
||||
body: "Im News-Tab bindest du deine eigene KI per API-Key an. Aktuelle Nachrichten — analysiert von deiner Wahl, nicht von einem Konzern. Zusätzlich: RSS-Feeds beliebiger Webseiten.",
|
||||
ticker: "AI-Intelligence ohne Zentralisierung.",
|
||||
},
|
||||
{
|
||||
icon: "📰",
|
||||
tag: "Features",
|
||||
title: "Drei Tabs. Eine App.",
|
||||
body: "Home-Tab: Echte Posts vom Nostr-Netzwerk. News-Tab: KI-generierte Artikel & RSS-Feeds. Greet-Tab: ~500 motivierende Sprüche — zufällig, lokal, persönlich.",
|
||||
ticker: "Social Media neu gedacht.",
|
||||
},
|
||||
{
|
||||
icon: "🔮",
|
||||
tag: "Ausblick",
|
||||
title: "Das Ökosystem der Zukunft",
|
||||
body: "Nächste Schritte: Liken, Reposten, Kommentare. Ein ganzes Ökosystem an Rust-Apps rund um Nostr und Matrix — für Firmen, Schulen und alle, die Freiheit schätzen.",
|
||||
ticker: "Dezentralität ist Widerstand gegen starre Strukturen.",
|
||||
},
|
||||
{
|
||||
icon: "🏆",
|
||||
tag: "Jugend forscht junior 2026",
|
||||
title: "Malte Schröder · 14 Jahre",
|
||||
body: "MikroMINT Schülerforschungszentrum Rostock · Fachgebiet: Mathematik/Informatik · Mecklenburg-Vorpommern · Betreut von Dr. Lisa-Madeleine Kohrt & Kay Mieske.",
|
||||
ticker: "Innovation beginnt jetzt.",
|
||||
},
|
||||
];
|
||||
|
||||
// ── Phase metadata ─────────────────────────────────────────────────────────
|
||||
const phaseLabel: Record<Phase, string> = {
|
||||
alpha: "ALPHA — Bereit",
|
||||
beta: "BETA — Transition",
|
||||
gamma: "GAMMA — Inhalt",
|
||||
};
|
||||
|
||||
const phaseColor: Record<Phase, string> = {
|
||||
alpha: "#00d4b4",
|
||||
beta: "#ff4466",
|
||||
gamma: "#7c3aed",
|
||||
};
|
||||
|
||||
// ── Canvas ref ─────────────────────────────────────────────────────────────
|
||||
let canvas: HTMLCanvasElement;
|
||||
|
||||
// ── Main loop ──────────────────────────────────────────────────────────────
|
||||
let phaseStart = -1;
|
||||
let transitioning = false;
|
||||
let rafId: number;
|
||||
|
||||
function runLoop(ts: number) {
|
||||
rafId = requestAnimationFrame(runLoop);
|
||||
|
||||
if (transitioning) return;
|
||||
if (phaseStart < 0) phaseStart = ts;
|
||||
const elapsed = ts - phaseStart;
|
||||
|
||||
if (phase === "alpha") {
|
||||
progress = Math.min((elapsed / ALPHA_MS) * 100, 100);
|
||||
if (elapsed >= ALPHA_MS) {
|
||||
phase = "beta";
|
||||
glitchActive = true;
|
||||
phaseStart = ts;
|
||||
progress = 0;
|
||||
}
|
||||
} else if (phase === "beta") {
|
||||
progress = Math.min((elapsed / BETA_MS) * 100, 100);
|
||||
if (elapsed >= BETA_MS) {
|
||||
phase = "gamma";
|
||||
glitchActive = false;
|
||||
contentVisible = true;
|
||||
phaseStart = ts;
|
||||
progress = 0;
|
||||
}
|
||||
} else if (phase === "gamma") {
|
||||
progress = Math.min((elapsed / GAMMA_MS) * 100, 100);
|
||||
if (elapsed >= GAMMA_MS) {
|
||||
transitioning = true;
|
||||
contentVisible = false;
|
||||
progress = 100;
|
||||
setTimeout(() => {
|
||||
currentSlide = (currentSlide + 1) % slides.length;
|
||||
slideKey++;
|
||||
phase = "alpha";
|
||||
phaseStart = -1;
|
||||
progress = 0;
|
||||
transitioning = false;
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ── Canvas background (nodes + connections) ────────────────────────────────
|
||||
onMount(() => {
|
||||
const ctx = canvas.getContext("2d")!;
|
||||
const W = window.innerWidth;
|
||||
const H = window.innerHeight;
|
||||
canvas.width = W;
|
||||
canvas.height = H;
|
||||
|
||||
interface Dot {
|
||||
x: number;
|
||||
y: number;
|
||||
vx: number;
|
||||
vy: number;
|
||||
r: number;
|
||||
pulse: number;
|
||||
pulseSpeed: number;
|
||||
}
|
||||
|
||||
const dots: Dot[] = Array.from({ length: 55 }, () => ({
|
||||
x: Math.random() * W,
|
||||
y: Math.random() * H,
|
||||
vx: (Math.random() - 0.5) * 0.25,
|
||||
vy: (Math.random() - 0.5) * 0.25,
|
||||
r: Math.random() * 2.5 + 1,
|
||||
pulse: Math.random() * Math.PI * 2,
|
||||
pulseSpeed: Math.random() * 0.015 + 0.005,
|
||||
}));
|
||||
|
||||
function drawBg() {
|
||||
ctx.clearRect(0, 0, W, H);
|
||||
|
||||
for (let i = 0; i < dots.length; i++) {
|
||||
for (let j = i + 1; j < dots.length; j++) {
|
||||
const dx = dots[i].x - dots[j].x;
|
||||
const dy = dots[i].y - dots[j].y;
|
||||
const dist = Math.sqrt(dx * dx + dy * dy);
|
||||
if (dist < 200) {
|
||||
const alpha = (1 - dist / 200) * 0.2;
|
||||
ctx.beginPath();
|
||||
ctx.strokeStyle = `rgba(0,212,180,${alpha})`;
|
||||
ctx.lineWidth = 0.8;
|
||||
ctx.moveTo(dots[i].x, dots[i].y);
|
||||
ctx.lineTo(dots[j].x, dots[j].y);
|
||||
ctx.stroke();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (const d of dots) {
|
||||
d.x += d.vx;
|
||||
d.y += d.vy;
|
||||
if (d.x < 0 || d.x > W) d.vx *= -1;
|
||||
if (d.y < 0 || d.y > H) d.vy *= -1;
|
||||
d.pulse += d.pulseSpeed;
|
||||
const brightness = 0.35 + Math.sin(d.pulse) * 0.25;
|
||||
ctx.beginPath();
|
||||
ctx.arc(d.x, d.y, d.r, 0, Math.PI * 2);
|
||||
ctx.fillStyle = `rgba(0,212,180,${brightness})`;
|
||||
ctx.fill();
|
||||
}
|
||||
|
||||
requestAnimationFrame(drawBg);
|
||||
}
|
||||
|
||||
requestAnimationFrame(drawBg);
|
||||
|
||||
// Start phase loop
|
||||
rafId = requestAnimationFrame(runLoop);
|
||||
|
||||
return () => cancelAnimationFrame(rafId);
|
||||
});
|
||||
|
||||
// ── Seconds left in current phase ─────────────────────────────────────────
|
||||
const phaseDuration: Record<Phase, number> = {
|
||||
alpha: ALPHA_MS,
|
||||
beta: BETA_MS,
|
||||
gamma: GAMMA_MS,
|
||||
};
|
||||
|
||||
let secondsLeft = $derived(
|
||||
Math.ceil(((100 - progress) / 100) * (phaseDuration[phase] / 1000)),
|
||||
);
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>The Maltemedia Pulse</title>
|
||||
</svelte:head>
|
||||
|
||||
<div class="scene">
|
||||
<!-- Animated node/relay background -->
|
||||
<canvas bind:this={canvas} class="bg-canvas"></canvas>
|
||||
|
||||
<!-- Radial vignette -->
|
||||
<div class="vignette"></div>
|
||||
|
||||
<!-- HUD top bar -->
|
||||
<div class="hud">
|
||||
<div class="hud-left">
|
||||
<span class="phase-dot" style="background: {phaseColor[phase]};"
|
||||
></span>
|
||||
<span class="phase-label">{phaseLabel[phase]}</span>
|
||||
</div>
|
||||
<div class="hud-center">
|
||||
<span class="project-name">MALTEMEDIA PULSE</span>
|
||||
</div>
|
||||
<div class="hud-right">
|
||||
<span class="slide-info"
|
||||
>{currentSlide + 1} / {slides.length}</span
|
||||
>
|
||||
<span class="countdown">{secondsLeft}s</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Main stage -->
|
||||
<div class="stage">
|
||||
<!-- Glitch Hero -->
|
||||
<div class="hero" class:glitching={glitchActive}>
|
||||
<h1 class="logo" data-text="MALTEMEDIA">MALTEMEDIA</h1>
|
||||
<p class="tagline">
|
||||
Eine dezentrale Social Media News App
|
||||
</p>
|
||||
|
||||
{#if phase === "alpha"}
|
||||
<div class="pulse-ring"></div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<!-- Content card (gamma phase) -->
|
||||
{#if contentVisible}
|
||||
{#key slideKey}
|
||||
<div
|
||||
class="card"
|
||||
in:fly={{ y: 40, duration: 700, delay: 100 }}
|
||||
out:fade={{ duration: 400 }}
|
||||
>
|
||||
<div class="card-header">
|
||||
<span class="card-icon"
|
||||
>{slides[currentSlide].icon}</span
|
||||
>
|
||||
<span class="card-tag">{slides[currentSlide].tag}</span>
|
||||
</div>
|
||||
<h2 class="card-title">{slides[currentSlide].title}</h2>
|
||||
<p class="card-body">{slides[currentSlide].body}</p>
|
||||
<div class="card-divider"></div>
|
||||
<p class="card-ticker">
|
||||
<span class="ticker-arrow">›</span>
|
||||
{slides[currentSlide].ticker}
|
||||
</p>
|
||||
</div>
|
||||
{/key}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<!-- Timer bar at bottom -->
|
||||
<div class="timer-track">
|
||||
<div
|
||||
class="timer-fill"
|
||||
style="width: {progress}%; background: {phaseColor[phase]};"
|
||||
></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
/* ── Global reset ───────────────────────────────────────── */
|
||||
:global(*),
|
||||
:global(*::before),
|
||||
:global(*::after) {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
:global(body) {
|
||||
background: #06060d;
|
||||
overflow: hidden;
|
||||
font-family: "Space Grotesk", system-ui, sans-serif;
|
||||
}
|
||||
|
||||
/* ── Scene ──────────────────────────────────────────────── */
|
||||
.scene {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* ── Background canvas ──────────────────────────────────── */
|
||||
.bg-canvas {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.vignette {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 1;
|
||||
background: radial-gradient(
|
||||
ellipse at 50% 50%,
|
||||
transparent 30%,
|
||||
#06060d 85%
|
||||
);
|
||||
}
|
||||
|
||||
/* ── HUD ────────────────────────────────────────────────── */
|
||||
.hud {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 30;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 1.1rem 2rem;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||
background: rgba(6, 6, 13, 0.6);
|
||||
backdrop-filter: blur(12px);
|
||||
font-size: 0.7rem;
|
||||
letter-spacing: 0.15em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.hud-left,
|
||||
.hud-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
color: rgba(255, 255, 255, 0.4);
|
||||
}
|
||||
|
||||
.hud-center {
|
||||
font-size: 0.62rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.35em;
|
||||
color: rgba(255, 255, 255, 0.18);
|
||||
}
|
||||
|
||||
.phase-dot {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
animation: blink 1.8s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.countdown {
|
||||
color: rgba(255, 255, 255, 0.25);
|
||||
font-variant-numeric: tabular-nums;
|
||||
min-width: 2.5rem;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* ── Stage ──────────────────────────────────────────────── */
|
||||
.stage {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 3rem;
|
||||
width: 100%;
|
||||
max-width: 860px;
|
||||
padding: 1rem 2rem;
|
||||
}
|
||||
|
||||
/* ── Glitch Hero ────────────────────────────────────────── */
|
||||
.hero {
|
||||
text-align: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: clamp(3.5rem, 10vw, 7.5rem);
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.12em;
|
||||
color: #fff;
|
||||
text-shadow: 0 0 50px rgba(0, 212, 180, 0.35);
|
||||
position: relative;
|
||||
animation: logo-breathe 4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* Glitch pseudo-layers */
|
||||
.logo::before,
|
||||
.logo::after {
|
||||
content: attr(data-text);
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.logo::before {
|
||||
color: #ff0044;
|
||||
}
|
||||
.logo::after {
|
||||
color: #00ccff;
|
||||
}
|
||||
|
||||
/* Activate glitch layers */
|
||||
.hero.glitching .logo {
|
||||
animation: glitch-base 0.12s steps(1) infinite;
|
||||
}
|
||||
.hero.glitching .logo::before {
|
||||
opacity: 1;
|
||||
animation: glitch-r 0.12s steps(1) infinite;
|
||||
}
|
||||
.hero.glitching .logo::after {
|
||||
opacity: 1;
|
||||
animation: glitch-b 0.12s steps(1) infinite;
|
||||
}
|
||||
|
||||
.tagline {
|
||||
font-size: clamp(0.8rem, 2vw, 1.05rem);
|
||||
color: rgba(255, 255, 255, 0.45);
|
||||
letter-spacing: 0.25em;
|
||||
text-transform: uppercase;
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.pulse-ring {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 120%;
|
||||
padding-bottom: 38%;
|
||||
border-radius: 50%;
|
||||
border: 1px solid rgba(0, 212, 180, 0.1);
|
||||
animation: ring-pulse 3.5s ease-in-out infinite;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* ── Content Card ───────────────────────────────────────── */
|
||||
.card {
|
||||
width: 100%;
|
||||
background: rgba(255, 255, 255, 0.035);
|
||||
border: 1px solid rgba(0, 212, 180, 0.18);
|
||||
border-radius: 1.4rem;
|
||||
padding: 2.4rem 3rem;
|
||||
backdrop-filter: blur(16px);
|
||||
box-shadow:
|
||||
0 0 0 1px rgba(0, 212, 180, 0.05),
|
||||
0 8px 60px rgba(0, 0, 0, 0.4),
|
||||
0 0 80px rgba(0, 212, 180, 0.04);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.8rem;
|
||||
margin-bottom: 1.2rem;
|
||||
}
|
||||
|
||||
.card-icon {
|
||||
font-size: 1.8rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.card-tag {
|
||||
font-size: 0.68rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.2em;
|
||||
text-transform: uppercase;
|
||||
color: #00d4b4;
|
||||
border: 1px solid rgba(0, 212, 180, 0.35);
|
||||
border-radius: 2rem;
|
||||
padding: 0.25rem 0.85rem;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: clamp(1.4rem, 3.5vw, 2rem);
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
margin-bottom: 1rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.card-body {
|
||||
font-size: clamp(0.9rem, 1.8vw, 1.1rem);
|
||||
color: rgba(255, 255, 255, 0.65);
|
||||
line-height: 1.75;
|
||||
margin-bottom: 1.6rem;
|
||||
}
|
||||
|
||||
.card-divider {
|
||||
width: 3rem;
|
||||
height: 1px;
|
||||
background: rgba(0, 212, 180, 0.3);
|
||||
margin: 0 auto 1.2rem;
|
||||
}
|
||||
|
||||
.card-ticker {
|
||||
font-size: clamp(0.85rem, 1.6vw, 1rem);
|
||||
color: #00d4b4;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
opacity: 0.9;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.ticker-arrow {
|
||||
font-size: 1.1em;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
/* ── Timer bar ──────────────────────────────────────────── */
|
||||
.timer-track {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 3px;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
z-index: 30;
|
||||
}
|
||||
|
||||
.timer-fill {
|
||||
height: 100%;
|
||||
transition:
|
||||
width 0.15s linear,
|
||||
background 0.6s ease;
|
||||
box-shadow: 0 0 10px currentColor;
|
||||
}
|
||||
|
||||
/* ── Keyframes ──────────────────────────────────────────── */
|
||||
@keyframes logo-breathe {
|
||||
0%,
|
||||
100% {
|
||||
text-shadow: 0 0 40px rgba(0, 212, 180, 0.3);
|
||||
}
|
||||
50% {
|
||||
text-shadow:
|
||||
0 0 60px rgba(0, 212, 180, 0.55),
|
||||
0 0 120px rgba(0, 212, 180, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes glitch-base {
|
||||
0%,
|
||||
100% {
|
||||
transform: translate(0);
|
||||
filter: none;
|
||||
}
|
||||
20% {
|
||||
transform: translate(-2px, 1px);
|
||||
filter: hue-rotate(90deg);
|
||||
}
|
||||
40% {
|
||||
transform: translate(3px, -1px);
|
||||
filter: none;
|
||||
}
|
||||
60% {
|
||||
transform: translate(-1px, 2px);
|
||||
filter: hue-rotate(-90deg);
|
||||
}
|
||||
80% {
|
||||
transform: translate(2px, -2px);
|
||||
filter: none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes glitch-r {
|
||||
0% {
|
||||
transform: translate(-5px, 0);
|
||||
clip-path: inset(10% 0 75% 0);
|
||||
}
|
||||
25% {
|
||||
transform: translate(5px, 1px);
|
||||
clip-path: inset(55% 0 15% 0);
|
||||
}
|
||||
50% {
|
||||
transform: translate(-3px, -1px);
|
||||
clip-path: inset(30% 0 45% 0);
|
||||
}
|
||||
75% {
|
||||
transform: translate(4px, 2px);
|
||||
clip-path: inset(70% 0 5% 0);
|
||||
}
|
||||
100% {
|
||||
transform: translate(-5px, 0);
|
||||
clip-path: inset(10% 0 75% 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes glitch-b {
|
||||
0% {
|
||||
transform: translate(5px, 1px);
|
||||
clip-path: inset(55% 0 15% 0);
|
||||
}
|
||||
25% {
|
||||
transform: translate(-5px, 0);
|
||||
clip-path: inset(10% 0 75% 0);
|
||||
}
|
||||
50% {
|
||||
transform: translate(3px, -2px);
|
||||
clip-path: inset(80% 0 2% 0);
|
||||
}
|
||||
75% {
|
||||
transform: translate(-4px, 1px);
|
||||
clip-path: inset(20% 0 60% 0);
|
||||
}
|
||||
100% {
|
||||
transform: translate(5px, 1px);
|
||||
clip-path: inset(55% 0 15% 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes ring-pulse {
|
||||
0%,
|
||||
100% {
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
opacity: 0.5;
|
||||
}
|
||||
50% {
|
||||
transform: translate(-50%, -50%) scale(1.07);
|
||||
opacity: 0.12;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
0%,
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
50% {
|
||||
opacity: 0.3;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
3
static/robots.txt
Normal file
3
static/robots.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
# allow crawling everything by default
|
||||
User-agent: *
|
||||
Disallow:
|
||||
11
svelte.config.js
Normal file
11
svelte.config.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import adapter from '@sveltejs/adapter-static';
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
kit: { adapter: adapter() },
|
||||
vitePlugin: {
|
||||
dynamicCompileOptions: ({ filename }) => filename.includes('node_modules') ? undefined : { runes: true }
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
20
tsconfig.json
Normal file
20
tsconfig.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"extends": "./.svelte-kit/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"rewriteRelativeImportExtensions": true,
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"resolveJsonModule": true,
|
||||
"skipLibCheck": true,
|
||||
"sourceMap": true,
|
||||
"strict": true,
|
||||
"moduleResolution": "bundler"
|
||||
}
|
||||
// Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias
|
||||
// except $lib which is handled by https://svelte.dev/docs/kit/configuration#files
|
||||
//
|
||||
// To make changes to top-level options such as include and exclude, we recommend extending
|
||||
// the generated config; see https://svelte.dev/docs/kit/configuration#typescript
|
||||
}
|
||||
6
vite.config.ts
Normal file
6
vite.config.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [sveltekit()]
|
||||
});
|
||||
Reference in New Issue
Block a user