Full documentation site with sidebar navigation, search, markdown rendering, and prev/next navigation. Initial content: introduction, chain overview, name system, API reference, CIC governance. Lethean Boot.php now only registers routes on matching domains (lthn.io, testnet.lthn.io, localhost) — no longer bleeds onto api.*, docs.*, explorer.* subdomains. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
121 lines
7.2 KiB
PHP
121 lines
7.2 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>@yield('title', 'Documentation') — Lethean Docs</title>
|
|
<meta name="description" content="@yield('meta_description', 'Lethean blockchain documentation — chain, names, DNS, proxy, API reference.')">
|
|
<link rel="preconnect" href="https://fonts.bunny.net">
|
|
<link href="https://fonts.bunny.net/css?family=inter:400,500,600,700&family=jetbrains-mono:400,500&display=swap" rel="stylesheet">
|
|
<style>
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
:root {
|
|
--bg: #0a0e17; --surface: #111827; --border: #1f2937; --border-light: #374151;
|
|
--text: #e5e7eb; --muted: #9ca3af; --dim: #6b7280;
|
|
--accent: #818cf8; --green: #34d399; --amber: #fbbf24;
|
|
--sidebar-w: 260px; --content-max: 780px;
|
|
}
|
|
html { scroll-behavior: smooth; }
|
|
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
|
|
a { color: var(--accent); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
code { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; background: var(--surface); padding: 0.15rem 0.4rem; border-radius: 0.25rem; }
|
|
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem; overflow-x: auto; margin: 1.5rem 0; line-height: 1.5; }
|
|
pre code { background: none; padding: 0; font-size: 0.85rem; }
|
|
|
|
/* Layout */
|
|
.docs-layout { display: flex; min-height: 100vh; }
|
|
|
|
/* Sidebar */
|
|
.sidebar { width: var(--sidebar-w); border-right: 1px solid var(--border); padding: 1.5rem 0; position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; background: var(--bg); z-index: 10; }
|
|
.sidebar-brand { padding: 0 1.25rem 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
|
|
.sidebar-brand a { color: var(--text); font-weight: 700; font-size: 1.1rem; }
|
|
.sidebar-brand span { color: var(--accent); }
|
|
.sidebar-brand p { color: var(--dim); font-size: 0.75rem; margin-top: 0.25rem; }
|
|
.sidebar-search { padding: 0 1rem 1rem; }
|
|
.sidebar-search input { width: 100%; padding: 0.5rem 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 0.375rem; color: var(--text); font-size: 0.85rem; }
|
|
.sidebar-search input::placeholder { color: var(--dim); }
|
|
.sidebar-section { padding: 0.5rem 0; }
|
|
.sidebar-section-title { padding: 0.4rem 1.25rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
|
|
.sidebar-link { display: block; padding: 0.35rem 1.25rem 0.35rem 1.75rem; font-size: 0.85rem; color: var(--muted); transition: color 0.15s, background 0.15s; }
|
|
.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,0.03); text-decoration: none; }
|
|
.sidebar-link.active { color: var(--accent); background: rgba(129,140,248,0.08); border-right: 2px solid var(--accent); }
|
|
|
|
/* Content */
|
|
.content { flex: 1; margin-left: var(--sidebar-w); padding: 2rem 2.5rem 4rem; }
|
|
.content-inner { max-width: var(--content-max); }
|
|
|
|
/* Prose */
|
|
.prose h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
|
|
.prose h2 { font-size: 1.5rem; font-weight: 600; margin: 2.5rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
|
|
.prose h3 { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 0.5rem; }
|
|
.prose h4 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--muted); }
|
|
.prose p { margin-bottom: 1rem; }
|
|
.prose ul, .prose ol { margin: 0.5rem 0 1.5rem 1.5rem; }
|
|
.prose li { margin-bottom: 0.25rem; }
|
|
.prose strong { color: var(--text); font-weight: 600; }
|
|
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
|
|
.prose th { text-align: left; padding: 0.6rem; border-bottom: 2px solid var(--border); color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
.prose td { padding: 0.6rem; border-bottom: 1px solid var(--border); }
|
|
.prose blockquote { border-left: 3px solid var(--accent); padding: 0.5rem 1rem; margin: 1.5rem 0; background: rgba(129,140,248,0.05); border-radius: 0 0.375rem 0.375rem 0; }
|
|
.prose img { max-width: 100%; border-radius: 0.5rem; }
|
|
|
|
/* Prev/Next nav */
|
|
.page-nav { display: flex; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); gap: 1rem; }
|
|
.page-nav a { display: block; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 0.5rem; font-size: 0.85rem; flex: 1; }
|
|
.page-nav a:hover { border-color: var(--accent); text-decoration: none; }
|
|
.page-nav .label { font-size: 0.7rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; }
|
|
.page-nav .prev { text-align: left; }
|
|
.page-nav .next { text-align: right; }
|
|
|
|
/* Footer */
|
|
.docs-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--dim); }
|
|
.docs-footer a { color: var(--muted); }
|
|
|
|
/* Mobile */
|
|
@media (max-width: 768px) {
|
|
.sidebar { display: none; }
|
|
.content { margin-left: 0; padding: 1.5rem 1rem; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="docs-layout">
|
|
<nav class="sidebar">
|
|
<div class="sidebar-brand">
|
|
<a href="/"><span>.lthn</span> Docs</a>
|
|
<p>Lethean Blockchain</p>
|
|
</div>
|
|
|
|
<div class="sidebar-search">
|
|
<form action="/search" method="GET">
|
|
<input type="text" name="q" placeholder="Search docs..." value="{{ request('q') }}">
|
|
</form>
|
|
</div>
|
|
|
|
@foreach($navigation as $section => $data)
|
|
<div class="sidebar-section">
|
|
<div class="sidebar-section-title">{{ $data['label'] }}</div>
|
|
@foreach($data['pages'] as $page => $label)
|
|
<a href="/{{ $section }}/{{ $page }}"
|
|
class="sidebar-link {{ (isset($currentSection) && $currentSection === $section && isset($currentPage) && $currentPage === $page) ? 'active' : '' }}">
|
|
{{ $label }}
|
|
</a>
|
|
@endforeach
|
|
</div>
|
|
@endforeach
|
|
|
|
<div class="sidebar-section" style="margin-top: 1rem; padding: 0.5rem 1.25rem; border-top: 1px solid var(--border);">
|
|
<a href="https://lthn.io" class="sidebar-link" style="padding-left: 0;">lthn.io</a>
|
|
<a href="https://forge.lthn.ai" class="sidebar-link" style="padding-left: 0;">Source Code</a>
|
|
</div>
|
|
</nav>
|
|
|
|
<main class="content">
|
|
<div class="content-inner">
|
|
@yield('content')
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</body>
|
|
</html>
|