{% extends 'base.html.twig' %}

{% block title %}{{ user.username }}'s Profile | ventry.host{% endblock %}

{% block body %}
    {% include 'partials/__header.html.twig' %}
    <main>
        <div class="container mt-48">
            <div class="preview-container m-auto" style="width: fit-content">
                <div class="card custom-card text-center">
                    <div class="card-body">
                        <h5 class="card-title text-white">{{ user.username }}</h5>
                        <p class="card-text">User since: <b>{{ user.createdAt|date('d/m/Y') }}</b></p>
                        <p class="card-text">Uploads: <b>{{ user.files.count }}</b></p>
                    </div>
                </div>
                <a href="{{ path('app_home') }}" class="button w-100">Go Home</a>
            </div>
        </div>
    </main>
{% endblock %}
