Skip to content

Commit

Permalink
sign-up-page
Browse files Browse the repository at this point in the history
  • Loading branch information
alurubalakarthikeya committed Oct 3, 2024
1 parent aefc295 commit 935c9a3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 31 deletions.
65 changes: 36 additions & 29 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ <h3>NASA Space</h3>
<div id="myNav" class="overlay">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</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>
Expand All @@ -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 -->
Expand All @@ -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);

Expand Down Expand Up @@ -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
Expand All @@ -132,4 +140,3 @@ <h2 class="side-spacing introduction">Welcome to Space Jumpers, explore the exo-
</script>
</body>
</html>

3 changes: 1 addition & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,9 @@ canvas {
}

.earth {
height: 400px; /* Set a fixed height for Earth section */
width: 400px; /* Set a fixed height for Earth section */
max-width: 100%;
display: block;
margin: 0 auto;
}

@media (max-width: 768px) {
Expand Down

0 comments on commit 935c9a3

Please sign in to comment.