Make landing page show notifications without navbar

- Modified landing.html to extend base.html template
- Landing page now shows notification bubbles but hides navbar for non-authenticated users
- Maintains full landing page design and functionality
parent ee557caf
<!DOCTYPE html> {% extends "base.html" %}
<html lang="en">
<head> {% block title %}VidAI - The adult content friendly video automation system{% endblock %}
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> {% block head %}
<title>VidAI - The adult content friendly video automation system</title> <style>
<meta name="description" content="Advanced AI-powered video analysis tools designed for adult content creators. Automated scene detection, content moderation, and professional video processing.">
<link rel="icon" type="image/jpg" href="/image.jpg">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<style>
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
...@@ -395,8 +390,9 @@ ...@@ -395,8 +390,9 @@
animation: fadeInUp 0.6s ease-out; animation: fadeInUp 0.6s ease-out;
} }
</style> </style>
</head> {% endblock %}
<body>
{% block content %}
<header> <header>
<div class="container"> <div class="container">
<div class="logo">VidAI</div> <div class="logo">VidAI</div>
...@@ -552,5 +548,4 @@ ...@@ -552,5 +548,4 @@
}); });
}); });
</script> </script>
</body> {% endblock %}
</html> \ No newline at end of file
\ No newline at end of file
...@@ -124,9 +124,7 @@ def index(): ...@@ -124,9 +124,7 @@ def index():
return redirect(url_for('dashboard')) return redirect(url_for('dashboard'))
# Show landing page for non-authenticated users # Show landing page for non-authenticated users
with open('templates/landing.html', 'r') as f: return render_template('landing.html', user=None)
landing_html = f.read()
return landing_html
@app.route('/dashboard') @app.route('/dashboard')
@login_required @login_required
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment