{% extends 'base.html' %}
{% block content %}
<div class="container mt-4">
    <h1>My Projects</h1>
    <a href="{% url 'create_project' %}" class="btn btn-primary mb-3">New Project</a>
    <div class="row">
        {% for project in projects %}
        <div class="col-md-4">
            <div class="card mb-4">
                <div class="card-body">
                    <h5 class="card-title">{{ project.title }}</h5>
                    <p class="card-text">{{ project.industry }}</p>
                    <a href="{% url 'project_detail' project.pk %}" class="btn btn-secondary">Open</a>
                </div>
            </div>
        </div>
        {% endfor %}
    </div>
</div>
{% endblock %}
