Skip to content

Commit 558febb

Browse files
committed
fix: update Zyn Book links for direct access and adjust camera position in Three.js
1 parent c3bc3fa commit 558febb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

website/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@
396396
<a href="#" class="nav-logo">Zyntax</a>
397397

398398
<ul class="nav-links">
399-
<li><a href="https://darmie.github.io/zyntax/book">The Zyn Book</a></li>
399+
<li><a href="https://darmie.github.io/zyntax/book/">The Zyn Book</a></li>
400400
<li><a href="#" class="nav-link-badge">Playground <span class="coming-soon">Soon</span></a></li>
401401
<li>
402402
<a href="https://github.com/darmie/zyntax" class="nav-cta" target="_blank" rel="noopener">
@@ -431,7 +431,7 @@ <h1 class="hero-title">
431431
</p>
432432

433433
<div class="hero-actions">
434-
<a href="https://darmie.github.io/zyntax/book" class="btn btn-primary">
434+
<a href="https://darmie.github.io/zyntax/book/" class="btn btn-primary">
435435
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
436436
<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/>
437437
<path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/>
@@ -495,7 +495,7 @@ <h1 class="hero-title">
495495

496496
const containerRect = container.getBoundingClientRect();
497497
const camera = new THREE.PerspectiveCamera(50, containerRect.width / containerRect.height, 0.1, 100);
498-
camera.position.set(0, 0.2, 5);
498+
camera.position.set(0, -0.3, 5);
499499

500500
const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
501501
renderer.setSize(containerRect.width, containerRect.height);

0 commit comments

Comments
 (0)