Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016JBYKfeMPQTK1WNcgcw41o
81 lines
4.2 KiB
HTML
81 lines
4.2 KiB
HTML
{% load static %}<!doctype html>
|
|
{% comment %}
|
|
The host page, served by Django since port-plan step 9.
|
|
|
|
It was `frontend/public/index.html`, served by shadow-cljs's `:dev-http`, and that
|
|
key is gone. The bundle is unchanged: shadow-cljs writes it into
|
|
`static/arthur/js` and staticfiles serves it from there, so `manage.py runserver`
|
|
and `shadow-cljs watch app` are the whole dev loop with nothing copying files
|
|
between them.
|
|
|
|
The CSRF token is rendered so that Django sets its cookie, which is what
|
|
`arthur.fx.http` reads to write the `X-CSRFToken` header. Saves are ordinary POSTs
|
|
and PUTs with ordinary CSRF protection — no endpoint in this app is exempt.
|
|
{% endcomment %}
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>arthur</title>
|
|
<style>
|
|
:root { color-scheme: dark; --bg: #12141c; --fg: #c9c3b4; }
|
|
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); }
|
|
body { font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
|
|
main { padding: 24px; }
|
|
/* The preview is nearest-neighbour everywhere. A browser that smooths the
|
|
upscale would misrepresent the look the tool exists to judge. */
|
|
canvas { image-rendering: pixelated; }
|
|
h1 { font-size: 14px; font-weight: normal; opacity: .5; margin: 0 0 12px; }
|
|
.stage { display: block; background: #12141c; }
|
|
audio { display: none; }
|
|
.transport { margin-top: 12px; width: 640px; }
|
|
.transport .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
|
.transport .gap { flex: 1; }
|
|
button {
|
|
font: inherit; color: var(--fg); background: #1c1f2b;
|
|
border: 1px solid #2b3040; padding: 3px 10px; cursor: pointer;
|
|
}
|
|
button:hover { background: #242836; }
|
|
button:disabled { opacity: .45; cursor: wait; }
|
|
button.on { background: #3a4258; border-color: #556080; }
|
|
.scrub { width: 100%; margin: 10px 0 6px; }
|
|
.readout { display: flex; gap: 18px; opacity: .55; font-size: 12px; }
|
|
.readout .warn { color: #d98f5a; opacity: 1; }
|
|
.picture-rate { display: flex; align-items: center; gap: 6px; margin-top: 7px;
|
|
font-size: 12px; }
|
|
.source-path { display: block; margin-top: 8px; font-size: 12px; opacity: .7; }
|
|
.source-path select { margin: 0 8px; padding: 3px 5px;
|
|
color: var(--fg); background: #1c1f2b; border: 1px solid #2b3040;
|
|
font: inherit; max-width: 360px; }
|
|
.load-status { margin-top: 6px; font-size: 12px; opacity: .75; }
|
|
.export { width: 640px; margin-top: 14px; padding-top: 12px;
|
|
border-top: 1px solid #2b3040; font-size: 12px; }
|
|
.export .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
|
.export .gap { flex: 1; }
|
|
.export select { margin-left: 6px; padding: 3px 5px; color: var(--fg);
|
|
background: #1c1f2b; border: 1px solid #2b3040; font: inherit; }
|
|
.export .readout { margin-top: 7px; }
|
|
.export .note { margin: 7px 0 0; }
|
|
.controls { width: 640px; margin-top: 18px; padding-top: 12px;
|
|
border-top: 1px solid #2b3040; font-size: 12px; }
|
|
.controls select { margin-left: 8px; padding: 3px 5px; color: var(--fg);
|
|
background: #1c1f2b; border: 1px solid #2b3040; font: inherit; }
|
|
.shared-note { margin-top: 6px; color: #d0ba86; }
|
|
.control-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px;
|
|
margin-top: 10px; }
|
|
.control-row { display: grid; grid-template-columns: 115px 1fr 42px;
|
|
align-items: center; gap: 6px; }
|
|
.control-row input { width: 100%; }
|
|
.control-row output { text-align: right; }
|
|
.regeneration-debug { padding: 8px; margin-top: 10px; background: #1c1f2b;
|
|
white-space: pre-wrap; color: #d0ba86; }
|
|
.note { opacity: .35; font-size: 12px; max-width: 640px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
{% csrf_token %}
|
|
<div id="app"></div>
|
|
<script src="{% static 'mediapipe/vision_bundle.js' %}"></script>
|
|
<script src="{% static 'arthur/js/main.js' %}"></script>
|
|
</body>
|
|
</html>
|