Deploy complete premium UI application
Browse files- app.py +3 -0
- static/login.html +3 -3
- static/signup.html +3 -3
app.py
CHANGED
|
@@ -71,15 +71,18 @@ def generate_content_with_groq(prompt):
|
|
| 71 |
|
| 72 |
# Serve main page
|
| 73 |
@app.route('/')
|
|
|
|
| 74 |
def index():
|
| 75 |
return send_file('static/index.html')
|
| 76 |
|
| 77 |
# Serve login page
|
|
|
|
| 78 |
@app.route('/login.html')
|
| 79 |
def login():
|
| 80 |
return send_file('static/login.html')
|
| 81 |
|
| 82 |
# Serve signup page
|
|
|
|
| 83 |
@app.route('/signup.html')
|
| 84 |
def signup():
|
| 85 |
return send_file('static/signup.html')
|
|
|
|
| 71 |
|
| 72 |
# Serve main page
|
| 73 |
@app.route('/')
|
| 74 |
+
@app.route('/index.html')
|
| 75 |
def index():
|
| 76 |
return send_file('static/index.html')
|
| 77 |
|
| 78 |
# Serve login page
|
| 79 |
+
@app.route('/login')
|
| 80 |
@app.route('/login.html')
|
| 81 |
def login():
|
| 82 |
return send_file('static/login.html')
|
| 83 |
|
| 84 |
# Serve signup page
|
| 85 |
+
@app.route('/signup')
|
| 86 |
@app.route('/signup.html')
|
| 87 |
def signup():
|
| 88 |
return send_file('static/signup.html')
|
static/login.html
CHANGED
|
@@ -140,8 +140,8 @@
|
|
| 140 |
sessionStorage.setItem('userEmail', email);
|
| 141 |
sessionStorage.setItem('isLoggedIn', 'true');
|
| 142 |
|
| 143 |
-
// Redirect to main
|
| 144 |
-
window.location.href = '
|
| 145 |
} else {
|
| 146 |
document.getElementById('errorAlert').classList.remove('hidden');
|
| 147 |
document.getElementById('errorMessage').textContent = 'Please enter both email and password';
|
|
@@ -152,7 +152,7 @@
|
|
| 152 |
// Mock social login
|
| 153 |
sessionStorage.setItem('userName', provider + '_user');
|
| 154 |
sessionStorage.setItem('isLoggedIn', 'true');
|
| 155 |
-
window.location.href = '
|
| 156 |
}
|
| 157 |
</script>
|
| 158 |
</body>
|
|
|
|
| 140 |
sessionStorage.setItem('userEmail', email);
|
| 141 |
sessionStorage.setItem('isLoggedIn', 'true');
|
| 142 |
|
| 143 |
+
// Redirect to main dashboard
|
| 144 |
+
window.location.href = '/';
|
| 145 |
} else {
|
| 146 |
document.getElementById('errorAlert').classList.remove('hidden');
|
| 147 |
document.getElementById('errorMessage').textContent = 'Please enter both email and password';
|
|
|
|
| 152 |
// Mock social login
|
| 153 |
sessionStorage.setItem('userName', provider + '_user');
|
| 154 |
sessionStorage.setItem('isLoggedIn', 'true');
|
| 155 |
+
window.location.href = '/';
|
| 156 |
}
|
| 157 |
</script>
|
| 158 |
</body>
|
static/signup.html
CHANGED
|
@@ -170,8 +170,8 @@
|
|
| 170 |
sessionStorage.setItem('userEmail', email);
|
| 171 |
sessionStorage.setItem('isLoggedIn', 'true');
|
| 172 |
|
| 173 |
-
// Redirect to main
|
| 174 |
-
window.location.href = '
|
| 175 |
} else {
|
| 176 |
document.getElementById('errorAlert').classList.remove('hidden');
|
| 177 |
document.getElementById('errorMessage').textContent = 'Please fill in all fields';
|
|
@@ -181,7 +181,7 @@
|
|
| 181 |
function socialSignup(provider) {
|
| 182 |
sessionStorage.setItem('userName', provider + '_user');
|
| 183 |
sessionStorage.setItem('isLoggedIn', 'true');
|
| 184 |
-
window.location.href = '
|
| 185 |
}
|
| 186 |
</script>
|
| 187 |
</body>
|
|
|
|
| 170 |
sessionStorage.setItem('userEmail', email);
|
| 171 |
sessionStorage.setItem('isLoggedIn', 'true');
|
| 172 |
|
| 173 |
+
// Redirect to main dashboard
|
| 174 |
+
window.location.href = '/';
|
| 175 |
} else {
|
| 176 |
document.getElementById('errorAlert').classList.remove('hidden');
|
| 177 |
document.getElementById('errorMessage').textContent = 'Please fill in all fields';
|
|
|
|
| 181 |
function socialSignup(provider) {
|
| 182 |
sessionStorage.setItem('userName', provider + '_user');
|
| 183 |
sessionStorage.setItem('isLoggedIn', 'true');
|
| 184 |
+
window.location.href = '/';
|
| 185 |
}
|
| 186 |
</script>
|
| 187 |
</body>
|