Skip to content

Commit 57ac334

Browse files
committed
style: pov body types but bar in podium
1 parent b5d668d commit 57ac334

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

website/js/body-types.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -382,15 +382,15 @@ import { AthleteRenderer } from "./AthleteRenderer.js";
382382
wrapper.appendChild(canvasWrap);
383383

384384
const width = Math.max(canvasWrap.clientWidth || 1180, 900);
385-
const height = 700;
385+
const height = 520;
386386

387387
const scene = new THREE.Scene();
388388
scene.background = null;
389389
currentScene = scene;
390390

391391
const camera = new THREE.PerspectiveCamera(42, width / height, 0.1, 200);
392-
camera.position.set(0, 18, 38);
393-
camera.lookAt(0, 7, 0);
392+
camera.position.set(0, 20, 28);
393+
camera.lookAt(0, 11, 0);
394394

395395
const renderer = new THREE.WebGLRenderer({
396396
antialias: true,
@@ -520,6 +520,7 @@ import { AthleteRenderer } from "./AthleteRenderer.js";
520520
const silverH = pos.Silver.podiumHeight;
521521
const goldH = pos.Gold.podiumHeight;
522522

523+
const overlap = 0.02;
523524
const layers = [
524525
{
525526
w: bronzeRight - silverLeft,
@@ -529,15 +530,15 @@ import { AthleteRenderer } from "./AthleteRenderer.js";
529530
},
530531
{
531532
w: goldRight - silverLeft,
532-
h: silverH - bronzeH,
533+
h: silverH - bronzeH + overlap,
533534
cx: (silverLeft + goldRight) / 2,
534-
cy: bronzeH + (silverH - bronzeH) / 2
535+
cy: bronzeH + (silverH - bronzeH + overlap) / 2 - overlap / 2
535536
},
536537
{
537538
w: pos.Gold.podiumWidth,
538-
h: goldH - silverH,
539+
h: goldH - silverH + overlap,
539540
cx: pos.Gold.x,
540-
cy: silverH + (goldH - silverH) / 2
541+
cy: silverH + (goldH - silverH + overlap) / 2 - overlap / 2
541542
}
542543
];
543544

website/styles.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ h4 {
981981
justify-content: center;
982982
align-items: center;
983983
gap: 14px 18px;
984-
margin: 0 auto 18px;
984+
margin: 0 auto;
985985
width: 100%;
986986
max-width: 1200px;
987987
}
@@ -1024,14 +1024,14 @@ h4 {
10241024

10251025
.bodytype-canvas-wrap {
10261026
width: 100%;
1027-
height: 700px;
1027+
height: 520px;
10281028
pointer-events: none;
10291029
}
10301030

10311031
.bodytype-canvas-wrap canvas {
10321032
display: block;
10331033
width: 100% !important;
1034-
height: 700px !important;
1034+
height: 520px !important;
10351035
background: transparent;
10361036
pointer-events: none;
10371037
}

0 commit comments

Comments
 (0)