Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions aveenashkumar68.html/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Signup and Login Page

A simple and responsive Signup and Login page built using **HTML, CSS (Bootstrap), and JavaScript**.

## Features
- **Signup and Login Forms** with smooth transitions.
- **Validation** for password confirmation.
- **Styled with Bootstrap** for a clean and responsive UI.
- **JavaScript Toggle System** to switch between signup and login forms.
- **Basic Form Handling** with alert messages.

## Technologies Used
- HTML5
- CSS3
- Bootstrap 5
- JavaScript (Vanilla JS)

## Installation
1. Clone the repository:
```sh
git clone https://github.com/your-username/signup-login-page.git
```
2. Navigate to the project folder:
```sh
cd signup-login-page
```
3. Open `index.html` in a browser.

## Usage
- **Sign Up**: Enter name, email, password, and confirm password. Click "Sign Up."
- **Login**: Enter registered email and password. Click "Login."
- Toggle between **Sign Up** and **Login** using the provided links.

## File Structure
```
/signup-login-page
│── index.html # Main HTML file
│── style.css # CSS styles (if using external CSS)
│── script.js # JavaScript logic (if using external JS)
│── assets/ # Folder for images or other assets
```

## Future Enhancements
- Connect to a **backend** (Node.js, Express, Firebase, etc.).
- Add **password encryption** and authentication.
- Store user data in a **database (MongoDB, MySQL, etc.)**.

## License
This project is open-source under the [MIT License](LICENSE).

---
### **Author**
**Aveenash Kumar**
- GitHub: [aveenashkumar68] (https://github.com/aveenashkumar68)
- LinkedIn: [AveenashKumar] (linkedin.com/in/aveenash-kumar-47a4502aa)

Feel free to contribute and improve the project!

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
178 changes: 178 additions & 0 deletions aveenashkumar68.html/project.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Signup and Login Page</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<style>
body {
margin: 0;
padding: 0;
font-family: 'Arial', sans-serif;
background: url('darren-nunis-cxE7SXKnzv0-unsplash.jpg') no-repeat center center fixed;
background-size: cover;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.auth-container {
max-width: 400px;
width: 100%;
padding: 30px;
background: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
transform: perspective(1000px) rotateY(10deg);
transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.auth-container:hover {
transform: perspective(1000px) rotateY(0deg);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}
.auth-container h2 {
text-align: center;
margin-bottom: 20px;
color: #2c3e50; /* Dark blue-gray */
font-weight: bold;
}
.form-control {
margin-bottom: 20px;
border-radius: 5px;
border: 1px solid #bdc3c7; /* Light gray */
padding: 10px;
font-size: 16px;
background: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
}
.form-control:focus {
border-color: #3498db; /* Bright blue */
box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}
.btn-auth {
width: 100%;
background: linear-gradient(45deg, #3498db, #2980b9); /* Blue gradient */
color: #fff;
border: none;
padding: 10px;
font-size: 18px;
border-radius: 5px;
cursor: pointer;
transition: background 0.3s ease;
}
.btn-auth:hover {
background: linear-gradient(45deg, #2980b9, #3498db); /* Reverse gradient on hover */
}
.text-center {
color: #34495e; /* Dark blue-gray */
}
.text-center a {
color: #3498db; /* Bright blue */
text-decoration: none;
font-weight: bold;
}
.text-center a:hover {
text-decoration: underline;
}
.hidden {
display: none;
}
</style>
</head>
<body>
<!-- Signup Container -->
<div class="auth-container" id="signupContainer">
<h2>Sign Up</h2>
<form id="signupForm">
<div class="form-group">
<input type="text" class="form-control" id="fullName" placeholder="Full Name" required>
</div>
<div class="form-group">
<input type="email" class="form-control" id="email" placeholder="Email Address" required>
</div>
<div class="form-group">
<input type="password" class="form-control" id="password" placeholder="Password" required>
</div>
<div class="form-group">
<input type="password" class="form-control" id="confirmPassword" placeholder="Confirm Password" required>
</div>
<button type="submit" class="btn btn-auth">Sign Up</button>
</form>
<div class="text-center mt-3">
<p>Already have an account? <a href="#" id="loginLink">Login</a></p>
</div>
</div>

<!-- Login Container -->
<div class="auth-container hidden" id="loginContainer">
<h2>Login</h2>
<form id="loginForm">
<div class="form-group">
<input type="email" class="form-control" id="loginEmail" placeholder="Email Address" required>
</div>
<div class="form-group">
<input type="password" class="form-control" id="loginPassword" placeholder="Password" required>
</div>
<button type="submit" class="btn btn-auth">Login</button>
</form>
<div class="text-center mt-3">
<p>Don't have an account? <a href="#" id="signupLink">Sign Up</a></p>
</div>
</div>

<!-- Bootstrap JS and dependencies -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.min.js"></script>
<!-- Custom JavaScript -->
<script>
// Toggle between Signup and Login forms
document.getElementById('loginLink').addEventListener('click', function(event) {
event.preventDefault();
document.getElementById('signupContainer').classList.add('hidden');
document.getElementById('loginContainer').classList.remove('hidden');
});

document.getElementById('signupLink').addEventListener('click', function(event) {
event.preventDefault();
document.getElementById('loginContainer').classList.add('hidden');
document.getElementById('signupContainer').classList.remove('hidden');
});

// Signup Form Submission
document.getElementById('signupForm').addEventListener('submit', function(event) {
event.preventDefault(); // Prevent form submission

// Get form values
const fullName = document.getElementById('fullName').value;
const email = document.getElementById('email').value;
const password = document.getElementById('password').value;
const confirmPassword = document.getElementById('confirmPassword').value;

// Simple validation
if (password !== confirmPassword) {
alert('Passwords do not match!');
return;
}

// Simulate successful signup
alert(`Signup successful!\nName: ${fullName}\nEmail: ${email}`);
// You can add AJAX or fetch() here to send data to a server
});

// Login Form Submission
document.getElementById('loginForm').addEventListener('submit', function(event) {
event.preventDefault(); // Prevent form submission

// Get form values
const email = document.getElementById('loginEmail').value;
const password = document.getElementById('loginPassword').value;

// Simulate successful login
alert(`Login successful!\nEmail: ${email}`);
// You can add AJAX or fetch() here to send data to a server
});
</script>
</body>
</html>