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
2 changes: 1 addition & 1 deletion .site/gallery/micropython.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ <h1 id="loader-title">Direct MicroPython WebAssembly</h1>
<button class="btn" id="enable-microphone" type="button">Enable Microphone</button>
<button class="btn" id="reset-runtime" type="button">Reset</button>
<a class="btn" id="pyodide-link" href="../pyscript/pyodide.html">Pyodide alternative</a>
<a class="btn" id="workbench-link" href="https://pydevices.github.io/workbench/" hidden>Open in Workbench</a>
</div>
</div>
<p class="loader-lede">The application runs on the main thread through the compiled <code>_wasm_bridge</code>.</p>
Expand All @@ -41,6 +40,7 @@ <h1 id="loader-title">Direct MicroPython WebAssembly</h1>
</div>
<div class="device-footer">
<button type="button" class="console-toggle" aria-expanded="false">Show console</button>
<a class="footer-link" id="workbench-link" href="https://pydevices.github.io/workbench/" hidden>Open in Workbench</a>
</div>
</div>
</div>
Expand Down
25 changes: 25 additions & 0 deletions .site/pyscript/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,34 @@ body[data-runtime-state="failed"] .canvas-stage .hero-spinner {
.device-footer {
display: flex;
justify-content: center;
gap: 8px;
padding-top: 8px;
}

/* A link beside the console toggle, in its look. The header row isn't shown
when a gallery card opens a demo, so the footer is the one place it's seen. */
.footer-link {
display: inline-flex;
align-items: center;
min-height: 30px;
padding: 5px 12px;
border: 1px solid var(--border);
border-radius: 999px;
color: var(--ink-soft);
background: var(--panel-2);
font: 600 0.78rem var(--font);
text-decoration: none;
}

.footer-link:hover {
border-color: var(--accent);
color: var(--accent-strong);
}

.footer-link[hidden] {
display: none;
}

.console-panel[hidden] {
display: none;
}
Expand Down
Loading