test
HTML
test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Under the video — mockup</title>
<style>
:root{
--canvas:#10131C;--canvas2:#161A26;--surface:#1C2130;--raised:#242A3B;
--line:rgba(255,255,255,.10);--line2:rgba(255,255,255,.19);
--ink:#F3F5FA;--body:#B7BECF;--muted:#8A93A8;
--accent:#8B7BFF;--accentDeep:#6C5CE7;--cyan:#46D8F5;--live:#4ADE80;--dev:#E3A73C;--yt:#FF0033;
--grad:linear-gradient(120deg,#6C5CE7,#A33BC9 55%,#D6004A);
--sans:Inter,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
--mono:ui-monospace,"JetBrains Mono",Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
body{margin:0;background:var(--canvas);color:var(--body);font:15px/1.6 var(--sans)}
h1,h2,h3{margin:0;color:var(--ink);letter-spacing:-.025em;line-height:1.2;font-weight:800}
p{margin:0} a{color:var(--accent);text-decoration:none}
.bar{background:var(--dev);color:#0B0D14;font:600 12.5px/1.5 var(--mono);padding:9px 16px;text-align:center}
.pick{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;padding:18px}
.pick button{background:var(--surface);border:1px solid var(--line);color:var(--body);
font:600 13px var(--sans);padding:10px 16px;border-radius:9px;cursor:pointer}
.pick button[aria-pressed=true]{border-color:var(--accent);color:var(--ink);background:rgba(139,123,255,.12)}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px 70px}
.opt{display:none}.opt.on{display:block}
.vid{width:100%;aspect-ratio:16/9;max-height:300px;background:#000;display:grid;place-items:center;
color:#5b6274;font:11px var(--mono);letter-spacing:.14em;border-radius:2px}
/* header row */
.head{display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap;padding:20px 0 16px;
border-bottom:1px solid var(--line)}
.head .l{min-width:0;flex:1}
.eyebrow{font:10px var(--mono);letter-spacing:.11em;text-transform:uppercase;color:var(--accent)}
.head h1{font-size:1.45rem;margin:7px 0 6px}
.meta{font:10px var(--mono);letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.acts{display:flex;gap:9px;align-items:center;flex:none}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;border-radius:9px;
border:1px solid var(--line2);color:var(--ink);font:650 13.5px var(--sans);cursor:pointer;background:none;
text-decoration:none;white-space:nowrap}
.btn:hover{background:rgba(255,255,255,.05)}
.btn-grad{background:var(--grad);color:#fff;border-color:transparent}
.btn-done{color:var(--live);border-color:rgba(74,222,128,.42);background:rgba(74,222,128,.08)}
.btn-icon{padding:10px 12px}
/* steps */
.sec{padding:24px 0}
.sec h2{font:600 10px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
margin-bottom:16px}
.step{display:grid;grid-template-columns:auto 1fr;gap:16px;padding:15px 0;border-top:1px solid var(--line)}
.step:first-of-type{border-top:0}
.ts{display:inline-flex;align-items:center;gap:6px;font:600 11px var(--mono);color:var(--cyan);
border:1px solid rgba(70,216,245,.32);background:rgba(70,216,245,.08);padding:5px 10px;
border-radius:999px;cursor:pointer;flex:none;align-self:flex-start}
.ts:hover{background:rgba(70,216,245,.16)}
.step h3{font-size:1rem;margin-bottom:5px}
.step p{font-size:14px}
.step pre{background:var(--canvas2);border:1px solid var(--line);border-radius:9px;padding:12px 14px;
margin:10px 0 0;font:12px/1.6 var(--mono);color:var(--body);overflow:auto}
/* about */
.about{display:grid;grid-template-columns:1fr 300px;gap:28px}
@media(max-width:820px){.about{grid-template-columns:1fr}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:18px 20px}
.card h3{font:600 10px var(--mono);letter-spacing:.13em;text-transform:uppercase;color:var(--muted);
margin-bottom:11px}
.setup{margin:0;padding:0;list-style:none}
.setup li{display:flex;gap:9px;padding:7px 0;font-size:14px}
.setup li::before{content:"✓";color:var(--accent);font-weight:700}
/* nav */
.nav{display:flex;gap:12px;justify-content:space-between;padding:22px 0 0;border-top:1px solid var(--line)}
.nav .btn{flex:1;max-width:320px}
.nav .n{display:block;font:9.5px var(--mono);letter-spacing:.07em;text-transform:uppercase;
color:var(--muted);margin-bottom:3px}
.nav a{display:block;padding:12px 15px;border:1px solid var(--line2);border-radius:10px;
color:var(--ink);text-decoration:none;flex:1;max-width:340px;font-weight:650;font-size:14px}
.nav a:hover{background:rgba(255,255,255,.05)}
.nav a.next{background:var(--grad);border-color:transparent;color:#fff;text-align:right}
.nav a.next .n{color:rgba(255,255,255,.7)}
.empty{padding:26px 22px;border:1px dashed var(--line2);border-radius:12px;text-align:center;
color:var(--muted);font-size:14px}
.note{background:var(--canvas2);border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin-top:26px}
.note h3{font-size:15px;margin-bottom:8px}
.note ul{margin:8px 0 0;padding-left:18px;font-size:14px}
.note li{margin-bottom:7px}
.warn{border-color:rgba(227,167,60,.36)}
.warn h3{color:var(--dev)}
</style>
</head>
<body>
<div class="bar">MOCKUP — what sits under the video. Not built yet.</div>
<div class="pick">
<button data-o="full" aria-pressed="true">Lesson with steps</button>
<button data-o="bare" aria-pressed="false">Lesson with nothing yet</button>
<button data-o="now" aria-pressed="false">What it looks like now</button>
</div>
<div class="wrap">
<!-- FULL -->
<section class="opt on" id="full">
<div class="vid">VIDEO</div>
<div class="head">
<div class="l">
<p class="eyebrow">Lesson 2 of 3</p>
<h1>WordPress for AI: The FB Software Vision</h1>
<p class="meta">15:52 · Beginner · EN · 4 steps</p>
</div>
<div class="acts">
<button class="btn btn-icon" title="Previous lesson">←</button>
<button class="btn btn-done">✓ Done</button>
<button class="btn btn-grad">Next lesson →</button>
</div>
</div>
<div class="sec">
<h2>Follow along</h2>
<div class="step">
<span class="ts">▸ 0:00</span>
<div>
<h3>Why Odoo Community, not a hosted platform</h3>
<p>What you own, what you rent, and the point at which renting stops being cheaper.</p>
</div>
</div>
<div class="step">
<span class="ts">▸ 4:12</span>
<div>
<h3>The eleven apps we actually connected</h3>
<p>Which modules run the company day to day, and the two we switched off again.</p>
</div>
</div>
<div class="step">
<span class="ts">▸ 11:40</span>
<div>
<h3>Writing docker-compose.yml</h3>
<p>Line by line, and why each service needs the volume it does.</p>
<pre>services:
odoo:
image: odoo:19
ports:
- "8069:8069"</pre>
</div>
</div>
</div>
<div class="sec about">
<div>
<h2>About this lesson</h2>
<p style="font-size:14.5px">An introduction to the AI development framework for WordPress,
and what it does before it writes anything. This is the exact setup running FB Software
ERP today.</p>
</div>
<div class="card">
<h3>Before you start</h3>
<ul class="setup">
<li>Docker installed and running</li>
<li>A terminal you are comfortable in</li>
<li>About forty minutes</li>
</ul>
</div>
</div>
<div class="nav">
<a href="#"><span class="n">Previous</span>What Is FB Software AI Engine?</a>
<a href="#" class="next"><span class="n">Next lesson</span>Why We're Building FB Software ERP</a>
</div>
<div class="note">
<h3>The idea</h3>
<ul>
<li><strong>Actions move up beside the title</strong>, where you look after a video ends —
not stranded under an empty tab.</li>
<li><strong>Steps become the main event.</strong> They are what you read while following along,
so they get the space rather than hiding behind a tab.</li>
<li><strong>Timestamps seek the player</strong> instead of opening YouTube. Clicking 4:12 jumps
the embed. Only possible on free lessons — see the note below.</li>
<li><strong>Previous and next are real cards</strong> naming the lesson, so you know what is coming.</li>
</ul>
</div>
</section>
<!-- BARE -->
<section class="opt" id="bare">
<div class="vid">VIDEO</div>
<div class="head">
<div class="l">
<p class="eyebrow">Lesson 2 of 3</p>
<h1>WordPress for AI: The FB Software Vision</h1>
<p class="meta">15:52 · Beginner · EN</p>
</div>
<div class="acts">
<button class="btn btn-icon" title="Previous lesson">←</button>
<button class="btn">Mark as done</button>
<button class="btn btn-grad">Next lesson →</button>
</div>
</div>
<div class="sec">
<div class="empty">
Nothing written up for this lesson yet — the video says it all.<br>
Files and prompts, when there are any, live in the panel on the right.
</div>
</div>
<div class="nav">
<a href="#"><span class="n">Previous</span>What Is FB Software AI Engine?</a>
<a href="#" class="next"><span class="n">Next lesson</span>Why We're Building FB Software ERP</a>
</div>
<div class="note">
<h3>When a lesson has no written material</h3>
<ul>
<li>This is most of your lessons today. It should look deliberate, not broken.</li>
<li>The title, the actions and the next lesson are all still there — the page still works.</li>
<li>No empty tab strip, no lone "Overview" heading with nothing under it.</li>
</ul>
</div>
</section>
<!-- NOW -->
<section class="opt" id="now">
<div class="vid">VIDEO</div>
<div style="padding:20px 0">
<p class="eyebrow">Lesson 2 of 3</p>
<h1 style="font-size:1.45rem;margin:7px 0 6px">WordPress for AI: The FB Software Vision</h1>
<p class="meta">15:52 · Beginner · EN</p>
<div style="margin-top:22px;border-bottom:1px solid var(--line);padding-bottom:12px">
<span style="color:var(--ink);font-weight:600;font-size:14.5px;border-bottom:2px solid var(--accent);
padding-bottom:12px">Overview</span>
</div>
<button class="btn" style="margin-top:22px">Mark as done</button>
</div>
<div class="note warn">
<h3>What is wrong with it</h3>
<ul>
<li>A tab strip with one tab is not a tab strip. It is a heading pretending to be a control.</li>
<li>The Overview tab has nothing behind it, because prerequisites and description are empty
on this lesson and everything else moved into the panel.</li>
<li>"Mark as done" floats with no relationship to anything.</li>
<li>There is no way to reach the next lesson without the panel.</li>
</ul>
</div>
</section>
<div class="note warn">
<h3>One thing to decide</h3>
<ul>
<li><strong>Clickable timestamps need the YouTube iframe API.</strong> That is one more script from
Google on lesson pages, and it only works on free lessons, since members-only ones are not
embedded. If you would rather not load it, timestamps stay as plain text and the steps still
read fine.</li>
</ul>
</div>
</div>
<script>
document.querySelectorAll('.pick button').forEach(function(b){
b.addEventListener('click',function(){
document.querySelectorAll('.pick button').forEach(function(o){o.setAttribute('aria-pressed',o===b);});
document.querySelectorAll('.opt').forEach(function(p){p.classList.toggle('on',p.id===b.dataset.o);});
window.scrollTo({top:0,behavior:'smooth'});
});
});
</script>
</body>
</html>