minor change

This commit is contained in:
CJSatnarine
2025-03-14 15:42:22 -04:00
parent 15fd3615f8
commit 955979513e
3 changed files with 15 additions and 12 deletions

File diff suppressed because one or more lines are too long

2
dist/index.html vendored
View File

@@ -7,7 +7,7 @@
<title> CJ Satnarine </title> <title> CJ Satnarine </title>
<canvas id="canvas"></canvas> <canvas id="canvas"></canvas>
<script type="module" crossorigin src="/assets/index-t7JyoB65.js"></script> <script type="module" crossorigin src="/assets/index-BoUOTmGk.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BjZe3bm5.css"> <link rel="stylesheet" crossorigin href="/assets/index-BjZe3bm5.css">
</head> </head>

View File

@@ -18,7 +18,10 @@ renderer.setAnimationLoop(animate);
document.body.appendChild(renderer.domElement); document.body.appendChild(renderer.domElement);
// Resizing the camera position based on window width. // Resizing the camera position based on window width.
if (window.innerWidth <= 650) { if (window.innerWidth <= 400) {
camera.position.z = 6.5;
}
if (window.innerWidth > 400 && window.innerWidth <= 650) {
camera.position.z = 5.5; camera.position.z = 5.5;
} }
else if (window.innerWidth > 650 && window.innerWidth <= 915) { else if (window.innerWidth > 650 && window.innerWidth <= 915) {