-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aefc295
commit 935c9a3
Showing
2 changed files
with
37 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,10 @@ <h3>NASA Space</h3> | |
<div id="myNav" class="overlay"> | ||
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a> | ||
<div class="overlay-content"> | ||
<a href="#">About</a> | ||
<a href="#">Services</a> | ||
<a href="#">Clients</a> | ||
<a href="#">Contact</a> | ||
<a href="#">About</a> | ||
<a href="#">Services</a> | ||
<a href="#">Clients</a> | ||
<a href="#">Contact</a> | ||
</div> | ||
</div> | ||
</nav> | ||
|
@@ -34,28 +34,28 @@ <h2 class="side-spacing introduction">Welcome to Space Jumpers, explore the exo- | |
|
||
<div class="sign-up-section"> | ||
<div class="form"> | ||
<form action=""> | ||
<fieldset> | ||
<legend id="signInUp">Sign Up</legend> | ||
<div class="form-group removeName"> | ||
<label for="name">Name:</label> | ||
<input type="text" id="name" name="name" required> | ||
</div> | ||
<div class="form-group"> | ||
<label for="email">Email:</label> | ||
<input type="email" id="email" name="email" required> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password">Password:</label> | ||
<input type="password" id="password" name="password" required> | ||
</div> | ||
<br> | ||
<div class="form-group"> | ||
<input type="submit"> | ||
<p id="signOption">Already have an account? <a href="" onclick="singIn()">Sign In</a></p> | ||
</div> | ||
</fieldset> | ||
</form> | ||
<form action=""> | ||
<fieldset> | ||
<legend id="signInUp">Sign Up</legend> | ||
<div class="form-group removeName"> | ||
<label for="name">Name:</label> | ||
<input type="text" id="name" name="name" required> | ||
</div> | ||
<div class="form-group"> | ||
<label for="email">Email:</label> | ||
<input type="email" id="email" name="email" required> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password">Password:</label> | ||
<input type="password" id="password" name="password" required> | ||
</div> | ||
<br> | ||
<div class="form-group"> | ||
<input type="submit"> | ||
<p id="signOption">Already have an account? <a href="#" onclick="signIn()">Sign In</a></p> | ||
</div> | ||
</fieldset> | ||
</form> | ||
</div> | ||
<div class="earth"> | ||
<!-- The 3D model will be rendered here --> | ||
|
@@ -66,10 +66,18 @@ <h2 class="side-spacing introduction">Welcome to Space Jumpers, explore the exo- | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/examples/js/controls/OrbitControls.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/examples/js/loaders/GLTFLoader.js"></script> | ||
<script> | ||
function openNav() { | ||
document.getElementById("myNav").style.width = "100%"; | ||
} | ||
|
||
function closeNav() { | ||
document.getElementById("myNav").style.width = "0%"; | ||
} | ||
|
||
// Scene setup | ||
const scene = new THREE.Scene(); | ||
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 5000); | ||
const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true }); // Alpha for transparent background | ||
const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true }); | ||
renderer.setClearColor(0x000000, 0); // Set clear color to transparent | ||
renderer.setSize(window.innerWidth, window.innerHeight); | ||
|
||
|
@@ -109,7 +117,7 @@ <h2 class="side-spacing introduction">Welcome to Space Jumpers, explore the exo- | |
); | ||
|
||
// Camera positioning | ||
camera.position.set(500, 55, 50); | ||
camera.position.set(0, 0, 300); | ||
camera.lookAt(0, 0, 0); | ||
|
||
// Animation loop | ||
|
@@ -132,4 +140,3 @@ <h2 class="side-spacing introduction">Welcome to Space Jumpers, explore the exo- | |
</script> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters