feat: integrate robot assembly and simulation with resilient loading

Add backend-driven assembly and simulation experiences, MAKE branding, mobile rendering budgets and desktop-only CAD/PCB routes. Improve logo loading progress, document image recovery and URDF request handling; include dev packaging and regression coverage.
This commit is contained in:
Jerry
2026-10-30 18:38:39 +08:00
parent 8212c41bed
commit 1c837766cd
391 changed files with 46889 additions and 212 deletions
+34 -8
View File
@@ -1,5 +1,5 @@
/* =========================================================
vibemake — 开源机器人社区
make — 开源机器人社区
顶部导航 · 宽留白 · 大字号层次 · 每个项目带自己的光晕色
========================================================= */
/* 站内跳转时新旧页面淡入淡出,不白屏闪一下(Chrome / Edge 支持,其他浏览器照常跳转) */
@@ -152,7 +152,8 @@ a.chip:hover, button.chip:hover { border-color: rgba(255, 255, 255, 0.28); color
}
.nav.overlay { position: fixed; left: 0; right: 0; }
.nav-inner { display: flex; align-items: center; gap: 44px; height: 100%; max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.nav-logo img { height: 18px; width: auto; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.nav-logo img { display: block; width: 112px; height: 42px; object-fit: contain; }
.nav-links { display: flex; gap: 30px; margin-right: auto; }
.nav-links a { position: relative; color: var(--muted); font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
@@ -171,6 +172,7 @@ a.chip:hover, button.chip:hover { border-color: rgba(255, 255, 255, 0.28); color
kbd { font-family: var(--mono); font-size: 10.5px; padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); }
.nav-menu { display: none; }
.sheet { display: none; }
.no-desktop-tools [data-desktop-only] { display: none !important; }
/* ⌘K 面板 */
.palette { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: center; align-items: start; padding-top: 14vh; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .2s; }
@@ -387,7 +389,7 @@ code, .md code { font-family: var(--mono); font-size: .86em; color: var(--accent
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { cursor: pointer; }
.footer-brand img { height: 18px; width: auto; margin-bottom: 18px; }
.footer-brand img { display: block; width: 176px; height: 66px; object-fit: contain; margin-bottom: 18px; }
.footer-brand p { margin: 0; line-height: 1.8; }
.footer-grid h6 { font-size: 13px; color: var(--text); font-weight: 500; margin-bottom: 14px; }
.footer-grid a { display: block; padding: 4px 0; color: var(--soft); }
@@ -427,11 +429,18 @@ code, .md code { font-family: var(--mono); font-size: .86em; color: var(--accent
.p-hero::before { content: ''; position: absolute; inset: -64px calc(50% - 50vw) -200px; z-index: -1; background: radial-gradient(28% 60% at 32% 10%, color-mix(in srgb, var(--hue) 12%, transparent), transparent 70%); pointer-events: none; }
.p-crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13.5px; }
.p-crumbs a:hover { color: var(--text); }
.p-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: 22px; }
.p-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 22px; }
.p-copy { min-width: 0; max-width: 100%; }
.p-title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.p-title h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.p-title .badge { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; color: var(--muted); }
.p-desc { margin: 16px 0 0; color: var(--soft); font-size: 17px; max-width: 680px; }
.p-description { --description-lines: 3; max-width: 680px; margin-top: 16px; scroll-margin-top: calc(var(--nav) + 20px); }
.p-desc { margin: 0; color: var(--soft); font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.p-description:not(.is-expanded) .p-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--description-lines); overflow: hidden; }
.p-desc-toggle { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 8px; margin: 4px 0 0 -8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; }
.p-desc-toggle:hover { color: var(--accent); background: var(--accent-soft); }
.p-desc-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.p-desc-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.p-meta { display: flex; align-items: center; gap: 20px; margin-top: 22px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.p-meta .who { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.p-meta .topics { display: flex; gap: 6px; flex-wrap: wrap; }
@@ -505,6 +514,13 @@ code, .md code { font-family: var(--mono); font-size: .86em; color: var(--accent
.md { padding: 12px 40px 40px; font-size: 15px; line-height: 1.85; color: var(--soft); }
.md img { max-width: 100%; height: auto; }
.document-image { display: inline-block; max-width: 100%; vertical-align: middle; }
.document-image img { max-width: 100%; height: auto; }
.document-image img[hidden], .document-image-status[hidden], .document-image-status [hidden] { display: none; }
.document-image.unavailable { display: inline-grid; width: min(100%, 480px); min-height: 140px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.document-image-status { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 24px; color: var(--muted); font-size: 13px; }
.document-image-status > [role="status"] { flex-basis: 100%; text-align: center; }
#loader-text { max-width: min(90%, 560px); overflow-wrap: anywhere; text-align: center; }
.md h1 { font-size: 30px; margin: 24px 0 18px; color: var(--text); letter-spacing: -0.02em; }
.md h2 { font-size: 21px; margin: 40px 0 14px; color: var(--text); }
.md a { color: var(--accent); }
@@ -578,6 +594,9 @@ code, .md code { font-family: var(--mono); font-size: .86em; color: var(--accent
.loader-box { display: grid; gap: 14px; justify-items: center; color: var(--muted); font-size: 13px; }
.loader:not(.error) #loader-text { display: none; }
.loader.error .spinner { display: none; }
.loader.with-progress:not(.error) #loader-text { display: block; }
.loader .btn { pointer-events: auto; }
.loader.hidden .btn { pointer-events: none; }
.loader.error .loader-box { color: var(--danger); max-width: 420px; text-align: center; padding: 0 16px; }
/* 其他页面继续使用原有的双弧加载环。 */
.spinner { position: relative; width: 34px; height: 34px; }
@@ -598,9 +617,11 @@ code, .md code { font-family: var(--mono); font-size: .86em; color: var(--accent
-webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000, transparent 85%);
mask-image: radial-gradient(50% 50% at 50% 50%, #000, transparent 85%); }
.splash-inner { position: relative; display: grid; justify-items: center; gap: 28px; transition: transform .8s cubic-bezier(.6, 0, .2, 1), opacity .5s; }
.splash-logo { width: 168px; height: auto; animation: splash-in .9s cubic-bezier(.2, .7, .2, 1) both, breathe 2.4s ease-in-out .9s infinite; }
.splash-bar { width: 200px; height: 1px; background: rgba(255, 255, 255, 0.1); overflow: hidden; animation: splash-in .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
.splash-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s ease-out; box-shadow: 0 0 12px var(--accent); }
.splash-mark { position: relative; width: 240px; height: 90px; }
.splash-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.splash-logo-base { opacity: .12; filter: grayscale(1); }
.splash-logo-fill { position: absolute; inset: 0; clip-path: inset(0 var(--splash-unrevealed, 100%) 0 0); transition: clip-path .4s ease-out; }
@media (prefers-reduced-motion: reduce) { .splash-logo-fill, .splash, .splash-inner { transition: none; } }
.splash-foot { position: absolute; left: 40px; right: 40px; bottom: 32px; display: flex; justify-content: space-between; align-items: end;
font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--dim); }
.splash-pct { font-size: 13px; letter-spacing: .1em; color: var(--soft); font-variant-numeric: tabular-nums; }
@@ -716,7 +737,9 @@ body.studio::before, body.studio::after { display: none; }
}
@media (max-width: 820px) {
.container, .nav-inner { padding: 0 20px; }
[data-desktop-only] { display: none !important; }
.nav-inner { gap: 16px; }
.nav-logo img { width: 96px; height: 36px; }
.nav-links, .hide-sm { display: none; }
.nav-search span, .nav-search kbd { display: none; }
.nav-search { width: 40px; height: 40px; padding: 0; justify-content: center; }
@@ -748,6 +771,9 @@ body.studio::before, body.studio::after { display: none; }
.page-hero { padding-top: 48px; padding-bottom: 32px; }
.filterbar .right { width: 100%; justify-content: space-between; }
.p-hero { padding-top: 32px; padding-bottom: 28px; }
.p-description { --description-lines: 2; }
.p-desc { font-size: 15px; }
.p-desc-toggle { min-height: 44px; }
.p-stage { border-radius: 20px; height: 360px; }
.md { padding: 8px 20px 24px; }
.ftable td:first-child { width: auto; }