Spaces:
Sleeping
Sleeping
Last commit not found
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Image Insight - Sign Up & Login</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
margin: 0; | |
padding: 0; | |
background: linear-gradient(to right, #6a11cb, #2575fc); | |
color: #fff; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
height: 100vh; | |
} | |
.container { | |
width: 90%; | |
max-width: 800px; | |
background: #ffffff; | |
color: #333; | |
border-radius: 8px; | |
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); | |
display: flex; | |
overflow: hidden; | |
} | |
.form-container { | |
flex: 1; | |
padding: 40px 20px; | |
} | |
.form-container h2 { | |
margin-bottom: 20px; | |
text-align: center; | |
color: #2575fc; | |
} | |
.form-container form { | |
display: flex; | |
flex-direction: column; | |
} | |
.form-container form label { | |
margin-bottom: 8px; | |
font-size: 14px; | |
color: #666; | |
} | |
.form-container form input { | |
padding: 10px; | |
margin-bottom: 20px; | |
border: 1px solid #ddd; | |
border-radius: 4px; | |
font-size: 16px; | |
} | |
.form-container form button { | |
background: #2575fc; | |
color: #fff; | |
padding: 12px; | |
border: none; | |
border-radius: 4px; | |
font-size: 16px; | |
cursor: pointer; | |
transition: background 0.3s; | |
} | |
.form-container form button:hover { | |
background: #6a11cb; | |
} | |
.switch-container { | |
flex: 0.5; | |
background: #2575fc; | |
color: #fff; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
padding: 40px 20px; | |
} | |
.switch-container h2 { | |
font-size: 24px; | |
margin-bottom: 20px; | |
} | |
.switch-container p { | |
margin-bottom: 20px; | |
font-size: 14px; | |
text-align: center; | |
} | |
.switch-container button { | |
background: #fff; | |
color: #2575fc; | |
padding: 10px 20px; | |
border: none; | |
border-radius: 4px; | |
font-size: 16px; | |
cursor: pointer; | |
transition: background 0.3s; | |
} | |
.switch-container button:hover { | |
background: #f1f1f1; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<!-- Login Form --> | |
<div class="form-container"> | |
<h2>Login to Image Insight</h2> | |
<form> | |
<label for="login-email">Email</label> | |
<input type="email" id="login-email" placeholder="Enter your email" required> | |
<label for="login-password">Password</label> | |
<input type="password" id="login-password" placeholder="Enter your password" required> | |
<button type="submit">Login</button> | |
</form> | |
</div> | |
<!-- Switch Section --> | |
<div class="switch-container"> | |
<h2>New Here?</h2> | |
<p>Sign up to use our Image Captioning and VQA features.</p> | |
<button onclick="switchToSignUp()">Sign Up</button> | |
</div> | |
<!-- Sign Up Form --> | |
<div class="form-container" style="display: none;"> | |
<h2>Sign Up for Image Insight</h2> | |
<form> | |
<label for="signup-name">Full Name</label> | |
<input type="text" id="signup-name" placeholder="Enter your name" required> | |
<label for="signup-email">Email</label> | |
<input type="email" id="signup-email" placeholder="Enter your email" required> | |
<label for="signup-password">Password</label> | |
<input type="password" id="signup-password" placeholder="Enter your password" required> | |
<button type="submit">Sign Up</button> | |
</form> | |
</div> | |
</div> | |
<script> | |
function switchToSignUp() { | |
document.querySelectorAll('.form-container')[0].style.display = 'none'; | |
document.querySelectorAll('.form-container')[1].style.display = 'block'; | |
} | |
</script> | |
</body> | |
</html> | |