Start animation in the desktop apps, VK-Audio wordmark

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GivouandClaude Opus 5.5 committed 2026-11-02 18:05:51 +01:00
1 parent 144f62f240
commit 14ca3aec4b
5 files changed
+36 -4

No files matched your search

+1 -1
View File
@@ -262,7 +262,7 @@ manufacturer. Frame examples in the tests also match the DSP 408 captures publis
## License
[MIT](LICENSE) © 2026 Givou
[MIT](LICENSE) © 2026 Givou · VK-Audio
The desktop builds bundle third-party components under their own licenses (Python – PSF License, pywebview – BSD,
pythonnet – MIT, PyInstaller bootloader – GPL with exception allowing distribution). If you distribute built
+1 -1
View File
@@ -1009,7 +1009,7 @@ class App:
cookie = self.app_login(parse_qs(url.query).get("t", [""])[0])
if cookie:
await self.respond(writer, 302, b"", "text/plain",
"Location: /\r\n" + self.cookie(cookie, SESSION_TTL))
"Location: /?start=app\r\n" + self.cookie(cookie, SESSION_TTL))
else:
await self.respond(writer, 401, b"invalid app token", "text/plain")
return
+3 -2
View File
@@ -2404,7 +2404,8 @@ function viewSettings() {
return h("div", { class: "setwrap" }, nav, sections.map(([id, title, desc, cls, cards]) =>
h("section", { class: "setsec", id: "set-" + id },
h("header", {}, h("h2", {}, title), h("p", {}, desc)),
h("div", { class: "setgrid " + cls }, cards.filter(Boolean)))));
h("div", { class: "setgrid " + cls }, cards.filter(Boolean)))),
h("p", { class: "vkfoot" }, "VK-Audio"));
}
// ------------------------------------------------------------------ render
@@ -2699,7 +2700,7 @@ function showLogin() {
["1", "2", "3", "4", "5", "6", "7", "8", "9"].map(k => key(k)), h("span"), key("0"), key("del", "⌫"));
root.replaceChildren(h("div", { class: "loginbox" },
h("div", { class: "logo" }, $(".brand svg").cloneNode(true)),
h("h1", {}, "DSP Control"), h("p", {}, t("Enter PIN")), dots, msg, pad));
h("h1", {}, "DSP Control"), h("p", {}, t("Enter PIN")), dots, msg, pad, h("small", { class: "vkfoot" }, "VK-Audio")));
root.hidden = false;
root.onkeydown = null;
document.onkeydown = e => {
+15
View File
@@ -12,12 +12,27 @@
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%23111418'/%3E%3Cpath d='M7 22V10M13 22V6M19 22V14M25 22V9' stroke='%2338bdf8' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E">
</head>
<body>
<div id="splash" aria-hidden="true">
<svg viewBox="0 0 32 32" width="72" height="72"><path d="M7 22V10"/><path d="M13 22V6"/><path d="M19 22V14"/><path d="M25 22V9"/></svg>
<b>DSP Control</b><small>VK-Audio</small>
</div>
<script>
// start animation of the desktop apps: only their login arrives with this parameter, a reload doesn't
(function () {
var el = document.getElementById("splash");
if (location.search !== "?start=app") return el.remove();
history.replaceState(null, "", "/");
el.classList.add("show");
setTimeout(function () { el.remove(); }, 1500);
})();
</script>
<div id="login" hidden></div>
<div id="app" hidden>
<header id="top">
<div class="brand" aria-hidden="true">
<svg viewBox="0 0 32 32" width="26" height="26"><rect width="32" height="32" rx="7" fill="#161a20"/><path d="M7 22V10M13 22V6M19 22V14M25 22V9" stroke="#38bdf8" stroke-width="3" stroke-linecap="round"/></svg>
</div>
<span class="vkmark">VK-Audio</span>
<div id="devtabs"></div>
<nav id="viewtabs" aria-label="View" data-t-label="View">
<button data-view="dash"><svg viewBox="0 0 24 24"><rect x="3" y="3" width="8" height="9" rx="1.5"/><rect x="13" y="3" width="8" height="5" rx="1.5"/><rect x="13" y="10" width="8" height="11" rx="1.5"/><rect x="3" y="14" width="8" height="7" rx="1.5"/></svg><span>Dashboard</span></button>
+16
View File
@@ -894,3 +894,19 @@ body.locked #main input[type=range] { pointer-events: none; }
.nodsp svg { width: 44px; height: 44px; fill: none; stroke: var(--dim); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nodsp b { color: var(--text); font-size: 18px; }
.nodsp p { max-width: 420px; margin: 0 0 6px; line-height: 1.45; }
/* ---- start animation, VK-Audio */
#splash { display: none; }
#splash.show { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
background: var(--bg); pointer-events: none; animation: splashout .3s ease-in 1.15s forwards; }
#splash svg { margin-bottom: 8px; fill: none; stroke: #38bdf8; stroke-width: 3; stroke-linecap: round; overflow: visible; }
#splash path { transform-box: fill-box; transform-origin: bottom; animation: splashbar .75s cubic-bezier(.3, 1.5, .5, 1) backwards; }
#splash path:nth-child(2) { animation-delay: .08s; } #splash path:nth-child(3) { animation-delay: .16s; } #splash path:nth-child(4) { animation-delay: .24s; }
#splash b { font-size: 20px; font-weight: 650; color: var(--text); animation: splashtext .4s ease-out .35s backwards; }
#splash small { font-size: 12px; letter-spacing: .14em; color: var(--dim); animation: splashtext .4s ease-out .5s backwards; }
@keyframes splashbar { from { transform: scaleY(0); } }
@keyframes splashtext { from { opacity: 0; transform: translateY(5px); } }
@keyframes splashout { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #splash.show { display: none; } }
.vkmark { flex: none; margin-left: -4px; font-size: 10px; letter-spacing: .1em; color: var(--dim); white-space: nowrap; }
.vkfoot { display: block; margin: 18px 0 6px; text-align: center; font-size: 11px; letter-spacing: .14em; color: var(--dim); }
@media (max-width: 759px) { .vkmark { display: none; } }