Skip to content

Commit 27c60b4

Browse files
Merge pull request #35 from posecode-dev/codex/ui
Refresh Posecode landing and playground with a darker editorial UI
2 parents 4697abb + 3051d06 commit 27c60b4

4 files changed

Lines changed: 231 additions & 9 deletions

File tree

playground/index.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,14 @@
148148
<!-- Hero -->
149149
<section class="hero">
150150
<div class="hero-copy reveal">
151-
<p class="eyebrow">Open kinematic-motion protocol</p>
151+
<p class="eyebrow">Movement is programmable</p>
152152
<h1 class="headline">
153-
Human movement,<br />written as <span class="hl">text</span>.
153+
Write the move.<br /><span class="hl">Watch it happen.</span>
154154
</h1>
155155
<p class="subhead">
156-
Posecode is a tiny language an LLM can write for physiotherapy, mobility,
157-
posture, yoga, and training. It renders to an animated 3D figure in the
158-
browser, and every joint is clamped to a safe range of motion, so the result
159-
is always anatomically plausible.
156+
Turn readable instructions into precise 3D movement. Build exercises,
157+
stretches, dance phrases, and rehab routines—then edit every beat live in
158+
the browser.
160159
</p>
161160
<div class="hero-cta">
162161
<a class="btn primary lg" href="/play">Open the playground&nbsp;→</a>
@@ -165,7 +164,7 @@ <h1 class="headline">
165164
</button>
166165
</div>
167166
<p class="hero-meta">
168-
Open source · MIT &nbsp;&nbsp; 60&nbsp;fps in the browser &nbsp;&nbsp; no GPU, no diffusion
167+
65+ moves included &nbsp;·&nbsp; 60&nbsp;fps &nbsp;·&nbsp; open source &nbsp;·&nbsp; runs on-device
169168
</p>
170169
</div>
171170

playground/play.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@
110110

111111
<div id="intro" class="intro">
112112
<span class="intro-text">
113-
<b>New here?</b> Posecode turns text into 3D movement. Copy the LLM prompt,
114-
ask any AI for an exercise, paste the result on the left.
113+
<b>Make something move.</b> Pick a movement or edit the instructions—the
114+
figure updates as you type.
115115
</span>
116116
<button id="intro-open" class="link">Show me how →</button>
117117
<button id="intro-dismiss" class="x" aria-label="Dismiss">×</button>

