Spaces:
Running
Running
Upload 2 files
Browse filesFiles changed (2)
- static/style.cssAdded+28
- templates/index.htmlAdded+92
12345678910111213141516171819202122232425262728body { padding: 2rem; font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;}
h1 { font-size: 16px; margin-top: 0;}
p { color: rgb(107, 114, 128); font-size: 15px; margin-bottom: 10px; margin-top: 5px;}
.card { max-width: 620px; margin: 0 auto; padding: 16px; border: 1px solid lightgray; border-radius: 16px;}
.card p:last-child { margin-bottom: 0;}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192<!DOCTYPE html><html><head> <title>My Landing Page</title> <style> body { font-family: Arial, sans-serif; text-align: center; padding: 50px; } form { margin: 20px auto; padding: 10px; display: inline-block; text-align: left; border: 1px solid #ccc; border-radius: 5px; width: 300px; background-color: #f9f9f9; } input, button { display: block; width: 90%; margin: 10px auto; padding: 10px; font-size: 14px; } .form-header { text-align: center; font-weight: bold; margin-bottom: 10px; } #links { display: none; /* Initially hidden, shown after successful login */ } a { display: block; margin: 10px; padding: 10px; background-color: #0078D4; color: white; text-decoration: none; border-radius: 5px; width: 200px; margin-left: auto; margin-right: auto; } a:hover { background-color: #005BB5; } </style></head><body> <h1>Welcome to My Spaces!</h1>
<!-- Login Form --> <form action="/login" method="POST"> <div class="form-header">Login</div> <label for="login-username">Username:</label> <input type="text" id="login-username" name="username" required> <label for="login-password">Password:</label> <input type="password" id="login-password" name="password" required> <button type="submit">Login</button> </form>
<!-- Registration Form --> <form action="/register" method="POST"> <div class="form-header">Register</div> <label for="register-username">Username:</label> <input type="text" id="register-username" name="username" required> <label for="register-password">Password:</label> <input type="password" id="register-password" name="password" required> <button type="submit">Register</button> </form>
<!-- Links Section --> <div id="links"> <p>Select a Space to explore:</p> <a href="https://huggingface.co/spaces/jtvidela/signpost_assistant" target="_blank">Space 1</a> <a href="https://huggingface.co/spaces/jtvidela/StoryCompass" target="_blank">Space 2</a> <a href="https://huggingface.co/spaces/username/space3" target="_blank">Space 3</a> </div>
<script> // Check if user is logged in const loggedIn = document.cookie.includes('logged_in=true'); if (loggedIn) { document.getElementById('links').style.display = 'block'; } </script></body></html>static/style.cssAdded+28
templates/index.htmlAdded+92