Zeige den Vorgang in seiner Akte, ordne mehrere Aufgaben einer Frist zu und verwende Logo sowie Favicon aus der Lieferung.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
448e9a06ff
commit
dc8a9c2db6
41 files changed
+600
-390
No files matched your search
@@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
||||
<path fill="#085041" d="M 49.21 17.51 L 50.41 18.25 L 51.45 19.16 L 52.41 20.17 L 53.29 21.26 L 54.10 22.43 L 54.80 23.66 L 55.42 24.96 L 55.92 26.30 L 56.32 27.68 L 56.60 29.10 L 56.78 30.53 L 56.84 31.98 L 56.79 33.42 L 56.64 34.86 L 56.39 36.28 L 56.04 37.68 L 55.61 39.05 L 55.10 40.39 L 54.52 41.70 L 53.87 42.97 L 53.16 44.21 L 52.39 45.40 L 51.57 46.56 L 50.69 47.68 L 49.76 48.75 L 48.78 49.78 L 47.75 50.77 L 46.66 51.70 L 45.52 52.57 L 44.34 53.38 L 43.10 54.12 L 41.82 54.79 L 40.49 55.36 L 39.12 55.85 L 37.73 56.23 L 36.30 56.51 L 34.86 56.69 L 33.42 56.75 L 31.98 56.70 L 30.55 56.54 L 29.14 56.27 L 27.76 55.90 L 26.41 55.44 L 25.12 54.88 L 23.87 54.25 L 22.67 53.54 L 21.53 52.78 L 20.44 51.96 L 19.40 51.09 L 18.41 50.19 L 17.47 49.25 L 16.57 48.29 L 15.71 47.31 L 14.89 46.29 L 14.11 45.26 L 13.36 44.20 L 12.65 43.12 L 11.97 42.00 L 11.33 40.86 L 10.74 39.68 L 10.20 38.46 L 9.72 37.22 L 9.31 35.94 L 8.96 34.63 L 8.70 33.29 L 8.53 31.93 L 8.45 30.56 L 8.47 29.18 L 8.60 27.80 L 8.82 26.43 L 9.15 25.08 L 9.59 23.76 L 10.12 22.47 L 10.74 21.23 L 11.45 20.04 L 12.23 18.90 L 13.09 17.81 L 14.01 16.79 L 14.99 15.83 L 16.02 14.93 L 17.09 14.08 L 18.20 13.30 L 19.34 12.57 L 20.51 11.90 L 21.71 11.29 L 22.94 10.74 L 24.19 10.24 L 25.46 9.80 L 26.76 9.43 L 28.08 9.14 L 29.41 8.92 L 30.76 8.78 L 32.11 8.75 L 33.47 8.82 L 34.80 9.02 L 36.09 9.50 L 36.09 9.50 L 34.74 9.55 L 33.42 9.62 L 32.11 9.75 L 30.82 9.96 L 29.56 10.22 L 28.32 10.54 L 27.10 10.91 L 25.91 11.33 L 24.74 11.78 L 23.60 12.28 L 22.47 12.82 L 21.36 13.39 L 20.27 14.01 L 19.20 14.66 L 18.16 15.37 L 17.13 16.12 L 16.14 16.92 L 15.18 17.78 L 14.27 18.70 L 13.41 19.67 L 12.60 20.71 L 11.87 21.80 L 11.21 22.95 L 10.63 24.14 L 10.15 25.38 L 9.76 26.65 L 9.47 27.95 L 9.29 29.27 L 9.20 30.60 L 9.22 31.93 L 9.34 33.26 L 9.54 34.56 L 9.84 35.85 L 10.22 37.10 L 10.66 38.33 L 11.18 39.52 L 11.76 40.67 L 12.38 41.79 L 13.06 42.88 L 13.78 43.93 L 14.54 44.94 L 15.33 45.93 L 16.17 46.88 L 17.04 47.79 L 17.96 48.67 L 18.91 49.51 L 19.91 50.31 L 20.95 51.06 L 22.04 51.76 L 23.17 52.40 L 24.34 52.97 L 25.54 53.46 L 26.79 53.87 L 28.06 54.19 L 29.35 54.41 L 30.66 54.54 L 31.98 54.57 L 33.29 54.49 L 34.59 54.31 L 35.87 54.04 L 37.12 53.67 L 38.34 53.21 L 39.51 52.67 L 40.64 52.07 L 41.73 51.39 L 42.77 50.66 L 43.76 49.89 L 44.70 49.07 L 45.60 48.22 L 46.46 47.33 L 47.28 46.42 L 48.07 45.48 L 48.82 44.52 L 49.54 43.53 L 50.22 42.51 L 50.87 41.47 L 51.48 40.39 L 52.05 39.29 L 52.57 38.14 L 53.04 36.97 L 53.44 35.76 L 53.78 34.53 L 54.04 33.26 L 54.22 31.98 L 54.30 30.68 L 54.30 29.37 L 54.19 28.06 L 53.99 26.76 L 53.69 25.48 L 53.29 24.22 L 52.79 22.99 L 52.21 21.81 L 51.55 20.67 L 50.82 19.58 L 50.02 18.53 L 49.21 17.51 Z"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.8 KiB |
+5
-163
@@ -1,163 +1,5 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import sharp from "sharp";
|
||||
|
||||
const here = path.dirname(fileURLToPath(import.meta.url));
|
||||
const publicDir = path.resolve(here, "../public");
|
||||
const designDir = "C:/Dev/jinkendo-app-design-2026-10-17/assets";
|
||||
|
||||
function brushRing(cx, cy, r) {
|
||||
const start = -0.7;
|
||||
const end = start + Math.PI * 1.78;
|
||||
const steps = 96;
|
||||
const outer = [];
|
||||
const inner = [];
|
||||
for (let i = 0; i <= steps; i += 1) {
|
||||
const u = i / steps;
|
||||
const angle = start + (end - start) * u;
|
||||
const taper = Math.sin(Math.PI * u) ** 0.62;
|
||||
const wave = 0.55 + 0.45 * Math.sin(u * Math.PI * 2.15 + 0.6);
|
||||
const width = r * 0.2 * taper * wave;
|
||||
const wobble = 1 + 0.028 * Math.sin(u * Math.PI * 6.2);
|
||||
const radius = r * wobble;
|
||||
const x = cx + radius * Math.cos(angle);
|
||||
const y = cy + radius * Math.sin(angle);
|
||||
const nx = Math.cos(angle);
|
||||
const ny = Math.sin(angle);
|
||||
outer.push([x + nx * width * 0.78, y + ny * width * 0.78]);
|
||||
inner.push([x - nx * width * 0.28, y - ny * width * 0.28]);
|
||||
}
|
||||
const point = (pair) => pair.map((value) => value.toFixed(2)).join(" ");
|
||||
let d = `M ${point(outer[0])}`;
|
||||
for (const pair of outer.slice(1)) d += ` L ${point(pair)}`;
|
||||
for (const pair of inner.reverse()) d += ` L ${point(pair)}`;
|
||||
return `${d} Z`;
|
||||
}
|
||||
|
||||
const enso = brushRing(32, 32, 22.5);
|
||||
const ensoSmall = brushRing(32, 32, 23.5);
|
||||
|
||||
const glyphs = {
|
||||
tsumugu: `
|
||||
<path fill="currentColor" opacity=".72" d="M37.2 25.2h11.2v13.2h-1.8V27.4H38.6z"/>
|
||||
<path fill="currentColor" d="M22.8 29.2h8.8l1.7 2.2h10.2V44H22.8z"/>
|
||||
<path fill="currentColor" opacity=".45" d="M26.2 34.2h6.4v1.3h-6.4zm0 2.8h4.5v1.3h-4.5z"/>`,
|
||||
tsumuguSmall: `
|
||||
<path fill="currentColor" d="M20 28.5h10l2 2.4h12V46H20z"/>
|
||||
<path fill="currentColor" opacity=".7" d="M34 24h12v12h-2.2V27.2H35.6z"/>`,
|
||||
mitai: `
|
||||
<g fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="32" cy="22.5" r="2.3" fill="currentColor" stroke="none"/>
|
||||
<path d="M32 25v6.5M27.2 28.2 32 30.2l4.8-2M32 31.5 28.6 39M32 31.5l3.4 7.5"/>
|
||||
<path d="M18.5 41.5h5.2l1.7-3.6 1.8 5.2 2-6.2 1.7 4.6h8.2"/>
|
||||
</g>`,
|
||||
shinkan: `
|
||||
<g fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="25.5" cy="24" r="2.2" fill="currentColor" stroke="none"/>
|
||||
<path d="M25.5 26.4 29 31.2l4.2-2.2M29 31.2 24.2 37.2M29 31.2l4.6 2.2 1.8 5.2"/>
|
||||
<rect x="37.5" y="26.5" width="9.5" height="12" rx="1.2"/>
|
||||
<path d="M39.6 30h5.4M39.6 33h5.4M39.6 36h3.6"/>
|
||||
</g>`,
|
||||
kairo: `
|
||||
<g fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path fill="none" d="M19.5 42.5 27.5 34.5 34.5 38.5 43 25"/>
|
||||
<circle cx="19.5" cy="42.5" r="2.1" stroke="none"/>
|
||||
<circle cx="27.5" cy="34.5" r="2.1" stroke="none"/>
|
||||
<circle cx="34.5" cy="38.5" r="2.1" stroke="none"/>
|
||||
<circle cx="43" cy="25" r="2.1" stroke="none"/>
|
||||
<path fill="currentColor" stroke="none" d="M43 23.2h8.2l-2.3 2.6 2.3 2.6H43z"/>
|
||||
</g>`,
|
||||
kansho: `
|
||||
<path fill="currentColor" fill-rule="evenodd" d="M25 34.5c.4-8.2 6.4-13.4 13.2-12.6 2.6.4 4.6 2 5.6 4.2 1.6-.6 3.4-.2 4.2 1.4-.8 1.4-2.2 2-3.6 1.8.4 2.2.2 4.2-.8 5.8-2.4 3.6-6.4 5.4-10.4 5-5.4-.4-8.6-4.2-8.2-10.6z M39.2 27.2l.9 1.8 2 .2-1.5 1.3.5 2-1.9-1.1-1.9 1.1.5-2-1.5-1.3 2-.2z"/>`,
|
||||
};
|
||||
|
||||
function symbolSvg({ glyph, small = false }) {
|
||||
const ring = small ? ensoSmall : enso;
|
||||
return `<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
|
||||
<path fill="currentColor" d="${ring}"/>
|
||||
${glyph}
|
||||
</svg>
|
||||
`;
|
||||
}
|
||||
|
||||
function iconSvg(glyph, { maskable = false } = {}) {
|
||||
const scale = maskable ? 0.62 : 0.74;
|
||||
const offset = (64 - 64 * scale) / 2;
|
||||
return `<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
||||
<rect width="64" height="64" fill="#085041"/>
|
||||
<g transform="translate(${offset.toFixed(2)} ${offset.toFixed(2)}) scale(${scale})" color="#9FE1CB">
|
||||
<path fill="currentColor" d="${enso}"/>
|
||||
${glyph}
|
||||
</g>
|
||||
</svg>
|
||||
`;
|
||||
}
|
||||
|
||||
function write(file, contents) {
|
||||
fs.mkdirSync(path.dirname(file), { recursive: true });
|
||||
fs.writeFileSync(file, contents);
|
||||
}
|
||||
|
||||
const products = [
|
||||
["mitai", "Mitai", "Körper und Gesundheit"],
|
||||
["shinkan", "Shinkan", "Training planen"],
|
||||
["kairo", "Kairo", "Vorhaben steuern"],
|
||||
["kansho", "Kanshō", "Reflektieren und verstehen"],
|
||||
["tsumugu", "Tsumugu", "Unterlagen ordnen"],
|
||||
];
|
||||
|
||||
write(path.join(here, "enso-master.svg"), `<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
||||
<path fill="#085041" d="${enso}"/>
|
||||
</svg>
|
||||
`);
|
||||
write(path.join(publicDir, "brand/tsumugu-symbol.svg"), symbolSvg({ glyph: glyphs.tsumugu }).replaceAll("currentColor", "#085041"));
|
||||
write(path.join(publicDir, "brand/tsumugu-symbol-on-dark.svg"), symbolSvg({ glyph: glyphs.tsumugu }).replaceAll("currentColor", "#9FE1CB"));
|
||||
write(path.join(publicDir, "brand/tsumugu-small.svg"), symbolSvg({ glyph: glyphs.tsumuguSmall, small: true }).replaceAll("currentColor", "#9FE1CB"));
|
||||
write(path.join(publicDir, "favicon.svg"), iconSvg(glyphs.tsumuguSmall));
|
||||
|
||||
write(path.join(here, "../src/enso-path.js"), `export const ENSO_PATH = ${JSON.stringify(enso)};\n`);
|
||||
|
||||
for (const [id, title, subtitle] of products) {
|
||||
const glyph = glyphs[id];
|
||||
const master = `<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 360 220">
|
||||
<rect width="360" height="220" rx="28" fill="#085041"/>
|
||||
<g transform="translate(118 28) scale(1.9)" color="#9FE1CB">
|
||||
<path fill="currentColor" d="${enso}"/>
|
||||
${glyph}
|
||||
</g>
|
||||
<text x="180" y="176" text-anchor="middle" font-family="Segoe UI, sans-serif" font-size="28" font-weight="700" fill="#f7fbf8">${title}</text>
|
||||
<text x="180" y="200" text-anchor="middle" font-family="Segoe UI, sans-serif" font-size="14" fill="#9FE1CB">${subtitle}</text>
|
||||
</svg>
|
||||
`;
|
||||
write(path.join(designDir, `${id}-master.svg`), master);
|
||||
write(path.join(designDir, `${id}-symbol-on-dark.svg`), symbolSvg({ glyph }).replaceAll("currentColor", "#9FE1CB"));
|
||||
write(path.join(designDir, `${id}-symbol-on-light.svg`), symbolSvg({ glyph }).replaceAll("currentColor", "#085041"));
|
||||
write(path.join(designDir, `${id}-icon.svg`), iconSvg(glyph));
|
||||
write(path.join(designDir, `${id}-maskable.svg`), iconSvg(glyph, { maskable: true }));
|
||||
}
|
||||
|
||||
async function png(svg, file, size) {
|
||||
await sharp(Buffer.from(svg)).resize(size, size).png().toFile(file);
|
||||
}
|
||||
|
||||
const tsumuguIcon = iconSvg(glyphs.tsumugu);
|
||||
const tsumuguMask = iconSvg(glyphs.tsumugu, { maskable: true });
|
||||
const tsumuguSmallIcon = iconSvg(glyphs.tsumuguSmall);
|
||||
await png(tsumuguSmallIcon, path.join(publicDir, "favicon-16.png"), 16);
|
||||
await png(tsumuguSmallIcon, path.join(publicDir, "favicon-32.png"), 32);
|
||||
await png(tsumuguIcon, path.join(publicDir, "apple-touch-icon.png"), 180);
|
||||
await png(tsumuguIcon, path.join(publicDir, "icons/icon-192.png"), 192);
|
||||
await png(tsumuguIcon, path.join(publicDir, "icons/icon-512.png"), 512);
|
||||
await png(tsumuguMask, path.join(publicDir, "icons/icon-maskable-512.png"), 512);
|
||||
|
||||
for (const [id] of products) {
|
||||
const svg = fs.readFileSync(path.join(designDir, `${id}-icon.svg`));
|
||||
await png(svg, path.join(designDir, `${id}-32.png`), 32);
|
||||
await png(svg, path.join(designDir, `${id}-192.png`), 192);
|
||||
}
|
||||
console.log("icons written");
|
||||
// Stillgelegt. Das große Logo bleibt frontend/public/brand/logo-original.png.
|
||||
// Die Browser-Favicons liegen unter frontend/public/brand/favicons-v2 und dürfen
|
||||
// von hier nicht erzeugt oder überschrieben werden. Dieses Skript schreibt nichts.
|
||||
console.error("Logo-Renderer ist stillgelegt. Verbindlich sind die Dateien in frontend/public/brand.");
|
||||
process.exit(0);
|
||||
Reference in new issue
Block a user