Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added the otp landing page #253

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
74 changes: 74 additions & 0 deletions optlandingpage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OTP Landing Page</title>
<style>
body {
font-family: Arial, sans-serif;
background: #f1f1f1;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.container {
background: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
}

h1 {
color: #333;
}

input {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 5px;
outline: none;
}

button {
background: #3498db;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
}
</style>
</head>
<body>
<div class="container">
<h1>Enter OTP</h1>
<input type="text" id="otp" placeholder="Enter OTP">
<button onclick="checkOTP()">Submit</button>
</div>

<script>
function checkOTP() {
const otpInput = document.getElementById('otp');
const enteredOTP = otpInput.value;

// Replace '1234' with your actual OTP
const actualOTP = '1234';

if (enteredOTP === actualOTP) {
alert('OTP is correct. Redirecting...');
// You can redirect the user to another page here
} else {
alert('Invalid OTP. Please try again.');
otpInput.value = ''; // Clear the input field
}
}
</script>
</body>
</html>