39 lines
1.4 KiB
HTML
39 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Blog{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<!-- Hero Section -->
|
|
<section class="text-center py-20 bg-gradient-to-br from-red-800 to-orange-400 text-white">
|
|
<h1 class="text-5xl font-extrabold mb-4">Blog</h1>
|
|
<p class="text-xl mb-6">Insights, tutorials, and personal thoughts — straight from my mind to the page.</p>
|
|
</section>
|
|
|
|
<!-- Blog Posts Grid -->
|
|
<section id="posts" class="py-16 bg-black text-white">
|
|
<div class="max-w-6xl mx-auto px-4">
|
|
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
|
|
{% for blogpost in blogpost %}
|
|
<div class="bg-white rounded-lg shadow p-6 hover:shadow-lg transition">
|
|
<h2 class="text-2xl font-bold text-red-800 mb-2">
|
|
<a href="{{ url_for('view_blog', slug=blogpost.slug) }}" class="hover:underline">{{ blogpost.title }}</a>
|
|
</h2>
|
|
<p class="text-sm text-orange-500 font-medium mb-4">{{ blogpost.category }}</p>
|
|
|
|
<div class="flex flex-wrap gap-2">
|
|
{% for tag in blogpost.tags.split(',') %}
|
|
<a href="{{ url_for('view_tag', tag=tag.strip()) }}"
|
|
class="inline-block bg-gray-800 text-white text-sm px-3 py-1 rounded-full hover:bg-gray-700 transition">
|
|
#{{ tag.strip() }}
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{% endblock %}
|