Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion public/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -
button, .file-button, select { font: inherit; }
.shell { width: min(1040px, 94vw); margin: 0 auto; padding: 36px 0 50px; }
header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.eyebrow { margin: 0 0 4px; color: #7fd5ff; letter-spacing: .2em; font: 700 11px/1.2 ui-monospace, monospace; }
h1 { margin: 0; font-size: clamp(38px, 7vw, 68px); line-height: .9; letter-spacing: -.06em; }
h1 span { color: #ffcc45; }
.repo-link { padding: 8px 12px; border: 1px solid #314361; border-radius: 999px; color: #c7d6ed; font-size: 13px; text-decoration: none; transition: .15s ease; }
.repo-link:hover { border-color: #7fd5ff; color: #fff; transform: translateY(-1px); }
.status { margin: 0; padding: 8px 12px; border: 1px solid #314361; border-radius: 999px; color: #aebbd0; font-size: 13px; }
.status[data-state="ready"] { color: #88efbd; border-color: #246044; }
.status[data-state="running"] { color: #7fd5ff; border-color: #245b75; }
Expand Down Expand Up @@ -45,4 +48,4 @@ select { min-width: 0; padding: 10px; border: 1px solid #3c506e; border-radius:
kbd { padding: 4px 6px; border: 1px solid #465a79; border-bottom-width: 3px; border-radius: 5px; background: #182235; color: #fff; font: 700 11px ui-monospace, monospace; }
details { margin-top: 16px; color: #8697b1; font-size: 13px; }
pre { max-height: 220px; overflow: auto; padding: 14px; border-radius: 8px; background: #05070c; white-space: pre-wrap; }
@media (max-width: 720px) { header { align-items: start; flex-direction: column; gap: 14px; } .help { grid-template-columns: 1fr 1fr; } .hosted-controls { grid-template-columns: 1fr; } }
@media (max-width: 720px) { header { align-items: start; flex-direction: column; gap: 14px; } .header-actions { align-items: start; flex-direction: column-reverse; } .help { grid-template-columns: 1fr 1fr; } .hosted-controls { grid-template-columns: 1fr; } }
7 changes: 6 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
<p class="eyebrow">AMSTRAD CPC · WEBASSEMBLY</p>
<h1>CPC<span>JS</span></h1>
</div>
<p id="status" class="status" role="status">Chargement de l’émulateur…</p>
<div class="header-actions">
<a class="repo-link" href="https://github.com/smichea/cpcjs" target="_blank" rel="noopener noreferrer">
Voir le code sur GitHub <span aria-hidden="true">↗</span>
</a>
<p id="status" class="status" role="status">Chargement de l’émulateur…</p>
</div>
</header>

<section class="machine" aria-label="Émulateur Amstrad CPC">
Expand Down
1 change: 1 addition & 0 deletions test/e2e/cpcjs.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const fixtureUrl = new URL('../fixtures/hello.zip.b64', import.meta.url);

async function waitForRuntime(page) {
await page.goto('/');
await expect(page.locator('.repo-link')).toHaveAttribute('href', 'https://github.com/smichea/cpcjs');
await expect(page.locator('#status')).toHaveAttribute('data-state', 'ready');
await expect.poll(() => page.evaluate(() => window.cpcjsState.runtimeReady)).toBe(true);
}
Expand Down
Loading