connect custom pages and link pages with link blocks

This commit is contained in:
Philipp Traber
2024-10-15 23:04:30 +02:00
parent e882565a71
commit 1ccc723542
27 changed files with 870 additions and 276 deletions
+10
View File
@@ -0,0 +1,10 @@
export function hashToColor(hash: string|null): string {
if (!hash) {
return "black";
}
const r = parseInt(hash.slice(0, 2), 16);
const g = parseInt(hash.slice(2, 4), 16);
const b = parseInt(hash.slice(4, 6), 16);
const color = `rgb(${r}, ${g}, ${b})`;
return color;
}