youtube-summarizer/backend/templates/html/default.j2

50 lines
1.2 KiB
Django/Jinja

<!DOCTYPE html>
<html>
<head>
<title>{{ video_metadata.title }} - Summary</title>
<style>
body { font-family: Arial, sans-serif; max-width: 800px; margin: 0 auto; padding: 20px; }
h1 { color: #333; }
h2 { color: #666; border-bottom: 1px solid #ddd; padding-bottom: 5px; }
ul { list-style-type: disc; }
.metadata { color: #888; font-size: 0.9em; }
</style>
</head>
<body>
<h1>{{ video_metadata.title }}</h1>
<div class="metadata">
<p>Channel: {{ video_metadata.channel_name }}</p>
<p>Duration: {{ video_metadata.duration }}</p>
<p>URL: <a href="{{ video_url }}">{{ video_url }}</a></p>
</div>
<h2>Summary</h2>
<p>{{ summary }}</p>
<h2>Key Points</h2>
<ul>
{% for point in key_points %}
<li>{{ point }}</li>
{% endfor %}
</ul>
<h2>Main Themes</h2>
<ul>
{% for theme in main_themes %}
<li>{{ theme }}</li>
{% endfor %}
</ul>
<h2>Actionable Insights</h2>
<ol>
{% for insight in actionable_insights %}
<li>{{ insight }}</li>
{% endfor %}
</ol>
<footer>
<p class="metadata">Generated on {{ export_metadata.exported_at }}</p>
</footer>
</body>
</html>