tweaked UI a bit

This commit is contained in:
2026-11-10 18:35:12 -08:00
parent 48d15f8ab1
commit a54c03f00b
6 changed files with 84 additions and 26 deletions

View File

@@ -22,6 +22,16 @@ var GLASS_TARGETS = [
displace: 0,
backgroundOpacity: 0.08
}
},
{
selector: ".feature-box",
options: {
distortionScale: -220,
displace: 0,
backgroundOpacity: 0.12,
saturation: 1.3,
cornerRadius: 30
}
}
];
@@ -57,7 +67,7 @@ function initGlassSurface(el, opts) {
var rect = el.getBoundingClientRect();
var w = Math.round(rect.width) || 160;
var h = Math.round(rect.height) || 40;
var r = Math.round(h / 2);
var r = opts.cornerRadius !== undefined ? opts.cornerRadius : Math.round(h / 2);
var edge = Math.min(w, h) * (borderWidth * 0.5);
var mapSvg = '<svg width="' + w + '" height="' + h + '" viewBox="0 0 ' + w + ' ' + h + '" xmlns="http://www.w3.org/2000/svg">' +