lthn.io/app/Website/Lethean/Views/layout.blade.php
Claude 8a21996add
security: add CSP nonce attributes to inline scripts and styles
Added @cspnonce to all inline <script> and <style> tags in layout,
explorer, and register views. Enabled nonce generation in headers
config. unsafe-inline kept as fallback. Nonces will activate after
container restart when the Headers Boot registers the Blade directive.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 10:22:38 +01:00

139 lines
6.9 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', 'Lethean') .lthn TLD</title>
<meta name="description" content="@yield('meta_description', 'Register .lthn blockchain domain names. Decentralised DNS, VPN routing, and Web3 identity on the Lethean network.')">
<meta property="og:title" content="@yield('title', 'Lethean') — .lthn TLD">
<meta property="og:description" content="@yield('meta_description', 'Blockchain-native domain names. Register a .lthn identity, point it anywhere, own it forever.')">
<meta property="og:type" content="website">
<meta property="og:url" content="https://lthn.io{{ request()->getRequestUri() }}">
<meta property="og:site_name" content=".lthn TLD — Lethean">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="@yield('title', 'Lethean') — .lthn TLD">
<link rel="canonical" href="https://lthn.io{{ request()->getRequestUri() }}">
@verbatim
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Lethean CIC",
"alternateName": ".lthn TLD",
"url": "https://lthn.io",
"description": "Community Interest Company operating the .lthn top-level domain on the Lethean blockchain. Web3 identity, DNS, and decentralised VPN services.",
"foundingDate": "2018",
"legalName": "Lethean Community Interest Company",
"areaServed": "Worldwide",
"knowsAbout": ["blockchain", "DNS", "VPN", "Web3", "domain names", "decentralised networks", "proxy services"],
"sameAs": [
"https://github.com/lethean",
"https://forge.lthn.ai"
],
"contactPoint": {
"@type": "ContactPoint",
"email": "developers@lethean.io",
"contactType": "technical support"
},
"offers": {
"@type": "Offer",
"name": ".lthn Domain Name",
"description": "Blockchain-native domain name registration on the Lethean network",
"priceCurrency": "GBP",
"price": "0.00",
"url": "https://order.lthn.ai/order/",
"availability": "https://schema.org/InStock"
}
}
</script>
@endverbatim
@yield('schema')
<style @cspnonce>
:root {
--bg: #0a0e17; --surface: #111827; --border: #1f2937;
--text: #e5e7eb; --muted: #9ca3af; --accent: #818cf8;
--green: #34d399; --amber: #fbbf24;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
nav { border-bottom: 1px solid var(--border); padding: 1rem 0; }
nav .inner { display: flex; align-items: center; justify-content: space-between; }
nav .brand { font-size: 1.25rem; font-weight: 700; color: var(--text); }
nav .brand span { color: var(--accent); }
nav .links { display: flex; gap: 1.5rem; }
nav .links a { color: var(--muted); font-size: 0.875rem; }
nav .links a:hover { color: var(--text); text-decoration: none; }
.hero { text-align: center; padding: 4rem 0 3rem; }
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--muted); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; padding: 2rem 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.5rem; text-align: center; }
.stat .value { font-size: 1.75rem; font-weight: 700; color: var(--green); }
.stat .label { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.section { padding: 2rem 0; }
.section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.5rem; }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.badge { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.badge-green { background: rgba(52,211,153,0.15); color: var(--green); }
.badge-amber { background: rgba(251,191,36,0.15); color: var(--amber); }
footer { border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 3rem; text-align: center; color: var(--muted); font-size: 0.8rem; }
.api-link { display: inline-block; margin-top: 1.5rem; padding: 0.5rem 1.5rem; background: var(--accent); color: #fff; border-radius: 0.5rem; font-weight: 600; font-size: 0.875rem; }
.api-link:hover { opacity: 0.9; text-decoration: none; }
code { background: var(--surface); padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.85em; }
</style>
<script @cspnonce>window.LTHN_API = '{{ config('chain.api_url', '') }}';</script>
</head>
<body>
<nav>
<div class="container inner">
<a href="/" class="brand"><span>.lthn</span> TLD</a>
<div class="links">
<a href="/">Home</a>
<a href="/explorer">Explorer</a>
<a href="/names">Names</a>
<a href="/services">Services</a>
<a href="/pricing">Pricing</a>
<a href="/network">Network</a>
<a href="/about">Why</a>
<a href="/docs">API</a>
</div>
</div>
</nav>
<main class="container">
@yield('content')
</main>
<footer>
<div class="container" style="display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;">
<div>
Lethean CIC &mdash; Community Interest Company
</div>
<div style="display: flex; gap: 1.5rem;">
<a href="/pricing">Pricing</a>
<a href="/docs">API</a>
<a href="/sunrise">Sunrise</a>
<a href="https://order.lthn.ai">Order</a>
<a href="/status">Status</a>
<a href="https://forge.lthn.ai">Source</a>
<a href="mailto:developers@lethean.io">Contact</a>
</div>
</div>
</footer>
</body>
</html>