{
"$schema": "../../schemas/code-crispies-module-schema.json",
"id": "html-svg",
"title": "SVG Grundlagen",
"description": "Zeichne skalierbare Vektorgrafiken direkt in HTML",
"mode": "html",
"difficulty": "beginner",
"lessons": [
{
"id": "svg-circle",
"title": "Kreise zeichnen",
"description": "SVG (Scalable Vector Graphics) ermöglicht es, Formen direkt in HTML zu zeichnen. Das <svg>-Element ist der Container mit width und height Attributen.
Verwende <circle> mit cx, cy (Mittelpunkt) und r (Radius) zum Zeichnen von Kreisen.",
"task": "Erstelle ein SVG mit einem Kreis: 1. Ein <svg> mit width=\"200\" und height=\"200\" 2. Ein <circle> zentriert bei (100,100) mit Radius 50 3. Füge eine fill-Farbe hinzu",
"previewHTML": "",
"previewBaseCSS": "body { font-family: system-ui; padding: 20px; background: #f5f5f5; display: flex; justify-content: center; } svg { background: white; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }",
"sandboxCSS": "",
"initialCode": "",
"solution": "",
"previewContainer": "preview-area",
"validations": [
{
"type": "element_exists",
"value": "svg",
"message": "Füge ein