playground/src/landing.css

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,3 +712,154 @@ a.dev-card:hover {
712712
padding-top: 40px;
713713
}
714714
}
715+
716+
/* 2026 editorial refresh: let the motion carry the spectacle. Flat surfaces,
717+
strong rules, and restrained color replace generic glowing SaaS cards. */
718+
:root {
719+
--bg: #0b0c0d;
720+
--bg-viewer: #101214;
721+
--panel: #111315;
722+
--panel-2: #171a1d;
723+
--panel-3: #1c2023;
724+
--border: #292d30;
725+
--border-2: #3a3f43;
726+
--text: #f2f1eb;
727+
--text-2: #aaa9a2;
728+
--muted: #74746f;
729+
--accent: #d4ff3f;
730+
--accent-2: #d4ff3f;
731+
--radius: 4px;
732+
--radius-sm: 3px;
733+
--shadow-2: 0 18px 50px rgba(0, 0, 0, 0.34);
734+
}
735+
.bg-fx { background: var(--bg); }
736+
.bg-fx::after { opacity: .018; }
737+
.nav {
738+
max-width: none;
739+
padding: 18px max(24px, calc((100vw - var(--container)) / 2 + 28px));
740+
border-bottom: 1px solid var(--border);
741+
background: rgba(11, 12, 13, .94);
742+
backdrop-filter: blur(18px);
743+
}
744+
.brand .logo { filter: none; }
745+
.nav-links { margin-left: auto; }
746+
.nav-links a { color: var(--text-2); }
747+
.btn { box-shadow: none; border-radius: 3px; }
748+
.btn:hover { box-shadow: none; transform: translateY(-1px); }
749+
.btn.primary,
750+
.btn.primary:hover {
751+
background: var(--accent);
752+
box-shadow: none;
753+
filter: none;
754+
}
755+
.hero {
756+
grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
757+
min-height: min(780px, calc(100vh - 68px));
758+
gap: clamp(42px, 6vw, 92px);
759+
padding-top: clamp(54px, 8vh, 100px);
760+
padding-bottom: clamp(70px, 10vh, 120px);
761+
}
762+
.eyebrow { color: var(--text-2); letter-spacing: 2.4px; }
763+
.headline {
764+
max-width: 10ch;
765+
font-size: clamp(52px, 6.4vw, 88px);
766+
line-height: .92;
767+
letter-spacing: -.055em;
768+
}
769+
.headline .hl { color: var(--text); }
770+
.headline .hl::after { display: none; }
771+
.subhead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
772+
.hero-meta { border-top: 1px solid var(--border); padding-top: 18px; }
773+
.studio { border-radius: 3px; box-shadow: var(--shadow-2); }
774+
.studio-bar { background: #0d0f10; }
775+
.studio-bar .dots { display: none; }
776+
.code-chip {
777+
right: -28px;
778+
bottom: -30px;
779+
border-radius: 2px;
780+
background: #0b0d0e;
781+
backdrop-filter: none;
782+
}
783+
.props {
784+
gap: 0;
785+
border-top: 1px solid var(--border);
786+
border-bottom: 1px solid var(--border);
787+
padding-top: 0;
788+
padding-bottom: 0;
789+
}
790+
.prop {
791+
border: 0;
792+
border-right: 1px solid var(--border);
793+
border-radius: 0;
794+
padding: 38px 30px 42px;
795+
background: transparent;
796+
}
797+
.prop:first-child { border-left: 1px solid var(--border); }
798+
.prop:hover { border-color: var(--border); transform: none; background: #0e1011; }
799+
.prop-mark {
800+
width: auto;
801+
height: auto;
802+
display: block;
803+
border: 0;
804+
border-radius: 0;
805+
background: transparent;
806+
font-family: var(--mono);
807+
font-size: 14px;
808+
}
809+
.section-head { text-align: left; margin-left: 0; }
810+
.section-head h2 { font-size: clamp(34px, 4.5vw, 56px); letter-spacing: -.04em; }
811+
.examples-grid { gap: 0; border-top: 1px solid var(--border); }
812+
.example-card {
813+
min-height: 154px;
814+
border: 0;
815+
border-right: 1px solid var(--border);
816+
border-bottom: 1px solid var(--border);
817+
border-radius: 0;
818+
background: transparent;
819+
justify-content: space-between;
820+
}
821+
.example-card:nth-child(3n + 1) { border-left: 1px solid var(--border); }
822+
.example-card:hover { transform: none; background: var(--text); color: var(--bg); box-shadow: none; border-color: var(--border); }
823+
.example-card:hover .example-kind { color: #555; }
824+
.example-card:hover .example-go { color: #1e2410; }
825+
.how-steps { gap: 0; border-top: 1px solid var(--border); }
826+
.how-steps li {
827+
border: 0;
828+
border-right: 1px solid var(--border);
829+
border-bottom: 1px solid var(--border);
830+
border-radius: 0;
831+
background: transparent;
832+
padding: 32px;
833+
}
834+
.how-steps li:first-child { border-left: 1px solid var(--border); }
835+
.how-n { background: transparent; color: var(--accent); place-items: start; }
836+
.dev-grid { gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
837+
.dev-card { border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
838+
.dev-card:hover, a.dev-card:hover { transform: none; background: #0e1011; border-color: var(--border); }
839+
.faq-list { border-top: 1px solid var(--border); }
840+
.faq-item { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; padding: 24px 0; }
841+
842+
@media (max-width: 920px) {
843+
.hero { grid-template-columns: 1fr; min-height: auto; }
844+
.headline { max-width: 12ch; }
845+
.prop:nth-child(2) { border-left: 1px solid var(--border); }
846+
.example-card:nth-child(3n + 1) { border-left: 0; }
847+
.example-card:nth-child(2n + 1) { border-left: 1px solid var(--border); }
848+
}
849+
@media (max-width: 620px) {
850+
.nav { padding: 14px 18px; }
851+
.nav-cta { padding: 9px 12px; }
852+
.hero, .props, .examples, .how, .developers, .faq, .footer { padding-left: 18px; padding-right: 18px; }
853+
.hero { gap: 34px; padding-top: 48px; padding-bottom: 64px; }
854+
.headline { font-size: clamp(46px, 14vw, 62px); }
855+
.headline .hl { white-space: normal; }
856+
.subhead { font-size: 17px; }
857+
.hero-cta { display: grid; }
858+
.hero-cta .btn { width: 100%; }
859+
.studio { margin-left: -18px; margin-right: -18px; border-left: 0; border-right: 0; }
860+
.hero-stage { min-width: 0; }
861+
.studio-bar { padding-left: 18px; }
862+
.props { border: 0; }
863+
.prop, .prop:first-child, .prop:nth-child(2) { border-left: 0; border-right: 0; border-top: 1px solid var(--border); padding-left: 0; padding-right: 0; }
864+
.example-card, .example-card:nth-child(2n + 1), .how-steps li, .how-steps li:first-child { border-left: 0; border-right: 0; }
865+
}

playground/src/style.css

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,3 +1340,75 @@ select:hover {
13401340
padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
13411341
}
13421342
}
1343+
1344+
/* 2026 product-tool refresh: neutral, flat, and purpose-built. */
1345+
:root {
1346+
--bg: #0b0c0d;
1347+
--bg-viewer: #101214;
1348+
--panel: #111315;
1349+
--panel-2: #171a1d;
1350+
--panel-3: #1c2023;
1351+
--border: #292d30;
1352+
--border-2: #3a3f43;
1353+
--text: #f2f1eb;
1354+
--text-2: #aaa9a2;
1355+
--muted: #74746f;
1356+
--accent: #d4ff3f;
1357+
--accent-2: #d4ff3f;
1358+
--radius: 3px;
1359+
--radius-sm: 3px;
1360+
--sheen: none;
1361+
--edge: none;
1362+
--edge-strong: none;
1363+
}
1364+
.bg-fx { background: var(--bg); }
1365+
.bg-fx::after { opacity: .018; }
1366+
.topbar { background: rgba(11, 12, 13, .96); backdrop-filter: blur(18px); box-shadow: none; padding: 14px 20px; }
1367+
.brand .logo { filter: none; animation: none; }
1368+
.brand .tag { border: 0; border-left: 1px solid var(--border-2); border-radius: 0; padding-left: 10px; }
1369+
.btn, .lib-btn, select { border-radius: 3px; box-shadow: none; }
1370+
.btn.primary, .btn.primary:hover { background: var(--accent); box-shadow: none; filter: none; }
1371+
.intro { background: #0e1011; padding-top: 10px; padding-bottom: 10px; }
1372+
.intro::before { width: 18px; height: 1px; border-radius: 0; box-shadow: none; }
1373+
.layout { grid-template-columns: minmax(400px, .82fr) 1.18fr; }
1374+
.pane-head { background: #0e1011; box-shadow: none; padding-top: 11px; padding-bottom: 11px; }
1375+
.traffic { display: none; }
1376+
.live i, .phase:not(:empty)::before { border-radius: 0; box-shadow: none; }
1377+
#editor .cm-phase-active { background: rgba(212,255,63,.055); box-shadow: none; }
1378+
.editor-wrap:focus-within { box-shadow: inset 0 0 0 1px var(--border-2); }
1379+
.warnings { background: #0e1011; }
1380+
.viewer-veil { background: linear-gradient(180deg, rgba(8,10,12,.5), transparent); }
1381+
.reps { border-radius: 3px; backdrop-filter: none; }
1382+
.ribbon { gap: 0; padding: 0 16px; border-top: 1px solid var(--border); }
1383+
.ribbon .chip { border: 0; border-right: 1px solid var(--border); border-radius: 0; background: transparent; padding: 10px 14px; }
1384+
.ribbon .chip:first-child { border-left: 1px solid var(--border); }
1385+
.ribbon .chip::before { border-radius: 0; }
1386+
.ribbon .chip:hover { background: var(--panel-2); }
1387+
.ribbon .chip.active { background: var(--text); color: var(--bg); border-color: var(--border); box-shadow: none; }
1388+
.ribbon .chip.active::before { background: var(--bg); box-shadow: none; }
1389+
.transport { background: #0e1011; box-shadow: none; padding-top: 15px; padding-bottom: 15px; }
1390+
.btn-play { border-radius: 3px; background: var(--accent); box-shadow: none; }
1391+
.btn-play:hover { box-shadow: none; filter: none; transform: translateY(-1px); }
1392+
#scrub::-webkit-slider-runnable-track { border-radius: 0; box-shadow: none; background: linear-gradient(90deg,var(--accent) 0%,var(--accent) var(--pct,0%),var(--track) var(--pct,0%),var(--track) 100%); }
1393+
#scrub::-webkit-slider-thumb { border-radius: 1px; background: var(--text); box-shadow: 0 0 0 2px var(--bg); }
1394+
.loop input { border-radius: 2px; }
1395+
.loop input::after { border-radius: 1px; }
1396+
.mobile-tabs { gap: 0; padding: 0; background: #0e1011; }
1397+
.mtab { border: 0; border-right: 1px solid var(--border); border-radius: 0; background: transparent; padding: 12px; }
1398+
.mtab[aria-selected="true"] { color: var(--bg); background: var(--text); box-shadow: none; }
1399+
.slideover { background: var(--bg); }
1400+
.fchip { border-radius: 3px; }
1401+
.lib-item { border-radius: 3px; }
1402+
.lib-item[aria-current="true"] { box-shadow: none; }
1403+
1404+
@media (max-width: 860px) {
1405+
.topbar { padding: 12px; }
1406+
.topbar-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; }
1407+
.lib-btn { min-height: 42px; }
1408+
#copy-prompt { grid-column: 1 / -1; min-height: 42px; }
1409+
.intro { padding-left: 12px; padding-right: 12px; }
1410+
.layout { grid-template-columns: 1fr; }
1411+
.transport { gap: 8px; padding-left: 12px; padding-right: 12px; }
1412+
.speed > span, .loop > span { display: none; }
1413+
.clock { padding-left: 8px; min-width: 40px; }
1414+
}

0 commit comments

Comments
 (0)