Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
249 lines (227 loc) · 11.2 KB
/
Copy pathindex.html
File metadata and controls
249 lines (227 loc) · 11.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!DOCTYPE html>
<html lang="en">
<head>
<title>devtemDesign.js | Build Animated Landing Pages & Websites with JavaScript</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<meta name="description" content="Build stunning landing pages, portfolios, SaaS websites, documentation sites, and marketing pages with devtemDesign.js. Generate beautiful animated interfaces from a single configuration object.">
<meta name="keywords" content="devtemDesign, landing page builder, animated website framework, JavaScript UI framework, portfolio website builder, website generator, frontend framework, glassmorphism UI, SaaS website template, JavaScript website builder, web design framework, responsive website generator, DevTemple">
<meta name="author" content="DevTemple">
<meta name="robots" content="index, follow, max-image-preview:large">
<meta name="theme-color" content="#01000c">
<link rel="canonical" href="https://design.devtem.org/">
<meta name="application-name" content="devtemDesign">
<meta name="apple-mobile-web-app-title" content="devtemDesign">
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:site_name" content="devtemDesign">
<meta property="og:title" content="devtemDesign.js | Animated Website Framework">
<meta property="og:description" content="Create landing pages, portfolios, SaaS websites, and documentation sites from a single configuration object.">
<meta property="og:url" content="https://design.devtem.org/">
<meta property="og:image" content="https://design.devtem.org/assets/images/og.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="devtemDesign Website Builder and UI Framework">
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="devtemDesign.js | Animated Website Framework">
<meta name="twitter:description" content="Build landing pages, portfolios, SaaS websites, and modern web experiences with a single configuration object.">
<meta name="twitter:image" content="https://design.devtem.org/assets/images/og.jpg">
<meta name="googlebot" content="index,follow">
<link rel="icon" href="https://design.devtem.org/assets/images/logo.png">
<link rel="apple-touch-icon" href="https://design.devtem.org/assets/images/logo.png">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "devtemDesign",
"applicationCategory": "DeveloperApplication",
"operatingSystem": "Web",
"url": "https://design.devtem.org/",
"image": "https://design.devtem.org/assets/images/og.jpg",
"description": "JavaScript framework for building animated landing pages, portfolios, SaaS websites, and documentation sites from a single configuration object.",
"author": { "@type": "Organization", "name": "DevTemple" },
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" }
}
</script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/devtemdesign@0.1.0/style.min.css">
<script src="https://cdn.jsdelivr.net/npm/devtemdesign@0.1.0/script.min.js"></script>
<style>
/* Template switcher: follows the active theme tokens */
.template-switcher {
position: fixed; bottom: 16px; left: 16px; z-index: 95;
max-width: calc(100vw - 92px);
display: flex; align-items: center; gap: 4px; padding: 6px 10px;
border-radius: 60px; border: 1px solid var(--glass-border);
background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
font-family: monospace; overflow-x: auto; scrollbar-width: none;
}
.template-switcher::-webkit-scrollbar { display: none; }
.template-switcher .ico { color: var(--muted); margin: 0 6px 0 2px; flex: none; }
.template-btn {
flex: none; padding: 6px 12px; border-radius: 40px;
color: var(--muted); font-family: monospace; font-size: 0.7rem; letter-spacing: 0.05em;
transition: background 0.2s, color 0.2s;
}
.template-btn:hover { background: var(--surface); color: var(--text); }
.template-btn.active { background: var(--accent); color: var(--bg-deep); font-weight: 700; }
.toast-notification {
position: fixed; bottom: 72px; left: 16px; z-index: 9999;
background: var(--accent); color: var(--bg-deep);
padding: 10px 20px; border-radius: 40px; font: 600 0.8rem monospace;
opacity: 0; transform: translateY(20px); transition: all 0.3s ease; pointer-events: none;
}
.toast-notification.show { opacity: 1; transform: none; }
@media (max-width: 680px) {
.template-switcher { bottom: 14px; left: 14px; padding: 4px 8px; }
.template-btn { padding: 5px 10px; font-size: 0.62rem; }
.toast-notification { bottom: 64px; left: 14px; }
}
</style>
</head>
<body>
<div id="app-root"></div>
<div class="template-switcher" id="template-switcher" role="group" aria-label="Template switcher">
<span class="ico" aria-hidden="true"><i class="fas fa-palette"></i></span>
</div>
<div id="toast" class="toast-notification" role="status" aria-live="polite">✓ Copied to clipboard</div>
<script>
const CDN_CSS = '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/devtemdesign@0.1.0/style.min.css">';
const CDN_JS = '<script src="https://cdn.jsdelivr.net/npm/devtemdesign@0.1.0/script.min.js"><\/script>';
const config = {
template: "cyber",
logo: "https://fscss.devtem.org/assets/images/fscss.png",
logoName: "DEVTEM",
navLinks: [
{ label: "Docs", href: "/docs" },
{ label: "Sandbox", href: "/sandbox" },
{ label: "Schema API", href: "/api" },
{ label: "npm Package", href: "https://www.npmjs.com/package/devtemdesign" },
{ label: "Templates", href: "https://devtem.org/home?q=@devtemDesign" }
],
ctaText: "CDN",
heroBadge: "Core Framework // devtemdesign@0.1.0",
heroTitleLine1: "Declarative UI,",
heroTitleLine2: "Zero-Config Motion",
heroSubtitle: "One configuration schema. Infinite animated synthesis. Stop building standard UI boilerplate. Let the engine paint the viewport.",
primaryBtnText: "Try Without Code",
primaryBtnHref: "/builder",
secondaryBtnText: "Copy CDN",
secondaryBtnHref: "#",
brands: ["NPM", "FSCSS", "DEVTEMPLE", "ESBUILD", "CSS3", "HTML5", "WEBGL"],
brandsSubtitle: "Engine Architecture Utilities & Dependencies",
featuresLabel: "<i class='fas fa-code-branch'></i> CORE ENGINE MECHANICS",
featuresTitle: "Pass raw structural data. The canvas resolves itself dynamically.",
features: [
{
title: "Deterministic Engine Schema",
desc: "Strict object parsing transforms simple titles, tags, and matrices into hardware-accelerated layouts without HTML creation workflows.",
icon: "<i class='fas fa-cube'></i>"
},
{
title: "Ambient Micro-Interactions",
desc: "Integrated magnet-ring cursor, click ripples, card spotlight, and scroll reveal ship bundled out of the box.",
icon: "<i class='fas fa-magic'></i>"
},
{
title: "Adaptive Theme Synthesis",
desc: "Switch between 7 templates at runtime. The engine morphs tokens across glass layers, backdrops, and neon accents.",
icon: "<i class='fas fa-palette'></i>"
}
],
panels: [
{
tag: "FRAMEWORK API",
title: "devtemDesign(container, config)",
desc: "The entire UI initialized through a single handler. It returns setTemplate() and destroy() for runtime control."
},
{
tag: "PERFORMANCE LAYER",
title: "Passive Inertia Transforms",
desc: "No bulky execution bundles. Native Intersection Observers decouple scrolling routines from render cycles."
}
],
footer: {
tagline: "Declarative UI engine for the modern web. Zero config. Full motion.",
columns: [
{ heading: "Product", links: [
{ label: "Documentation", href: "/docs" },
{ label: "Sandbox", href: "/sandbox" },
{ label: "Schema API", href: "/api" },
{ label: "Changelog", href: "https://github.com/devtem-dev/devtemDesign" }
]},
{ heading: "Resources", links: [
{ label: "npm Package", href: "https://www.npmjs.com/package/devtemdesign" },
{ label: "GitHub", href: "https://github.com/devtem-dev" },
{ label: "DevTemple", href: "https://devtem.org/home?q=@devtemDesign" },
{ label: "FSCSS Engine", href: "https://fscss.devtem.org" }
]},
{ heading: "Company", links: [
{ label: "About DevTemple", href: "https://devtem.org" },
{ label: "Templates", href: "https://devtem.org/home?q=@devtemDesign" },
{ label: "Subscribe", href: "https://devtem.org/s?s=@devtemDesign" }
]}
],
social: [
{ icon: "fab fa-github", href: "https://github.com/devtem-dev/devtemDesign", label: "GitHub" },
{ icon: "fab fa-twitter", href: "https://twitter.com/fscss_ttr", label: "Twitter" },
{ icon: "fab fa-npm", href: "https://npmjs.com/package/devtemdesign", label: "npm" },
{ icon: "fab fa-dev", href: "https://dev.to/fscss", label: "DEV" }
],
legal: [
{ label: "Privacy Policy", href: "/privacy" },
{ label: "Terms of Use", href: "/terms" },
{ label: "License (MIT)", href: "/license" }
],
copy: `© ${new Date().getFullYear()} Figsh / DevTemple · devtemDesign is open source`
}
};
/* ---------- render once; theme changes use setTemplate (no re-render) ---------- */
const page = devtemDesign("app-root", config);
/* ---------- template switcher, built from the engine's own list ---------- */
const bar = document.getElementById("template-switcher");
const LABELS = { monochrome: "MONO" };
devtemDesign.templates.forEach(name => {
const b = document.createElement("button");
b.type = "button";
b.className = "template-btn" + (name === config.template ? " active" : "");
b.dataset.template = name;
b.textContent = LABELS[name] || name.toUpperCase();
bar.appendChild(b);
});
bar.addEventListener("click", e => {
const b = e.target.closest(".template-btn");
if (!b) return;
page.setTemplate(b.dataset.template);
bar.querySelectorAll(".template-btn").forEach(x => x.classList.toggle("active", x === b));
});
/* ---------- copy CDN (delegated, so it survives any re-render) ---------- */
const toast = document.getElementById("toast");
let toastTimer;
document.addEventListener("click", async e => {
const a = e.target.closest(".hero-actions .btn-ghost, .nav-cta");
if (!a) return;
e.preventDefault();
const text = a.classList.contains("nav-cta") ? CDN_JS : CDN_CSS + "\n" + CDN_JS;
try {
await navigator.clipboard.writeText(text);
} catch (err) {
toast.textContent = "Copy failed. Select the text manually.";
toast.classList.add("show");
clearTimeout(toastTimer);
toastTimer = setTimeout(() => toast.classList.remove("show"), 2200);
return;
}
toast.textContent = "✓ Copied to clipboard";
toast.classList.add("show");
clearTimeout(toastTimer);
toastTimer = setTimeout(() => toast.classList.remove("show"), 2000);
if (!a.dataset.orig) a.dataset.orig = a.innerHTML;
a.textContent = "✓ Copied!";
setTimeout(() => { a.innerHTML = a.dataset.orig; delete a.dataset.orig; }, 1500);
});
</script>
</body>
</html>