Experimenting with tailwind: splitting the index intro into a separate class; adding the logo

This commit is contained in:
Pieter Vander Vennet 2021-01-18 02:51:42 +01:00
parent 6864ba4fd6
commit 923b86b507
6 changed files with 88 additions and 21 deletions

View file

@ -18,6 +18,12 @@ function transformTranslation(obj: any, depth = 1) {
let values = ""
for (const key in obj) {
if(key === "#"){
continue;
}
if(key.match("^[a-zA-Z0-9_]*$") === null){
throw "Invalid character in key: "+key
}
values += (Utils.Times((_) => " ", depth)) + key + ": " + transformTranslation(obj[key], depth + 1) + ",\n"
}
return `{${values}}`;