|
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"> |
6 | 6 | <title>404 · devtemDesign</title> |
7 | 7 | <meta name="description" content="Page not found — but the engine still runs."> |
8 | | - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> |
9 | | - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/devtemdesign@0.0.2/style.css"> |
10 | | - <script src="https://cdn.jsdelivr.net/npm/devtemdesign@0.0.2/script.js"></script> |
| 8 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"> |
| 9 | + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/devtemdesign@0.1.0/style.min.css"> |
| 10 | + <script src="https://cdn.jsdelivr.net/npm/devtemdesign@0.1.0/script.min.js"></script> |
11 | 11 |
|
12 | 12 | <style> |
13 | 13 | /* ── TEMPLATE SWITCHER ─────────────────────────────────────── */ |
|
54 | 54 | /* ── 404 HERO OVERRIDE ─────────────────────────────────────── */ |
55 | 55 |
|
56 | 56 | /* Collapse the engine's default hero content to near-zero */ |
57 | | - .hero-tag, |
| 57 | + .hero-badge, |
58 | 58 | .hero-title, |
59 | 59 | .hero-sub, |
60 | | - .hero-buttons, |
61 | | - .hero-inline-brands, |
62 | | - .features, |
63 | | - .panels-section, |
64 | | - .marquee-section { display: none !important; } |
| 60 | + .hero-actions, |
| 61 | + .hero-brands, |
| 62 | + .features-grid, |
| 63 | + .panels-grid, |
| 64 | + .marquee-section, |
| 65 | + .section:not(.cta-sec) { display: none !important; } |
65 | 66 |
|
66 | 67 | .hero { |
67 | 68 | min-height: 100vh; |
|
284 | 285 | logoName: "DEVTEM", |
285 | 286 | logo: "https://fscss.devtem.org/assets/images/fscss.png", |
286 | 287 | navLinks: [ |
287 | | - { label: "Docs", href: "/docs" }, |
288 | | - { label: "Sandbox", href: "/sandbox" }, |
289 | | - { label: "Schema API", href: "/api" }, |
290 | | - { label: "npm Package",href: "https://www.npmjs.com/package/devtemdesign" }, |
291 | | - { label: "templates", href: "https://devtem.org/home?q=@devtemDesign"} |
292 | | - ], |
293 | | - ctaText: "CDN →", |
| 288 | + { label: "Docs", href: "/docs" }, |
| 289 | + { label: "Sandbox", href: "/sandbox" }, |
| 290 | + { label: "Schema API", href: "/api" }, |
| 291 | + { label: "npm Package", href: "https://www.npmjs.com/package/devtemdesign" }, |
| 292 | + { label: "templates", href: "https://devtem.org/s?s=@devtemDesign" } |
| 293 | +], |
| 294 | + ctaText: "CDN", |
294 | 295 | // Hero content hidden via CSS; these just prevent engine defaults showing through |
295 | | - heroTag: "404", |
| 296 | + heroBadge: "404", |
296 | 297 | heroTitleLine1: "", |
297 | 298 | heroTitleLine2: "", |
298 | 299 | heroSubtitle: "", |
|
342 | 343 | { label: "Terms of Use", href: "/terms" }, |
343 | 344 | { label: "License (MIT)", href: "/license" } |
344 | 345 | ], |
345 | | - copy: `© ${new Date().getFullYear()} Figsh Digital · devtemDesign is open source` |
| 346 | + copy: `© ${new Date().getFullYear()} Figsh / DevTemple · devtemDesign is open source` |
346 | 347 | } |
347 | 348 | }; |
348 | 349 |
|
349 | 350 | const CDN_SNIPPET = |
350 | | - `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/devtemdesign@0.0.2/style.css">\n` + |
351 | | - `<script src="https://cdn.jsdelivr.net/npm/devtemdesign@0.0.2/script.js"><\/script>`; |
| 351 | + `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/devtemdesign@0.1.0/style.min.css">\n` + |
| 352 | + `<script src="https://cdn.jsdelivr.net/npm/devtemdesign@0.1.0/script.min.js"><\/script>`; |
352 | 353 |
|
353 | 354 | // ── RENDER ─────────────────────────────────────────────────────── |
354 | 355 | function render(template) { |
|
399 | 400 |
|
400 | 401 | hero.appendChild(block); |
401 | 402 |
|
402 | | - document.querySelector(".nav-logo").onclick = () =>{ |
403 | | - location.href = "/"; |
404 | | - } |
| 403 | +document.querySelector(".nav-logo").onclick = () => { |
| 404 | + location.href = "/"; |
| 405 | +} |
405 | 406 | // Copy CDN button |
406 | 407 | document.getElementById('copyCdnBtn').addEventListener('click', function() { |
407 | 408 | navigator.clipboard.writeText(CDN_SNIPPET).then(() => { |
|
427 | 428 | } |
428 | 429 | } |
429 | 430 |
|
| 431 | + |
430 | 432 | // ── TEMPLATE SWITCHER ──────────────────────────────────────────── |
431 | 433 | function setActiveBtn(template) { |
432 | 434 | document.querySelectorAll('.template-btn').forEach(btn => { |
@@ -461,4 +463,3 @@ <h1 style="font-size:2rem;margin-bottom:12px;">Page not found</h1> |
461 | 463 | </script> |
462 | 464 | </body> |
463 | 465 | </html> |
464 | | - |
|
0 commit comments