Skip to content

Commit fe65146

Browse files
authored
Update 404 page with new styles and scripts
1 parent 0c9a4bc commit fe65146

1 file changed

Lines changed: 25 additions & 24 deletions

File tree

‎404.html‎

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
66
<title>404 · devtemDesign</title>
77
<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>
1111

1212
<style>
1313
/* ── TEMPLATE SWITCHER ─────────────────────────────────────── */
@@ -54,14 +54,15 @@
5454
/* ── 404 HERO OVERRIDE ─────────────────────────────────────── */
5555

5656
/* Collapse the engine's default hero content to near-zero */
57-
.hero-tag,
57+
.hero-badge,
5858
.hero-title,
5959
.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; }
6566

6667
.hero {
6768
min-height: 100vh;
@@ -284,15 +285,15 @@
284285
logoName: "DEVTEM",
285286
logo: "https://fscss.devtem.org/assets/images/fscss.png",
286287
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",
294295
// Hero content hidden via CSS; these just prevent engine defaults showing through
295-
heroTag: "404",
296+
heroBadge: "404",
296297
heroTitleLine1: "",
297298
heroTitleLine2: "",
298299
heroSubtitle: "",
@@ -342,13 +343,13 @@
342343
{ label: "Terms of Use", href: "/terms" },
343344
{ label: "License (MIT)", href: "/license" }
344345
],
345-
copy: `© ${new Date().getFullYear()} Figsh Digital · devtemDesign is open source`
346+
copy: `© ${new Date().getFullYear()} Figsh / DevTemple · devtemDesign is open source`
346347
}
347348
};
348349

349350
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>`;
352353

353354
// ── RENDER ───────────────────────────────────────────────────────
354355
function render(template) {
@@ -399,9 +400,9 @@
399400

400401
hero.appendChild(block);
401402

402-
document.querySelector(".nav-logo").onclick = () =>{
403-
location.href = "/";
404-
}
403+
document.querySelector(".nav-logo").onclick = () => {
404+
location.href = "/";
405+
}
405406
// Copy CDN button
406407
document.getElementById('copyCdnBtn').addEventListener('click', function() {
407408
navigator.clipboard.writeText(CDN_SNIPPET).then(() => {
@@ -427,6 +428,7 @@
427428
}
428429
}
429430

431+
430432
// ── TEMPLATE SWITCHER ────────────────────────────────────────────
431433
function setActiveBtn(template) {
432434
document.querySelectorAll('.template-btn').forEach(btn => {
@@ -461,4 +463,3 @@ <h1 style="font-size:2rem;margin-bottom:12px;">Page not found</h1>
461463
</script>
462464
</body>
463465
</html>
464-

0 commit comments

Comments
 (0)