every.channel: sanitized baseline
This commit is contained in:
commit
897e556bea
258 changed files with 74298 additions and 0 deletions
29
apps/tauri/Cargo.toml
Normal file
29
apps/tauri/Cargo.toml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
[package]
|
||||
name = "ec-tauri"
|
||||
version = "0.0.0"
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[dependencies]
|
||||
anyhow.workspace = true
|
||||
axum = "0.7"
|
||||
blake3.workspace = true
|
||||
ec-crypto = { path = "../../crates/ec-crypto" }
|
||||
ec-core = { path = "../../crates/ec-core" }
|
||||
ec-chopper = { path = "../../crates/ec-chopper" }
|
||||
ec-hdhomerun = { path = "../../crates/ec-hdhomerun" }
|
||||
ec-linux-iptv = { path = "../../crates/ec-linux-iptv" }
|
||||
ec-iroh = { path = "../../crates/ec-iroh" }
|
||||
ec-moq = { path = "../../crates/ec-moq" }
|
||||
hex = "0.4"
|
||||
iroh = "0.96"
|
||||
reqwest = { version = "0.12", default-features = false, features = ["blocking", "rustls-tls"] }
|
||||
serde.workspace = true
|
||||
serde_json = "1"
|
||||
tauri = { version = "2", features = [] }
|
||||
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
|
||||
tower-http = { version = "0.5", features = ["fs"] }
|
||||
tracing.workspace = true
|
||||
|
||||
[build-dependencies]
|
||||
tauri-build = { version = "2", features = [] }
|
||||
3
apps/tauri/build.rs
Normal file
3
apps/tauri/build.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
tauri_build::build();
|
||||
}
|
||||
BIN
apps/tauri/icons/icon.png
Normal file
BIN
apps/tauri/icons/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 B |
8
apps/tauri/resources/yt-dlp/README.md
Normal file
8
apps/tauri/resources/yt-dlp/README.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
Bundled yt-dlp runtime lives under platform-specific folders.
|
||||
|
||||
Use `scripts/vendor-yt-dlp.sh` to populate:
|
||||
- macos/venv
|
||||
- linux/venv
|
||||
- windows/venv
|
||||
|
||||
These directories are intentionally empty in git.
|
||||
3452
apps/tauri/src/main.rs
Normal file
3452
apps/tauri/src/main.rs
Normal file
File diff suppressed because it is too large
Load diff
31
apps/tauri/tauri.conf.json
Normal file
31
apps/tauri/tauri.conf.json
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "every.channel",
|
||||
"version": "0.0.0",
|
||||
"identifier": "channel.every.app",
|
||||
"build": {
|
||||
"beforeBuildCommand": "cd ui && trunk build --release",
|
||||
"beforeDevCommand": "cd ui && trunk serve --port 1420 --public-url /",
|
||||
"devUrl": "http://localhost:1420",
|
||||
"frontendDist": "dist"
|
||||
},
|
||||
"app": {
|
||||
"withGlobalTauri": true,
|
||||
"windows": [
|
||||
{
|
||||
"title": "every.channel",
|
||||
"width": 1280,
|
||||
"height": 820,
|
||||
"resizable": true
|
||||
}
|
||||
],
|
||||
"security": {
|
||||
"csp": null
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
"resources": [
|
||||
"resources/**/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
3619
apps/tauri/ui/Cargo.lock
generated
Normal file
3619
apps/tauri/ui/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
22
apps/tauri/ui/Cargo.toml
Normal file
22
apps/tauri/ui/Cargo.toml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
[package]
|
||||
name = "ec-tauri-ui"
|
||||
version = "0.0.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
dioxus = { version = "0.6", features = ["web"] }
|
||||
ec-direct = { path = "../../../crates/ec-direct" }
|
||||
bytes = "1"
|
||||
futures-util = { version = "0.3", features = ["sink"] }
|
||||
gloo-timers = { version = "0.3", features = ["futures"] }
|
||||
gloo-net = { version = "0.6", features = ["websocket"] }
|
||||
js-sys = "0.3"
|
||||
just-webrtc = "0.2"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde-wasm-bindgen = "0.6"
|
||||
serde_json = "1"
|
||||
wasm-bindgen = "0.2"
|
||||
wasm-bindgen-futures = "0.4"
|
||||
web-sys = { version = "0.3", features = ["Window", "Navigator", "Clipboard", "MediaSource", "SourceBuffer", "Url", "HtmlVideoElement", "HtmlMediaElement", "EventTarget", "Event", "Blob", "Request", "RequestInit", "Response", "Headers", "Location"] }
|
||||
|
||||
[workspace]
|
||||
3
apps/tauri/ui/Trunk.toml
Normal file
3
apps/tauri/ui/Trunk.toml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[build]
|
||||
dist = "../dist"
|
||||
public_url = "/"
|
||||
BIN
apps/tauri/ui/icons/apple-touch-icon.png
Normal file
BIN
apps/tauri/ui/icons/apple-touch-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 984 B |
BIN
apps/tauri/ui/icons/icon-192.png
Normal file
BIN
apps/tauri/ui/icons/icon-192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
apps/tauri/ui/icons/icon-512.png
Normal file
BIN
apps/tauri/ui/icons/icon-512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
34
apps/tauri/ui/index.html
Normal file
34
apps/tauri/ui/index.html
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
<meta name="theme-color" content="#f7f4ef" />
|
||||
<meta name="color-scheme" content="light" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
||||
<title>every.channel</title>
|
||||
<link rel="manifest" href="manifest.webmanifest" />
|
||||
<link rel="icon" href="icons/icon-192.png" />
|
||||
<link rel="apple-touch-icon" href="icons/apple-touch-icon.png" />
|
||||
|
||||
<link data-trunk rel="css" href="style.css" />
|
||||
<link data-trunk rel="rust" data-wasm-opt="z" />
|
||||
|
||||
<link data-trunk rel="copy-file" href="manifest.webmanifest" />
|
||||
<link data-trunk rel="copy-file" href="sw.js" />
|
||||
<link data-trunk rel="copy-dir" href="icons" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="main"></div>
|
||||
|
||||
<script>
|
||||
// Installable app shell (PWA). Keep this tiny and resilient.
|
||||
if ("serviceWorker" in navigator) {
|
||||
window.addEventListener("load", () => {
|
||||
navigator.serviceWorker.register("./sw.js").catch(() => {});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
29
apps/tauri/ui/manifest.webmanifest
Normal file
29
apps/tauri/ui/manifest.webmanifest
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"name": "every.channel",
|
||||
"short_name": "every.channel",
|
||||
"description": "every.channel viewer",
|
||||
"start_url": "/",
|
||||
"scope": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#f7f4ef",
|
||||
"theme_color": "#f7f4ef",
|
||||
"icons": [
|
||||
{
|
||||
"src": "icons/icon-192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "icons/icon-512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "icons/icon-512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
2329
apps/tauri/ui/src/main.rs
Normal file
2329
apps/tauri/ui/src/main.rs
Normal file
File diff suppressed because it is too large
Load diff
671
apps/tauri/ui/style.css
Normal file
671
apps/tauri/ui/style.css
Normal file
|
|
@ -0,0 +1,671 @@
|
|||
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500&display=swap");
|
||||
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--bg: #f7f4ef;
|
||||
--bg-ink: #151410;
|
||||
--bg-muted: #f1ede6;
|
||||
--bg-card: #ffffff;
|
||||
--accent: #18a89b;
|
||||
--accent-strong: #0c6f68;
|
||||
--accent-warm: #d4915a;
|
||||
--ink: #151410;
|
||||
--ink-muted: #5a564c;
|
||||
--border: rgba(21, 20, 16, 0.12);
|
||||
--shadow: 0 24px 50px rgba(21, 20, 16, 0.15);
|
||||
font-family: "Space Grotesk", "IBM Plex Sans", "Segoe UI", sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
background: radial-gradient(circle at top left, #fff7ec 0%, #f7f4ef 42%, #eef5f3 100%);
|
||||
color: var(--ink);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background-image: radial-gradient(circle at 20% 20%, rgba(24, 168, 155, 0.15), transparent 45%),
|
||||
radial-gradient(circle at 85% 12%, rgba(255, 155, 82, 0.18), transparent 40%),
|
||||
radial-gradient(circle at 40% 80%, rgba(24, 168, 155, 0.1), transparent 50%);
|
||||
pointer-events: none;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
#main {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.app {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
padding: 24px clamp(16px, 4vw, 40px) 36px;
|
||||
animation: fadeIn 0.6s ease-out;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.topbar-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.add-source {
|
||||
border: none;
|
||||
border-radius: 14px;
|
||||
background: var(--accent-strong);
|
||||
color: white;
|
||||
padding: 8px 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.add-source:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 12px 20px rgba(12, 111, 104, 0.25);
|
||||
}
|
||||
|
||||
.source-menu {
|
||||
position: absolute;
|
||||
top: 48px;
|
||||
right: 0;
|
||||
width: 280px;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
padding: 12px;
|
||||
box-shadow: var(--shadow);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
max-height: 520px;
|
||||
overflow-y: auto;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.source-menu-title {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.source-menu-status {
|
||||
font-size: 12px;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.source-menu-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 12px;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.source-menu-action {
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
background: var(--bg-muted);
|
||||
padding: 8px 10px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.source-menu-action.small {
|
||||
padding: 6px 10px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.source-menu-inline {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.source-menu-inline .source-menu-input {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.source-menu-divider {
|
||||
height: 1px;
|
||||
background: var(--border);
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
.source-menu-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.source-menu-subsection {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.source-menu-label {
|
||||
font-size: 11px;
|
||||
color: var(--ink-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
.source-menu-input {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
padding: 6px 8px;
|
||||
font-size: 12px;
|
||||
background: var(--bg-muted);
|
||||
}
|
||||
|
||||
.source-menu-button {
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
padding: 8px 10px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.source-menu-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 12px;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.brand {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.brand-title {
|
||||
font-size: clamp(24px, 2.6vw, 30px);
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
|
||||
.brand-subtitle {
|
||||
font-size: 12px;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.status-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 14px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--bg-card);
|
||||
font-size: 13px;
|
||||
color: var(--ink-muted);
|
||||
box-shadow: 0 10px 20px rgba(21, 20, 16, 0.08);
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
box-shadow: 0 0 0 4px rgba(24, 168, 155, 0.2);
|
||||
animation: pulse 1.8s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0% {
|
||||
box-shadow: 0 0 0 4px rgba(24, 168, 155, 0.2);
|
||||
}
|
||||
50% {
|
||||
box-shadow: 0 0 0 7px rgba(24, 168, 155, 0.08);
|
||||
}
|
||||
100% {
|
||||
box-shadow: 0 0 0 4px rgba(24, 168, 155, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(260px, 1fr) minmax(320px, 2fr);
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.left-column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.panel {
|
||||
background: var(--bg-card);
|
||||
border-radius: 18px;
|
||||
border: 1px solid var(--border);
|
||||
box-shadow: var(--shadow);
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.panel-title {
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.14em;
|
||||
color: var(--ink-muted);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.panel-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.panel-header .panel-title {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.panel-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.panel-select {
|
||||
border: 1px solid var(--border);
|
||||
background: var(--bg-muted);
|
||||
border-radius: 10px;
|
||||
padding: 6px 10px;
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
}
|
||||
|
||||
.panel-button {
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
background: var(--bg-muted);
|
||||
padding: 8px 12px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.pager {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.pager-button {
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
background: var(--bg-muted);
|
||||
padding: 6px 10px;
|
||||
font-size: 11px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.pager-label {
|
||||
font-size: 12px;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.channel-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
max-height: 480px;
|
||||
overflow: auto;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
.channel-card {
|
||||
border-radius: 14px;
|
||||
border: 1px solid transparent;
|
||||
background: var(--bg-muted);
|
||||
padding: 12px 14px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.channel-badge {
|
||||
align-self: flex-start;
|
||||
border-radius: 999px;
|
||||
padding: 4px 10px;
|
||||
font-size: 10px;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
background: rgba(21, 20, 16, 0.08);
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.channel-badge.drm {
|
||||
background: rgba(255, 155, 82, 0.2);
|
||||
color: #a14d00;
|
||||
}
|
||||
|
||||
.channel-badge.source {
|
||||
background: rgba(24, 168, 155, 0.16);
|
||||
color: #0f6c63;
|
||||
}
|
||||
|
||||
.channel-card:hover {
|
||||
transform: translateY(-2px);
|
||||
border: 1px solid rgba(24, 168, 155, 0.4);
|
||||
box-shadow: 0 12px 24px rgba(21, 20, 16, 0.1);
|
||||
}
|
||||
|
||||
.channel-card.active {
|
||||
border: 1px solid var(--accent);
|
||||
background: rgba(24, 168, 155, 0.1);
|
||||
}
|
||||
|
||||
.channel-title {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.channel-meta {
|
||||
font-size: 13px;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.source-status {
|
||||
font-size: 13px;
|
||||
color: var(--ink-muted);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.source-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.source-card {
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--border);
|
||||
background: #fbf9f6;
|
||||
padding: 12px 14px;
|
||||
}
|
||||
|
||||
.source-name {
|
||||
font-weight: 600;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.source-meta {
|
||||
font-size: 12px;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.catalog-panel {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.player-shell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.video-frame {
|
||||
width: 100%;
|
||||
aspect-ratio: 16 / 9;
|
||||
border-radius: 14px;
|
||||
overflow: hidden;
|
||||
background: #0f0f0f;
|
||||
border: 1px solid rgba(21, 20, 16, 0.2);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.video-frame::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
opacity: 0.11;
|
||||
mix-blend-mode: overlay;
|
||||
background:
|
||||
linear-gradient(
|
||||
to bottom,
|
||||
rgba(255, 255, 255, 0.045),
|
||||
rgba(0, 0, 0, 0.045)
|
||||
),
|
||||
repeating-linear-gradient(
|
||||
to bottom,
|
||||
rgba(255, 255, 255, 0.04) 0px,
|
||||
rgba(255, 255, 255, 0.04) 1px,
|
||||
rgba(0, 0, 0, 0) 2px,
|
||||
rgba(0, 0, 0, 0) 4px
|
||||
);
|
||||
}
|
||||
|
||||
video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.placeholder {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
height: 100%;
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.meta-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.meta-card {
|
||||
border-radius: 12px;
|
||||
background: #fdfbf8;
|
||||
border: 1px solid var(--border);
|
||||
padding: 12px 14px;
|
||||
font-size: 13px;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.meta-card.drm {
|
||||
border-color: rgba(255, 155, 82, 0.5);
|
||||
background: rgba(255, 155, 82, 0.12);
|
||||
}
|
||||
|
||||
.meta-card strong {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
color: var(--ink-muted);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.share-card {
|
||||
margin-top: 16px;
|
||||
border-radius: 14px;
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
padding: 14px 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.share-title {
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.2em;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.share-row {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.share-label {
|
||||
font-size: 11px;
|
||||
color: var(--ink-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
.share-value {
|
||||
font-size: 12px;
|
||||
color: var(--ink);
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.share-link-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.share-link {
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--border);
|
||||
padding: 8px 10px;
|
||||
font-size: 12px;
|
||||
background: #fbf9f6;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.share-copy {
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
padding: 8px 12px;
|
||||
font-size: 12px;
|
||||
color: var(--ink);
|
||||
cursor: pointer;
|
||||
transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
|
||||
}
|
||||
|
||||
.share-copy:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 10px 24px rgba(30, 23, 17, 0.08);
|
||||
}
|
||||
|
||||
.toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 12px;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.toggle input {
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
|
||||
.share-input {
|
||||
margin-top: 8px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--border);
|
||||
padding: 8px 10px;
|
||||
font-size: 12px;
|
||||
background: #fbf9f6;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.moq-panel {
|
||||
margin-top: 24px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px dashed var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.moq-title {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.moq-label {
|
||||
font-size: 12px;
|
||||
color: var(--ink-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
}
|
||||
|
||||
.moq-input {
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--border);
|
||||
padding: 10px 12px;
|
||||
font-size: 13px;
|
||||
background: #fbf9f6;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.moq-input:focus {
|
||||
outline: none;
|
||||
border-color: rgba(24, 168, 155, 0.6);
|
||||
box-shadow: 0 0 0 3px rgba(24, 168, 155, 0.15);
|
||||
}
|
||||
|
||||
.moq-button {
|
||||
margin-top: 6px;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
padding: 10px 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.moq-button:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 12px 20px rgba(24, 168, 155, 0.25);
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(12px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
103
apps/tauri/ui/sw.js
Normal file
103
apps/tauri/ui/sw.js
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
/* every.channel PWA service worker
|
||||
*
|
||||
* Goal: cache the app shell so it can be installed and load offline.
|
||||
* Do not interfere with media fetching/streaming: always network-pass-through
|
||||
* for non-GET requests and for large binary media responses.
|
||||
*/
|
||||
|
||||
const CACHE_NAME = "every.channel-shell-v1";
|
||||
const SHELL = [
|
||||
"./",
|
||||
"./index.html",
|
||||
"./style.css",
|
||||
"./manifest.webmanifest",
|
||||
"./icons/icon-192.png",
|
||||
"./icons/icon-512.png",
|
||||
"./icons/apple-touch-icon.png",
|
||||
];
|
||||
|
||||
self.addEventListener("install", (event) => {
|
||||
event.waitUntil(
|
||||
caches
|
||||
.open(CACHE_NAME)
|
||||
.then((cache) => cache.addAll(SHELL))
|
||||
.then(() => self.skipWaiting())
|
||||
);
|
||||
});
|
||||
|
||||
self.addEventListener("activate", (event) => {
|
||||
event.waitUntil(
|
||||
caches
|
||||
.keys()
|
||||
.then((keys) =>
|
||||
Promise.all(
|
||||
keys.map((key) => {
|
||||
if (key !== CACHE_NAME) return caches.delete(key);
|
||||
return Promise.resolve();
|
||||
})
|
||||
)
|
||||
)
|
||||
.then(() => self.clients.claim())
|
||||
);
|
||||
});
|
||||
|
||||
function isNavigationRequest(request) {
|
||||
return request.mode === "navigate";
|
||||
}
|
||||
|
||||
function isMediaRequest(request) {
|
||||
const url = new URL(request.url);
|
||||
const path = url.pathname.toLowerCase();
|
||||
return (
|
||||
path.endsWith(".m3u8") ||
|
||||
path.endsWith(".m4s") ||
|
||||
path.endsWith(".mp4") ||
|
||||
path.endsWith(".ts")
|
||||
);
|
||||
}
|
||||
|
||||
self.addEventListener("fetch", (event) => {
|
||||
const { request } = event;
|
||||
if (request.method !== "GET") return;
|
||||
|
||||
// Don't cache/modify streaming media requests.
|
||||
if (isMediaRequest(request)) {
|
||||
event.respondWith(fetch(request));
|
||||
return;
|
||||
}
|
||||
|
||||
// For navigations, prefer network but fall back to cached shell.
|
||||
if (isNavigationRequest(request)) {
|
||||
event.respondWith(
|
||||
fetch(request).catch(() => caches.match("./index.html").then((r) => r || Response.error()))
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
// Cache-first for same-origin static assets; network fallback.
|
||||
const url = new URL(request.url);
|
||||
if (url.origin === self.location.origin) {
|
||||
event.respondWith(
|
||||
caches.match(request).then((cached) => {
|
||||
if (cached) return cached;
|
||||
return fetch(request)
|
||||
.then((resp) => {
|
||||
// Avoid caching huge binary responses.
|
||||
const len = resp.headers.get("content-length");
|
||||
const tooBig = len && Number(len) > 5_000_000;
|
||||
if (resp.ok && !tooBig) {
|
||||
const clone = resp.clone();
|
||||
caches.open(CACHE_NAME).then((cache) => cache.put(request, clone)).catch(() => {});
|
||||
}
|
||||
return resp;
|
||||
})
|
||||
.catch(() => cached || Response.error());
|
||||
})
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
// Default: network.
|
||||
event.respondWith(fetch(request));
|
||||
});
|
||||
|
||||
1857
apps/web/Cargo.lock
generated
Normal file
1857
apps/web/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
14
apps/web/Cargo.toml
Normal file
14
apps/web/Cargo.toml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[package]
|
||||
name = "ec-web"
|
||||
version = "0.0.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
dioxus = { version = "0.6", features = ["web"] }
|
||||
js-sys = "0.3"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
wasm-bindgen = "0.2"
|
||||
wasm-bindgen-futures = "0.4"
|
||||
web-sys = { version = "0.3", features = ["Window", "Navigator", "Clipboard"] }
|
||||
|
||||
[workspace]
|
||||
18
apps/web/README.md
Normal file
18
apps/web/README.md
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# every.channel web site (static)
|
||||
|
||||
This is a static web site built in Rust with Dioxus and compiled to WASM.
|
||||
|
||||
## Dev
|
||||
|
||||
From repo root:
|
||||
|
||||
```bash
|
||||
nix develop -c bash -lc 'cd apps/web && trunk serve --port 1421 --public-url /'
|
||||
```
|
||||
|
||||
## Build
|
||||
|
||||
```bash
|
||||
nix develop -c bash -lc 'cd apps/web && trunk build --release --public-url /'
|
||||
```
|
||||
|
||||
5
apps/web/Trunk.toml
Normal file
5
apps/web/Trunk.toml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[build]
|
||||
target = "index.html"
|
||||
dist = "dist"
|
||||
public_url = "/"
|
||||
|
||||
17
apps/web/index.html
Normal file
17
apps/web/index.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>every.channel</title>
|
||||
<meta
|
||||
name="description"
|
||||
content="Watch and share free over-the-air TV. Local first, global when you want."
|
||||
/>
|
||||
<link data-trunk rel="css" href="style.css" />
|
||||
<link data-trunk rel="rust" data-wasm-opt="z" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="main"></div>
|
||||
</body>
|
||||
</html>
|
||||
125
apps/web/src/main.rs
Normal file
125
apps/web/src/main.rs
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
use dioxus::prelude::*;
|
||||
use wasm_bindgen_futures::JsFuture;
|
||||
|
||||
fn main() {
|
||||
dioxus::launch(App);
|
||||
}
|
||||
|
||||
#[component]
|
||||
fn App() -> Element {
|
||||
let mut link = use_signal(|| "".to_string());
|
||||
let mut status = use_signal(|| "".to_string());
|
||||
|
||||
rsx! {
|
||||
div { class: "page",
|
||||
header { class: "top",
|
||||
div { class: "brand",
|
||||
div { class: "brand-title", "every.channel" }
|
||||
div { class: "brand-subtitle",
|
||||
"Watch and share free over-the-air TV. Local first, global when you want."
|
||||
}
|
||||
}
|
||||
nav { class: "nav",
|
||||
a { href: "#watch", "Watch" }
|
||||
a { href: "#directory", "Directory" }
|
||||
a { href: "#join", "Join" }
|
||||
a { href: "#about", "Info" }
|
||||
}
|
||||
}
|
||||
|
||||
div { class: "grid",
|
||||
section { class: "card section", id: "watch",
|
||||
div { class: "card-title", "Watch" }
|
||||
div { class: "h1", "Watch a link" }
|
||||
div { class: "p",
|
||||
"Got a link from a friend? Paste it here to copy, then open the desktop app."
|
||||
}
|
||||
div { class: "row",
|
||||
input {
|
||||
class: "input",
|
||||
placeholder: "every.channel://watch?...",
|
||||
value: "{link.read()}",
|
||||
oninput: move |evt| link.set(evt.value()),
|
||||
}
|
||||
button {
|
||||
class: "btn primary",
|
||||
onclick: move |_| {
|
||||
let value = link.read().trim().to_string();
|
||||
if value.is_empty() {
|
||||
status.set("Paste a link first".to_string());
|
||||
return;
|
||||
}
|
||||
let mut status = status.clone();
|
||||
spawn(async move {
|
||||
match copy_to_clipboard(value).await {
|
||||
Ok(_) => status.set("Copied! Open the app and paste under Watch a Link.".to_string()),
|
||||
Err(err) => status.set(format!("Copy failed: {err}")),
|
||||
}
|
||||
});
|
||||
},
|
||||
"Copy"
|
||||
}
|
||||
}
|
||||
if !status.read().is_empty() {
|
||||
div { class: "kicker",
|
||||
span { class: "dot" }
|
||||
span { "{status.read()}" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
section { class: "card section", id: "directory",
|
||||
div { class: "card-title", "Directory" }
|
||||
div { class: "h1", "Find channels from people you trust" }
|
||||
div { class: "p",
|
||||
"The directory is opt-in. You choose what to share and who to connect with."
|
||||
}
|
||||
div { class: "kicker",
|
||||
span { class: "dot" }
|
||||
span { "Enable Nearby or Public reach in the app to find others." }
|
||||
}
|
||||
}
|
||||
|
||||
section { class: "card section", id: "join",
|
||||
div { class: "card-title", "Join" }
|
||||
div { class: "h1", "Run your own" }
|
||||
div { class: "p",
|
||||
"Anyone can watch, share, and relay. Works with HDHomeRun, Linux TV tuners, and live streams."
|
||||
}
|
||||
div { class: "kicker",
|
||||
span { class: "dot" }
|
||||
span { "Desktop app and CLI available now." }
|
||||
}
|
||||
}
|
||||
|
||||
section { class: "card section", id: "about",
|
||||
div { class: "card-title", "About" }
|
||||
div { class: "h1", "A small promise" }
|
||||
div { class: "p",
|
||||
"TV signals are just waves in the air. This project makes it easier to pick them up and share them with others."
|
||||
}
|
||||
div { class: "kicker",
|
||||
span { class: "dot" }
|
||||
span { "Open source. No central server." }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
footer { class: "footer",
|
||||
span { "AGPLv3" }
|
||||
span { "every.channel" }
|
||||
a { href: "https://every.channel", "every.channel" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async fn copy_to_clipboard(text: String) -> Result<(), String> {
|
||||
let window = web_sys::window().ok_or_else(|| "window unavailable".to_string())?;
|
||||
let clipboard = window.navigator().clipboard();
|
||||
let promise = clipboard.write_text(&text);
|
||||
JsFuture::from(promise)
|
||||
.await
|
||||
.map_err(|err| format!("clipboard write rejected: {err:?}"))?;
|
||||
Ok(())
|
||||
}
|
||||
285
apps/web/style.css
Normal file
285
apps/web/style.css
Normal file
|
|
@ -0,0 +1,285 @@
|
|||
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500&display=swap");
|
||||
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--bg: #f8f5f0;
|
||||
--bg-muted: #f2ede5;
|
||||
--card: rgba(255, 255, 255, 0.82);
|
||||
--ink: #1a1814;
|
||||
--ink-muted: #5c574d;
|
||||
--border: rgba(26, 24, 20, 0.10);
|
||||
--shadow: 0 16px 40px rgba(26, 24, 20, 0.10);
|
||||
--accent: #18a89b;
|
||||
--accent-ink: #0c6f68;
|
||||
--warm: #d4915a;
|
||||
--warm-muted: rgba(232, 160, 92, 0.12);
|
||||
font-family: "Space Grotesk", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
|
||||
font-feature-settings: "ss01" 1;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
color: var(--ink);
|
||||
background: linear-gradient(168deg, #fdfaf5 0%, #f8f5f0 35%, #f4f1ec 70%, #f0ece6 100%);
|
||||
}
|
||||
|
||||
/* Subtle "old TV" nod: soft phosphor glow and faint scanlines */
|
||||
body::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background-image:
|
||||
radial-gradient(ellipse 80% 60% at 15% 10%, rgba(232, 160, 92, 0.08), transparent 50%),
|
||||
radial-gradient(ellipse 60% 50% at 85% 15%, rgba(24, 168, 155, 0.06), transparent 45%),
|
||||
radial-gradient(ellipse 70% 40% at 50% 90%, rgba(232, 160, 92, 0.05), transparent 50%),
|
||||
repeating-linear-gradient(
|
||||
0deg,
|
||||
transparent 0px,
|
||||
transparent 2px,
|
||||
rgba(26, 24, 20, 0.012) 2px,
|
||||
rgba(26, 24, 20, 0.012) 4px
|
||||
);
|
||||
pointer-events: none;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
#main {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.page {
|
||||
max-width: 1120px;
|
||||
margin: 0 auto;
|
||||
padding: 24px clamp(16px, 4vw, 40px) 40px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
animation: fadeIn 0.5s ease-out;
|
||||
}
|
||||
|
||||
.top {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.brand {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.brand-title {
|
||||
font-size: clamp(24px, 2.6vw, 30px);
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.025em;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.brand-subtitle {
|
||||
font-size: 12px;
|
||||
color: var(--ink-muted);
|
||||
max-width: 44ch;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.nav {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.nav a {
|
||||
text-decoration: none;
|
||||
color: var(--ink-muted);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
padding: 6px 10px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(255, 255, 255, 0.65);
|
||||
transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
|
||||
}
|
||||
|
||||
.nav a:hover {
|
||||
transform: translateY(-1px);
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
color: var(--ink);
|
||||
box-shadow: 0 8px 20px rgba(26, 24, 20, 0.06);
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--card);
|
||||
box-shadow: var(--shadow);
|
||||
padding: 18px;
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: 10px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
color: var(--ink-muted);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.h1 {
|
||||
font-size: clamp(16px, 1.8vw, 19px);
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.015em;
|
||||
margin-bottom: 8px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.p {
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: 6px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.input {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
padding: 8px 10px;
|
||||
font-size: 11px;
|
||||
background: rgba(242, 237, 229, 0.6);
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.input:focus {
|
||||
outline: none;
|
||||
border-color: rgba(24, 168, 155, 0.4);
|
||||
box-shadow: 0 0 0 3px rgba(24, 168, 155, 0.08);
|
||||
}
|
||||
|
||||
.btn {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
padding: 8px 12px;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
color: var(--ink);
|
||||
transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 6px 16px rgba(26, 24, 20, 0.06);
|
||||
}
|
||||
|
||||
.btn.primary {
|
||||
background: var(--accent-ink);
|
||||
color: #fff;
|
||||
border-color: rgba(12, 111, 104, 0.3);
|
||||
}
|
||||
|
||||
.btn.primary:hover {
|
||||
box-shadow: 0 6px 16px rgba(12, 111, 104, 0.2);
|
||||
}
|
||||
|
||||
.kicker {
|
||||
margin-top: 8px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 6px 10px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--warm-muted);
|
||||
color: var(--ink-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--warm);
|
||||
box-shadow: 0 0 0 3px rgba(232, 160, 92, 0.2);
|
||||
}
|
||||
|
||||
.section {
|
||||
scroll-margin-top: 12px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: "IBM Plex Mono", ui-monospace, monospace;
|
||||
font-size: 0.9em;
|
||||
background: rgba(26, 24, 20, 0.05);
|
||||
padding: 2px 5px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
margin-top: 6px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid var(--border);
|
||||
font-size: 10px;
|
||||
color: var(--ink-muted);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.footer a {
|
||||
color: var(--ink-muted);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.footer a:hover {
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(4px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.top {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
.nav {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue