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

{% block title %}CollectionFractal{% endblock %}

{% block main %}
    <div class="text-center"><h1>Collection "{{collection_fractal.name}}"</h1>
    <a href="{{ path('app_collection_fractal_show',{'id': collection_fractal.id}) }}", class="btn btn-primary mb-3 mx-auto">Retour</a>
    </div>
    <div class="card shadow p-3 mb-5 bg-body-tertiary rounded bg-light mx-auto" style="width: 25rem;">

        <img src={{ vich_uploader_asset(carte_fractal,'imageFile') }} class="mx-auto img-fluid" alt="carte" />

        <div class="card-body mx-auto p-2">

          <h5 class="card-title text-center">{{ carte_fractal.description }}</h5>
          <p class="card-text text-center">{{ carte_fractal.type }}</p>
          <p class="card-text text-center">{{ carte_fractal.prix }} Points Fractal</p>
        </div>

    </div>  
{% endblock %}
