Merge branch 'Johan'

This commit is contained in:
Olivier PARPAILLON
2024-11-19 10:35:19 +01:00
12 changed files with 89 additions and 50 deletions

View File

@@ -0,0 +1,13 @@
{% extends 'main/base.html.twig' %}
{% block title %}📣 Sortie.com Admin 🔊{% endblock %}
{% block content %}
<div class="flex">
{% include 'admin/sidebar.html.twig' %}
<div class="ml-64 p-8">
<h1 class="text-2xl font-semibold">Bienvenue sur le Panel d'Administration</h1>
<p class="text-gray-600 mt-4">Utilisez le menu pour accéder aux différentes sections.</p>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,30 @@
<nav class="bg-gray-800 text-white p-5 w-64 h-screen fixed">
<h3 class="text-xl font-bold text-center mb-5">Administration</h3>
<ul class="space-y-4">
<li>
<a href="{{ path('app_admin') }}" class="block text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded">
🏠 Tableau de board
</a>
</li>
<li>
<a href="#" class="block text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded">
👤 Utilisateurs
</a>
</li>
<li>
<a href="#" class="block text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded">
🏙 Villes
</a>
</li>
<li>
<a href="#" class="block text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded">
📍 Sites
</a>
</li>
<li>
<a href="#" class="block text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded">
⚙ Paramètres
</a>
</li>
</ul>
</nav>

View File

@@ -1,20 +0,0 @@
<!DOCTYPE html>
<title>Hello HomeController!</title>
{% block body %}
<style>
.example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
.example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
</style>
<div class="example-wrapper">
<h1>Hello {{ controller_name }}! ✅</h1>
This friendly message is coming from:
<ul>
<li>Your controller at <code>C:/Users/jleroy2023/PhpstormProjects/sortir/src/Controller/HomeController.php</code></li>
<li>Your template at <code>C:/Users/jleroy2023/PhpstormProjects/sortir/templates/home/index.html.twig</code></li>
</ul>
</div>
{% endblock %}

View File

@@ -2,7 +2,8 @@
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>&#128227; Sortie.com &#128266;</title>
<title>{% block title %}&#128227; Sortie.com &#128266;{% endblock %}</title>
<link rel="icon" href="{{ asset('favicon.ico') }}" type="image/x-icon">
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}

View File

@@ -2,15 +2,14 @@
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Sortie</title>
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
</head>
<body>
<div class="bg-gray-100 flex items-center justify-center">
&copy; Sortie {{ "now"|date("Y") }}
<div class="flex items-center justify-center" style="background-color: #F4F4F4;" >
ENI &copy; Sortie {{ "now"|date("Y") }}
</div>
</body>
</html>

View File

@@ -2,8 +2,6 @@
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Sortie</title>
<link rel="icon" href="{{ asset('favicon.ico') }}" type="image/x-icon">
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
@@ -11,11 +9,11 @@
<body>
<div class="mx-auto">
<nav class="flex justify-between items-center py-4 bg-gray-100 shadow-md">
<nav class="flex justify-between items-center py-4 shadow-md" style="background-color: #2a8d57;">
<!-- Titre + Logo -->
<a href="/">
<div class="flex items-center space-x-3 pl-4">
<h3 class="text-2xl font-bold">Sortie</h3>
<h3 class="text-3xl text-white font-bold">Sortie</h3>
<img src="{{ asset('img/logo.svg') }}" alt="Logo" class="h-10">
</div>
</a>

View File

@@ -2,7 +2,6 @@
{% block head %}
<head>
<meta charset="UTF-8">
<title>Sortie</title>
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}