From f7e43a57fe4e81ba913049677a1971c4cf2b4b3c Mon Sep 17 00:00:00 2001 From: Javier Blanco Date: Sat, 2 May 2026 14:56:44 +0700 Subject: [PATCH] Fix palm trees 6 --- classes/index.html | 4 ++-- connect/index.html | 4 ++-- festivals/index.html | 4 ++-- index.html | 4 ++-- js/main.js | 8 +++----- schedule/index.html | 4 ++-- studios/index.html | 4 ++-- 7 files changed, 15 insertions(+), 17 deletions(-) diff --git a/classes/index.html b/classes/index.html index fe6fff4..af36a6e 100644 --- a/classes/index.html +++ b/classes/index.html @@ -13,7 +13,7 @@ - + @@ -375,7 +375,7 @@ - + \ No newline at end of file diff --git a/connect/index.html b/connect/index.html index ed9e630..a673bb3 100644 --- a/connect/index.html +++ b/connect/index.html @@ -13,7 +13,7 @@ - + @@ -193,7 +193,7 @@ - + \ No newline at end of file diff --git a/festivals/index.html b/festivals/index.html index ec07acb..cd84280 100644 --- a/festivals/index.html +++ b/festivals/index.html @@ -13,7 +13,7 @@ - + @@ -244,7 +244,7 @@ - + \ No newline at end of file diff --git a/index.html b/index.html index 7ae593f..b569d11 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@ - + @@ -273,7 +273,7 @@ - + \ No newline at end of file diff --git a/js/main.js b/js/main.js index 4d6ebdf..87329a8 100644 --- a/js/main.js +++ b/js/main.js @@ -176,15 +176,13 @@ function lockPalmSizes() { const vh = window.innerHeight; const clamp = (val, min, max) => Math.min(Math.max(val, min), max); - const leftOffset = vw >= 1024 ? -0.08 : -0.15; - // Each entry: [size, { top|bottom, left|right } in px] const config = { - 'corner-tl': { size: clamp(vw * 0.40, 100, 620), pos: { top: vh * -0.08, left: vw * leftOffset } }, + 'corner-tl': { size: clamp(vw * 0.40, 100, 620), pos: { top: vh * -0.08, left: vw * -0.15 } }, 'corner-tr': { size: clamp(vw * 0.40, 100, 620), pos: { top: vh * -0.08, right: vw * -0.10 } }, - 'corner-bl': { size: clamp(vw * 0.40, 100, 620), pos: { bottom: vh * -0.08, left: vw * leftOffset } }, + 'corner-bl': { size: clamp(vw * 0.40, 100, 620), pos: { bottom: vh * -0.08, left: vw * -0.15 } }, 'corner-br': { size: clamp(vw * 0.40, 100, 620), pos: { bottom: vh * -0.08, right: vw * -0.10 } }, - 'corner-ml': { size: clamp(vw * 0.49, 120, 760), pos: { top: vh * 0.32, left: vw * leftOffset } }, + 'corner-ml': { size: clamp(vw * 0.49, 120, 760), pos: { top: vh * 0.32, left: vw * -0.15 } }, 'corner-ml2': { size: clamp(vw * 0.45, 110, 700), pos: { top: vh * 0.62, left: vw * -0.10 } }, 'corner-mr': { size: clamp(vw * 0.44, 110, 680), pos: { top: vh * 0.22, right: vw * -0.10 } }, 'corner-mr2': { size: clamp(vw * 0.48, 115, 740), pos: { top: vh * 0.70, right: vw * -0.10 } }, diff --git a/schedule/index.html b/schedule/index.html index ad617e4..4a0a342 100644 --- a/schedule/index.html +++ b/schedule/index.html @@ -13,7 +13,7 @@ - + @@ -119,7 +119,7 @@ - + + \ No newline at end of file