www: landing page redesign (#1279)

This commit is contained in:
Marvin Hagemeister
2023-06-30 18:45:46 +02:00
committed by GitHub
parent 2dc23dd66c
commit 18bf977052
7 changed files with 176 additions and 158 deletions
+16
View File
@@ -14,4 +14,20 @@ export default {
transparent: "transparent",
},
},
plugins: {
// Basic workaround for old twind version not supporting
// the `basis-*` keyword
"basis": (parts) => {
let value;
const arr = parts[0].split("/");
if (arr.length === 2) {
value = `${(+arr[0] / +arr[1]) * 100}%`;
} else if (parts.length === 1) {
value = parts[0];
}
return {
"flex-basis": value,
};
},
},
} as Options;