Skip to content
This repository was archived by the owner on Nov 7, 2026. It is now read-only.

Commit 79341fb

Browse files
Web 0.4.8: neues VisuBot-Logo, Logo-Farben im VisuBot-Modus (#153)
* VisuBot: neues Logo in Kopfzeile und Webseite, Logo-Farben im VisuBot-Modus Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W2ciR7ffD6g91kDE3eD3zi * Web 0.4.8 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W2ciR7ffD6g91kDE3eD3zi --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9b6d567 commit 79341fb

18 files changed

Lines changed: 59 additions & 76 deletions

‎web/package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎web/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "visustruct-web",
33
"private": true,
4-
"version": "0.4.7",
4+
"version": "0.4.8",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

‎web/src/ui/app.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ export class App {
620620
// VisuBot: fertige mBot2-Kästen unter den normalen Elementen.
621621
const robotOn = visuBotEnabled()
622622
this.root.classList.toggle('visubot-mode', robotOn)
623+
document.documentElement.classList.toggle('visubot-theme', robotOn)
623624
const robotList = $<HTMLUListElement>('.palette-visubot')
624625
robotList.hidden = !robotOn
625626
$<HTMLElement>('.palette-visubot-title').hidden = !robotOn

‎web/src/ui/renderer.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ export class DiagramRenderer {
310310
y: r.y,
311311
width: r.width,
312312
height: r.height,
313+
class: 'selection-frame',
313314
fill: 'none',
314315
stroke: sim ? 'rgba(66, 140, 242, 0.78)' : 'rgba(0, 122, 255, 0.9)',
315316
'stroke-width': Ink.selectionLineWidth,

‎web/src/ui/styles.css‎

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,26 @@
66
--border: #d1d1d6;
77
--accent: #007aff;
88
--accent-soft: rgba(0, 122, 255, 0.18);
9+
--accent-faint: rgba(0, 122, 255, 0.08);
10+
--accent-glow: rgba(0, 122, 255, 0.35);
911
color-scheme: light;
1012
}
1113

14+
/* VisuBot-Modus: Farben aus dem VisuBot-Logo (Navy, Orange, Lila) */
15+
:root.visubot-theme {
16+
--bg: #f1f0f8;
17+
--text: #2f3454;
18+
--muted: #6a6890;
19+
--border: #d6d3e8;
20+
--accent: #e07000;
21+
--accent-soft: rgba(253, 161, 21, 0.24);
22+
--accent-faint: rgba(253, 161, 21, 0.1);
23+
--accent-glow: rgba(224, 112, 0, 0.35);
24+
}
25+
:root.visubot-theme .selection-frame {
26+
stroke: rgba(224, 112, 0, 0.9);
27+
}
28+
1229
* {
1330
box-sizing: border-box;
1431
}
@@ -338,11 +355,12 @@ dialog.about h2 {
338355
gap: 8px;
339356
}
340357
.visubot-logo {
341-
width: 30px;
342-
height: 24px;
358+
width: auto;
359+
height: 30px;
360+
margin: -4px 0;
343361
}
344362
.visubot-bot {
345-
color: var(--accent);
363+
color: #f08a00;
346364
margin-left: -8px;
347365
}
348366
.brand small {
@@ -803,7 +821,7 @@ button.sim-toggle {
803821
margin-left: -10px;
804822
margin-right: -10px;
805823
border-radius: 10px;
806-
background: rgba(0, 122, 255, 0.08);
824+
background: var(--accent-faint);
807825
outline: 2px solid var(--accent);
808826
}
809827
.sim-prompt {
@@ -2773,12 +2791,12 @@ button.danger-text:not(:disabled) {
27732791
.ui-spot {
27742792
outline: 3px solid var(--accent) !important;
27752793
outline-offset: -3px;
2776-
box-shadow: inset 0 0 0 9999px rgba(0, 122, 255, 0.08);
2794+
box-shadow: inset 0 0 0 9999px var(--accent-faint);
27772795
animation: ui-spot-pulse 1.2s ease-in-out infinite;
27782796
}
27792797
@keyframes ui-spot-pulse {
27802798
50% {
2781-
outline-color: rgba(0, 122, 255, 0.35);
2799+
outline-color: var(--accent-glow);
27822800
}
27832801
}
27842802
@media (prefers-reduced-motion: reduce) {
@@ -3433,8 +3451,8 @@ button.danger-text:not(:disabled) {
34333451
color: var(--muted);
34343452
}
34353453
.palette-visubot .palette-item {
3436-
border-color: #8fb6ea;
3437-
background: color-mix(in srgb, #2f7bd8 7%, transparent);
3454+
border-color: #a7a0d3;
3455+
background: color-mix(in srgb, #a7a0d3 16%, transparent);
34383456
}
34393457
.visubot-model {
34403458
margin: 12px 0;

‎web/src/ui/visubot.webp‎

8.83 KB
Loading

‎web/src/ui/visubotView.ts‎

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import type { SimulationEngine } from '../core/simulation'
66
import { t } from './i18n'
77
import type { VisuBotMode } from '../learn/content'
88
import type { Robot3D } from './robot3d'
9+
import visuBotLogoURL from './visubot.webp'
910

1011
/**
1112
* VisuBot (mBot2-Modus), gespeichert im Browser: aus, im Kurs (normale Lektionen mit zusätzlichen mBot2-Schritten)
@@ -32,18 +33,8 @@ export function setVisuBotMode(mode: VisuBotMode) {
3233
}
3334
}
3435

35-
/** Kopfzeile im VisuBot-Modus: der kleine Roboter aus dem VisuBot-Logo und „Visu“ + blaues „Bot“. */
36-
export const visuBotBrand = `<svg class="visubot-logo" viewBox="52 94 132 106" aria-hidden="true" stroke-linecap="round" stroke-linejoin="round">
37-
<rect x="57" y="140" width="21" height="48" rx="10.5" fill="currentColor"/>
38-
<rect x="157" y="140" width="21" height="48" rx="10.5" fill="currentColor"/>
39-
<path d="M87 122h60a11 11 0 0 1 11 11v36a11 11 0 0 1-11 11H87a11 11 0 0 1-11-11v-36a11 11 0 0 1 11-11z" fill="var(--panel)" stroke="currentColor" stroke-width="6"/>
40-
<path d="M80 133h76" stroke="var(--accent)" stroke-width="8"/>
41-
<circle cx="102" cy="150" r="6" fill="currentColor"/>
42-
<circle cx="132" cy="150" r="6" fill="currentColor"/>
43-
<path d="M104 162c4 4 8 6 13 6s9-2 13-6" fill="none" stroke="var(--accent)" stroke-width="5"/>
44-
<path d="M117 122V106" stroke="currentColor" stroke-width="6"/>
45-
<circle cx="117" cy="101" r="7" fill="var(--accent)"/>
46-
</svg>Visu<span class="visubot-bot">Bot</span>`
36+
/** Kopfzeile im VisuBot-Modus: der Roboter aus dem VisuBot-Logo und „Visu“ + orangefarbenes „Bot“. */
37+
export const visuBotBrand = `<img class="visubot-logo" src="${visuBotLogoURL}" width="55" height="32" alt="">Visu<span class="visubot-bot">Bot</span>`
4738

4839
/** Gibt es mBot2-Kästen und den 3D-Simulator? (Im Kurs und in der eigenen Reihe.) */
4940
export const visuBotEnabled = () => visuBotMode() !== 'off'

‎website/app/assets/index-CEv0km8g.css‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎website/app/assets/index-CXW1pfYW.css‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 26 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)