Add application source code, configs and assets

- Controllers, Entity, Repository, Services, Twig extensions
- Templates (account, emails, home, legal, security, unsubscribe)
- Symfony config updates (bundles, security, framework, services)
- Vite + Bun setup with PostCSS
- Caddy config, CLAUDE.md, README
- Update .gitignore (node_modules, .idea, cert)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-18 20:16:01 +01:00
parent af9c1a6ab7
commit 8193930f60
57 changed files with 6769 additions and 2926 deletions

View File

@@ -1,17 +1,203 @@
<!DOCTYPE html>
<html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>{% block title %}Welcome!{% endblock %}</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
{% block stylesheets %}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}E-Cosplay Ticket{% endblock %}</title>
<meta name="description" content="{% block meta_description %}Billetterie en ligne pour associations - E-Cosplay{% endblock %}">
<meta name="author" content="Association E-Cosplay">
<meta property="og:type" content="website">
<meta property="og:url" content="{% block og_url %}{{ app.request.uri }}{% endblock %}">
<meta property="og:title" content="{% block og_title %}E-Cosplay Ticket{% endblock %}">
<meta property="og:description" content="{% block og_description %}Billetterie en ligne pour associations{% endblock %}">
<meta property="og:image" content="{% block og_image %}{{ absolute_url(asset('logo.png')) }}{% endblock %}">
<meta property="og:locale" content="fr_FR">
<meta property="og:site_name" content="E-Cosplay Ticket">
<meta name="twitter:card" content="summary_large_image">
<meta name="robots" content="{% block robots %}index, follow{% endblock %}">
<link rel="canonical" href="{% block canonical %}{{ app.request.uri }}{% endblock %}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
{{ vite_favicons() }}
{% block stylesheets %}{% endblock %}
{% block javascripts %}
{{ vite_asset('app.js') }}
{% endblock %}
{% block javascripts %}
{% block importmap %}{{ importmap('app') }}{% endblock %}
{% block structured_data %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "E-Cosplay",
"url": "https://www.e-cosplay.fr",
"logo": "{{ absolute_url(asset('logo.png')) }}",
"email": "contact@e-cosplay.fr",
"address": {
"@type": "PostalAddress",
"streetAddress": "42 Rue de Saint-Quentin",
"addressLocality": "Beautor",
"postalCode": "02800",
"addressCountry": "FR"
},
"sameAs": [
"https://www.facebook.com/assocationecosplay",
"https://www.instagram.com/asso_ecosplay/"
]
}
</script>
{% endblock %}
<style>
:root {
--accent-indigo: #4f46e5;
--accent-yellow: #fabf04;
--accent-pink: #ec4899;
--brutal-black: #111827;
--border-width: 4px;
}
</style>
</head>
<body>
{% block body %}{% endblock %}
<body class="flex flex-col min-h-screen font-sans antialiased text-gray-900 bg-[#fbfbfb] italic">
{# ── NAVBAR ── #}
<header class="sticky top-0 z-50 bg-white border-b-4 border-gray-900">
<nav class="mx-auto px-4 lg:px-8">
<div class="flex justify-between items-center h-20">
<div class="flex-shrink-0">
<a href="{{ path('app_home') }}" class="flex items-center group">
<div class="relative p-2 border-2 border-gray-900 shadow-[4px_4px_0px_rgba(0,0,0,1)] group-hover:translate-x-1 group-hover:translate-y-1 group-hover:shadow-none transition-all">
<img class="h-8 w-auto" src="{{ asset('logo.png') }}" alt="E-Cosplay">
</div>
<span class="ml-4 text-2xl font-black uppercase tracking-tighter">E-Cosplay <span class="text-indigo-600">Ticket</span></span>
</a>
</div>
<div class="hidden lg:flex items-center space-x-1">
{% block nav_items %}
<a href="{{ path('app_home') }}" class="px-3 py-2 text-xs font-black uppercase tracking-widest transition-all bg-yellow-400 border-2 border-gray-900 shadow-[2px_2px_0px_rgba(0,0,0,1)]">
Accueil
</a>
{% endblock %}
</div>
<div class="flex items-center space-x-4 border-l-4 border-gray-900 pl-6 h-full">
<div class="relative group">
{% if app.user %}
<a href="{{ path('app_account') }}" class="p-2 border-2 border-gray-900 bg-white text-gray-900 hover:bg-gray-900 hover:text-white transition-all flex items-center justify-center">
<i class="fas fa-user-circle"></i>
</a>
{% else %}
<a href="{{ path('app_login') }}" class="p-2 border-2 border-gray-900 bg-white text-gray-900 hover:bg-gray-900 hover:text-white transition-all flex items-center justify-center">
<i class="fas fa-user-circle"></i>
</a>
{% endif %}
</div>
<button id="mobile-menu-btn" class="lg:hidden p-2 border-2 border-gray-900 bg-yellow-400 font-black">
</button>
</div>
</div>
</nav>
{# ── MOBILE MENU ── #}
<div id="mobile-menu" class="hidden lg:hidden border-t-4 border-gray-900 bg-white">
<div class="p-4 space-y-2 uppercase font-black">
{% block nav_items_mobile %}
<a href="{{ path('app_home') }}" class="block p-3 border-2 border-transparent hover:border-gray-900 hover:bg-gray-50">
Accueil
</a>
{% endblock %}
</div>
</div>
</header>
{# ── FLASH MESSAGES ── #}
{% for type, messages in app.flashes %}
{% for message in messages %}
<div class="mx-auto mt-4 max-w-7xl px-4">
<div class="border-4 border-gray-900 px-6 py-4 font-black shadow-[4px_4px_0px_rgba(0,0,0,1)]
{% if type == 'success' %} bg-green-400
{% elseif type == 'error' %} bg-red-400
{% elseif type == 'warning' %} bg-yellow-400
{% else %} bg-indigo-400 text-white {% endif %}">
{{ message }}
</div>
</div>
{% endfor %}
{% endfor %}
{# ── CONTENT ── #}
<main role="main" class="flex-grow">
{% block body %}{% endblock %}
</main>
{# ── FOOTER ── #}
<footer class="bg-yellow-400 border-t-8 border-gray-900 text-gray-900 mt-auto">
<div class="max-w-7xl mx-auto py-12 px-4 lg:px-8">
<div class="grid grid-cols-1 md:grid-cols-3 gap-12 mb-12 border-b-4 border-gray-900 pb-12">
<div class="space-y-4">
<h3 class="text-3xl font-black uppercase tracking-tighter border-b-4 border-gray-900 inline-block">Nous Contacter</h3>
<p class="font-bold text-lg leading-tight">42 RUE DE SAINT-QUENTIN<br>02800 BEAUTOR, FRANCE</p>
<a href="mailto:contact@e-cosplay.fr" class="inline-block bg-gray-900 text-white px-4 py-2 font-black uppercase text-sm hover:bg-indigo-600 transition-colors">
contact@e-cosplay.fr
</a>
</div>
<div class="space-y-6">
<h3 class="text-3xl font-black uppercase tracking-tighter border-b-4 border-gray-900 inline-block">Nous Suivre</h3>
<div class="flex gap-4">
<a href="https://www.facebook.com/assocationecosplay" target="_blank" class="w-12 h-12 border-4 border-gray-900 flex items-center justify-center hover:bg-white transition-all font-black">f</a>
<a href="https://www.instagram.com/asso_ecosplay/" target="_blank" class="w-12 h-12 border-4 border-gray-900 flex items-center justify-center hover:bg-white transition-all font-black">ig</a>
</div>
</div>
<div class="space-y-4">
<h3 class="text-3xl font-black uppercase tracking-tighter border-b-4 border-gray-900 inline-block">E-Cosplay Ticket</h3>
<p class="font-bold text-gray-800 leading-snug">
Plateforme de billetterie destinée aux associations !
</p>
</div>
</div>
<div class="flex flex-col md:flex-row justify-between items-center gap-6">
<div class="text-center md:text-left">
<p class="font-black uppercase text-sm">&copy; {{ "now"|date("Y") }} E-COSPLAY.</p>
<p class="text-[10px] font-bold opacity-70">RNA N°W022006988</p>
</div>
<div class="flex flex-wrap justify-center gap-3">
{% block footer_links %}
<a href="{{ path('app_mentions_legales') }}" class="text-[10px] font-black uppercase bg-gray-900 text-white px-2 py-1 hover:bg-indigo-600 transition-colors">
Mentions Légales
</a>
<a href="{{ path('app_cgu') }}" class="text-[10px] font-black uppercase bg-gray-900 text-white px-2 py-1 hover:bg-indigo-600 transition-colors">
CGU
</a>
<a href="{{ path('app_cgv') }}" class="text-[10px] font-black uppercase bg-gray-900 text-white px-2 py-1 hover:bg-indigo-600 transition-colors">
CGV
</a>
<a href="{{ path('app_hosting') }}" class="text-[10px] font-black uppercase bg-gray-900 text-white px-2 py-1 hover:bg-indigo-600 transition-colors">
Hébergement
</a>
<a href="{{ path('app_cookies') }}" class="text-[10px] font-black uppercase bg-gray-900 text-white px-2 py-1 hover:bg-indigo-600 transition-colors">
Politique de Cookies
</a>
<a href="{{ path('app_rgpd') }}" class="text-[10px] font-black uppercase bg-gray-900 text-white px-2 py-1 hover:bg-indigo-600 transition-colors">
Politique RGPD
</a>
{% endblock %}
</div>
</div>
</div>
</footer>
<script>
document.getElementById('mobile-menu-btn')?.addEventListener('click', () => {
document.getElementById('mobile-menu')?.classList.toggle('hidden');
});
</script>
</body>
</html>