templates/events/event_show.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ event.title }} - WA BENIN{% endblock %}
  3. {% block body %}
  4. <div class="page-header" style="height: 35vh; min-height: 250px; margin-bottom: 40px;">
  5. <div class="container fade-up" style="max-width: 800px; text-align: center;">
  6. <span style="background: var(--red); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; text-transform: uppercase; margin-bottom: 20px; display: inline-block;">{{ event.category }}</span>
  7. <h1 class="page-title" style="font-size: 3rem;">{{ event.title }}</h1>
  8. </div>
  9. </div>
  10. <section class="section-padding" style="padding-top: 0;">
  11. <div class="container">
  12. <div style="display: grid; grid-template-columns: 2fr 1fr; gap: 40px;">
  13. <div class="fade-up" style="background: #fff; border-radius: var(--border-radius); box-shadow: var(--shadow-soft); overflow: hidden;">
  14. {% if event.image %}
  15. <div style="width: 100%; max-height: 450px; overflow: hidden;">
  16. <img src="{{ event.image }}" alt="{{ event.title }}" style="width: 100%; height: auto; object-fit: cover;">
  17. </div>
  18. {% endif %}
  19. <div style="padding: 40px;">
  20. <h2 style="margin-bottom: 20px;">À propos de l'événement</h2>
  21. <div style="font-size: 1.1rem; line-height: 1.8; color: #444;">
  22. {{ event.description|nl2br }}
  23. </div>
  24. </div>
  25. </div>
  26. <div class="fade-up" style="display: flex; flex-direction: column; gap: 20px;">
  27. <div style="background: #fff; padding: 30px; border-radius: var(--border-radius); box-shadow: var(--shadow-soft);">
  28. <h3 style="margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px;">Détails</h3>
  29. <div style="margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px;">
  30. <div style="width: 40px; height: 40px; border-radius: 50%; background: rgba(244, 180, 0, 0.1); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0;">
  31. <i class="far fa-calendar-alt"></i>
  32. </div>
  33. <div>
  34. <h4 style="margin: 0; font-size: 1rem;">Date & Heure</h4>
  35. <span style="color: #666; font-size: 0.9rem;">{{ event.date|date('d M Y à H:i') }}</span>
  36. </div>
  37. </div>
  38. <div style="margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px;">
  39. <div style="width: 40px; height: 40px; border-radius: 50%; background: rgba(30, 132, 73, 0.1); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0;">
  40. <i class="fas fa-map-marker-alt"></i>
  41. </div>
  42. <div>
  43. <h4 style="margin: 0; font-size: 1rem;">Lieu</h4>
  44. <span style="color: #666; font-size: 0.9rem;">{{ event.location }}</span>
  45. </div>
  46. </div>
  47. <div style="margin-bottom: 25px; display: flex; align-items: flex-start; gap: 15px;">
  48. <div style="width: 40px; height: 40px; border-radius: 50%; background: rgba(192, 57, 43, 0.1); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0;">
  49. <i class="fas fa-ticket-alt"></i>
  50. </div>
  51. <div>
  52. <h4 style="margin: 0; font-size: 1rem;">Tarif</h4>
  53. <span style="color: #666; font-size: 0.9rem; font-weight: bold;">
  54. {% if event.isFree %} Gratuit {% else %} {{ event.price }} € {% endif %}
  55. </span>
  56. </div>
  57. </div>
  58. <button class="btn btn-primary" style="width: 100%;">Réserver ma place</button>
  59. </div>
  60. <!-- Map -->
  61. <div style="width: 100%; height: 300px; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-soft);">
  62. <iframe width="100%" height="100%" frameborder="0" style="border:0" src="https://maps.google.com/maps?q={{ event.location|url_encode }}&t=&z=13&ie=UTF8&iwloc=&output=embed" allowfullscreen></iframe>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </section>
  68. {% endblock %}