Skip to content

Commit 02540fa

Browse files
Add EzyCad landing page and SEO meta on browser demo
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent f0d9ab1 commit 02540fa

2 files changed

Lines changed: 274 additions & 12 deletions

File tree

EzyCad/EzyCad.html

Lines changed: 103 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@
33
<head>
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/>
6-
<title>EzyCad</title>
6+
<title>EzyCad — browser demo (WebAssembly)</title>
7+
<meta name="description" content="EzyCad — open-source hobbyist CAD using Open CASCADE (OCCT), Dear ImGui, and OpenGL. Run in your browser via WebAssembly or build from source on GitHub.">
8+
<meta name="keywords" content="EzyCad, CAD, Open CASCADE, OCCT, ImGui, OpenGL, WebAssembly, CNC, machining, STEP, STL">
9+
<link rel="canonical" href="https://trailcode.github.io/EzyCad/EzyCad.html">
10+
<meta property="og:title" content="EzyCad — open-source hobbyist CAD">
11+
<meta property="og:description" content="Design 2D and 3D parts in your browser. Built with OCCT, Dear ImGui, and OpenGL. Source: github.com/trailcode/EzyCad">
12+
<meta property="og:type" content="website">
13+
<meta property="og:url" content="https://trailcode.github.io/EzyCad/EzyCad.html">
14+
<meta property="og:image" content="https://raw.githubusercontent.com/trailcode/EzyCad/main/doc/gen/AI-gen-splashscreen_05_01_2026_512.png">
15+
<meta name="twitter:card" content="summary_large_image">
716
<style>
817
body { margin: 0; background-color: black }
918
.emscripten {
@@ -16,23 +25,96 @@
1625
height: 100%;
1726
overflow: hidden;
1827
display: block;
19-
image-rendering: optimizeSpeed;
20-
image-rendering: -moz-crisp-edges;
21-
image-rendering: -o-crisp-edges;
22-
image-rendering: -webkit-optimize-contrast;
23-
image-rendering: optimize-contrast;
24-
image-rendering: crisp-edges;
25-
image-rendering: pixelated;
26-
-ms-interpolation-mode: nearest-neighbor;
28+
/* Default (smooth) scaling. Do NOT use image-rendering: pixelated here:
29+
when the canvas backing-store size differs from CSS size (HiDPI), the
30+
browser upscales the WebGL surface with nearest-neighbor and ImGui text
31+
looks blocky. */
32+
}
33+
34+
/* Loading splash (Emscripten: wasm download + preloads + first frame) */
35+
#ezycad-splash {
36+
position: fixed;
37+
inset: 0;
38+
z-index: 20;
39+
display: flex;
40+
flex-direction: column;
41+
align-items: center;
42+
justify-content: center;
43+
gap: 1.25rem;
44+
background: #0a0a0c;
45+
color: #e8e8ec;
46+
font-family: system-ui, Segoe UI, Roboto, sans-serif;
47+
transition: opacity 0.35s ease, visibility 0.35s ease;
48+
}
49+
#ezycad-splash.ezycad-splash--hidden {
50+
opacity: 0;
51+
visibility: hidden;
52+
pointer-events: none;
53+
}
54+
#ezycad-splash h1 {
55+
margin: 0;
56+
font-size: 1.75rem;
57+
font-weight: 600;
58+
letter-spacing: 0.04em;
59+
}
60+
#ezycad-splash-status {
61+
margin: 0;
62+
min-height: 1.25em;
63+
font-size: 0.85rem;
64+
color: #9898a8;
65+
text-align: center;
66+
max-width: 90vw;
67+
}
68+
.ezycad-splash-spinner {
69+
width: 40px;
70+
height: 40px;
71+
border: 3px solid #2a2a32;
72+
border-top-color: #5a9fd4;
73+
border-radius: 50%;
74+
animation: ezycad-spin 0.85s linear infinite;
75+
}
76+
@keyframes ezycad-spin {
77+
to { transform: rotate(360deg); }
2778
}
2879
</style>
2980
</head>
3081
<body>
82+
<div id="ezycad-splash" aria-live="polite">
83+
<div class="ezycad-splash-spinner" role="status" aria-label="Loading"></div>
84+
<h1>EzyCad</h1>
85+
<p id="ezycad-splash-status"></p>
86+
</div>
3187
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()"></canvas>
3288
<script type='text/javascript'>
33-
var Module = {
89+
(function() {
90+
var splash = document.getElementById('ezycad-splash');
91+
var statusEl = document.getElementById('ezycad-splash-status');
92+
93+
function setSplashStatus(text) {
94+
if (!statusEl) return;
95+
if (text == null || text === '') {
96+
statusEl.textContent = '';
97+
return;
98+
}
99+
var s = String(text).replace(/\s+/g, ' ').trim();
100+
statusEl.textContent = s;
101+
}
102+
103+
function hideSplash() {
104+
if (!splash) return;
105+
splash.classList.add('ezycad-splash--hidden');
106+
}
107+
108+
window.Module = {
34109
preRun: [],
35-
postRun: [],
110+
postRun: [
111+
function() {
112+
// Let WebGL + ImGui paint once before removing the overlay (avoids a black flash).
113+
requestAnimationFrame(function() {
114+
requestAnimationFrame(hideSplash);
115+
});
116+
}
117+
],
36118
print: (function() {
37119
return function(text) {
38120
text = Array.prototype.slice.call(arguments).join(' ');
@@ -52,11 +134,20 @@
52134
})(),
53135
setStatus: function(text) {
54136
console.log("status: " + text);
137+
setSplashStatus(text);
55138
},
56139
monitorRunDependencies: function(left) {
57-
// no run dependencies to log
140+
if (left > 0)
141+
setSplashStatus('Preparing assets… (' + left + ' remaining)');
142+
else
143+
setSplashStatus('Starting…');
144+
},
145+
onAbort: function(reason) {
146+
setSplashStatus(reason ? ('Load aborted: ' + reason) : 'Load aborted');
58147
}
59148
};
149+
})();
150+
60151
window.onerror = function() {
61152
console.log("onerror: " + event);
62153
};

EzyCad/index.html

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>EzyCad — open-source hobbyist CAD (OCCT, ImGui, OpenGL)</title>
7+
<meta name="description" content="EzyCad (Easy CAD) is open-source hobbyist CAD for machining: sketch, extrude, and export STEP/STL using Open CASCADE, Dear ImGui, and OpenGL. Not EZCAD laser software.">
8+
<meta name="keywords" content="EzyCad, trailcode, CAD, Open CASCADE, OCCT, ImGui, OpenGL, WebAssembly, CNC, machining, STEP, STL">
9+
<link rel="canonical" href="https://trailcode.github.io/EzyCad/">
10+
<meta property="og:title" content="EzyCad — open-source hobbyist CAD">
11+
<meta property="og:description" content="Design 2D and 3D parts for CNC and 3D printing. Built with OCCT, Dear ImGui, and OpenGL. Try the browser demo or browse the source on GitHub.">
12+
<meta property="og:type" content="website">
13+
<meta property="og:url" content="https://trailcode.github.io/EzyCad/">
14+
<meta property="og:image" content="https://raw.githubusercontent.com/trailcode/EzyCad/main/doc/gen/AI-gen-splashscreen_05_01_2026_512.png">
15+
<meta name="twitter:card" content="summary_large_image">
16+
<style>
17+
:root {
18+
color-scheme: dark light;
19+
--bg: #0a0a0c;
20+
--surface: #141418;
21+
--text: #e8e8ec;
22+
--muted: #9898a8;
23+
--accent: #5a9fd4;
24+
--border: #2a2a32;
25+
}
26+
@media (prefers-color-scheme: light) {
27+
:root {
28+
--bg: #f4f4f6;
29+
--surface: #ffffff;
30+
--text: #1a1a22;
31+
--muted: #5a5a68;
32+
--accent: #2a6fa8;
33+
--border: #d8d8e0;
34+
}
35+
}
36+
* { box-sizing: border-box; }
37+
body {
38+
margin: 0;
39+
font-family: system-ui, Segoe UI, Roboto, sans-serif;
40+
background: var(--bg);
41+
color: var(--text);
42+
line-height: 1.6;
43+
}
44+
.wrap {
45+
max-width: 52rem;
46+
margin: 0 auto;
47+
padding: 2rem 1.25rem 3rem;
48+
}
49+
header { text-align: center; margin-bottom: 2rem; }
50+
header img {
51+
max-width: min(100%, 28rem);
52+
height: auto;
53+
border-radius: 0.5rem;
54+
border: 1px solid var(--border);
55+
}
56+
h1 {
57+
margin: 1rem 0 0.25rem;
58+
font-size: 2rem;
59+
letter-spacing: 0.02em;
60+
}
61+
.tagline { color: var(--muted); margin: 0; }
62+
.note {
63+
margin: 1.5rem 0;
64+
padding: 0.75rem 1rem;
65+
background: var(--surface);
66+
border: 1px solid var(--border);
67+
border-radius: 0.5rem;
68+
font-size: 0.95rem;
69+
}
70+
.actions {
71+
display: flex;
72+
flex-wrap: wrap;
73+
gap: 0.75rem;
74+
margin: 1.5rem 0 2rem;
75+
}
76+
.actions a {
77+
display: inline-block;
78+
padding: 0.65rem 1.1rem;
79+
border-radius: 0.4rem;
80+
text-decoration: none;
81+
font-weight: 600;
82+
}
83+
.primary {
84+
background: var(--accent);
85+
color: #fff;
86+
}
87+
.secondary {
88+
background: var(--surface);
89+
color: var(--text);
90+
border: 1px solid var(--border);
91+
}
92+
section {
93+
background: var(--surface);
94+
border: 1px solid var(--border);
95+
border-radius: 0.5rem;
96+
padding: 1.25rem 1.5rem;
97+
margin-bottom: 1.25rem;
98+
}
99+
h2 { margin-top: 0; font-size: 1.15rem; }
100+
ul { padding-left: 1.25rem; }
101+
a { color: var(--accent); }
102+
footer {
103+
margin-top: 2rem;
104+
text-align: center;
105+
color: var(--muted);
106+
font-size: 0.9rem;
107+
}
108+
</style>
109+
</head>
110+
<body>
111+
<div class="wrap">
112+
<header>
113+
<img src="https://raw.githubusercontent.com/trailcode/EzyCad/main/doc/gen/AI-gen-splashscreen_05_01_2026_512.png" width="512" height="512" alt="EzyCad splash screen">
114+
<h1>EzyCad</h1>
115+
<p class="tagline">Easy CAD for hobbyist machinists — Open CASCADE, Dear ImGui, OpenGL</p>
116+
</header>
117+
118+
<p>
119+
<strong>EzyCad</strong> (Easy CAD) is an open-source CAD application for designing and editing
120+
2D and 3D models for machining projects. Sketch, extrude, and apply geometric operations,
121+
then export to <strong>STEP</strong>, <strong>STL</strong>, and other formats for CNC machines or 3D printers.
122+
</p>
123+
124+
<div class="note">
125+
<strong>Not EZCAD laser software.</strong>
126+
<strong>EzyCad</strong> (with a <strong>y</strong>) is mechanical CAD built on OCCT — unrelated to
127+
EZCAD2/EZCAD3 laser marking products. Search for <code>trailcode EzyCad</code> or
128+
<code>site:github.com EzyCad trailcode</code>.
129+
</div>
130+
131+
<div class="actions">
132+
<a class="primary" href="EzyCad.html">Try in browser (WebAssembly)</a>
133+
<a class="secondary" href="https://github.com/trailcode/EzyCad">GitHub repository</a>
134+
<a class="secondary" href="https://ezycad.readthedocs.io/en/latest/usage.html">Documentation</a>
135+
<a class="secondary" href="https://github.com/trailcode/EzyCad/releases">Releases</a>
136+
</div>
137+
138+
<section>
139+
<h2>Features</h2>
140+
<ul>
141+
<li>2D sketching and 3D solid modeling with Open CASCADE Technology (OCCT)</li>
142+
<li>Interactive UI built with Dear ImGui and OpenGL</li>
143+
<li>Desktop (Windows) and browser (Emscripten / WebAssembly) builds</li>
144+
<li>Lua and Python scripting consoles on supported builds</li>
145+
<li>Export for CAM, other CAD tools, and 3D printing</li>
146+
</ul>
147+
</section>
148+
149+
<section>
150+
<h2>Tech stack</h2>
151+
<p>
152+
Open CASCADE (OCCT) · Dear ImGui · OpenGL · GLFW · C++20 · Emscripten (WebAssembly)
153+
</p>
154+
</section>
155+
156+
<section>
157+
<h2>Find the project</h2>
158+
<ul>
159+
<li><a href="https://github.com/trailcode/EzyCad">https://github.com/trailcode/EzyCad</a></li>
160+
<li><a href="https://ezycad.readthedocs.io/">https://ezycad.readthedocs.io/</a></li>
161+
<li><a href="https://trailcode.github.io/EzyCad/EzyCad.html">Browser demo</a></li>
162+
<li><a href="https://github.com/trailcode/EzyCad/discussions">Discussions and community</a></li>
163+
</ul>
164+
</section>
165+
166+
<footer>
167+
MIT License · maintained by <a href="https://github.com/trailcode">trailcode</a>
168+
</footer>
169+
</div>
170+
</body>
171+
</html>

0 commit comments

Comments
 (0)