Merge branch 'Johan'
This commit is contained in:
@@ -9,7 +9,7 @@ html, body, label {
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: skyblue;
|
||||
background-color: #F4F4F4;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
|
||||
@@ -1 +1,13 @@
|
||||
<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 5C3.44772 5 3 5.44772 3 6C3 6.55228 3.44772 7 4 7H20C20.5523 7 21 6.55228 21 6C21 5.44772 20.5523 5 20 5H4ZM7 12C7 11.4477 7.44772 11 8 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H8C7.44772 13 7 12.5523 7 12ZM13 18C13 17.4477 13.4477 17 14 17H20C20.5523 17 21 17.4477 21 18C21 18.5523 20.5523 19 20 19H14C13.4477 19 13 18.5523 13 18Z" fill="#000000"></path> </g></svg>
|
||||
<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
|
||||
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
|
||||
<g id="SVGRepo_iconCarrier">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M4
|
||||
5C3.44772 5 3 5.44772 3 6C3 6.55228 3.44772 7 4
|
||||
7H20C20.5523 7 21 6.55228 21 6C21 5.44772 20.5523
|
||||
5 20 5H4ZM7 12C7 11.4477 7.44772 11 8 11H20C20.5523
|
||||
11 21 11.4477 21 12C21 12.5523 20.5523 13 20
|
||||
13H8C7.44772 13 7 12.5523 7 12ZM13 18C13 17.4477
|
||||
13.4477 17 14 17H20C20.5523 17 21 17.4477 21
|
||||
18C21 18.5523 20.5523 19 20 19H14C13.4477 19 13
|
||||
18.5523 13 18Z" fill="#FFFFFF"></path> </g></svg>
|
||||
|
Before Width: | Height: | Size: 694 B After Width: | Height: | Size: 781 B |
@@ -4,7 +4,7 @@
|
||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
||||
width="613.000000pt" height="614.000000pt" viewBox="0 0 613.000000 614.000000"
|
||||
preserveAspectRatio="xMidYMid meet">
|
||||
|
||||
<rect width="100%" height="100%" fill="#FFFFFF" />
|
||||
<g transform="translate(0.000000,614.000000) scale(0.100000,-0.100000)"
|
||||
fill="#2a8d57" stroke="none">
|
||||
<path d="M20 3070 l0 -3050 3050 0 3050 0 0 3050 0 3050 -3050 0 -3050 0 0
|
||||
|
||||
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.9 KiB |
25
src/Controller/AdminController.php
Normal file
25
src/Controller/AdminController.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Attribute\Route;
|
||||
|
||||
class AdminController extends AbstractController
|
||||
{
|
||||
#[Route('/admin', name: 'app_admin')]
|
||||
public function index(): Response
|
||||
{
|
||||
return $this->render('admin/index.html.twig', [
|
||||
'controller_name' => 'AdminController',
|
||||
]);
|
||||
}
|
||||
#[Route('/admin/user', name: 'app_adminUser')]
|
||||
public function adminUser(): Response
|
||||
{
|
||||
return $this->render('admin/user.html.twig', [
|
||||
'controller_name' => 'AdminController',
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Attribute\Route;
|
||||
|
||||
class HomeController extends AbstractController
|
||||
{
|
||||
#[Route('/home', name: 'app_home')]
|
||||
public function index(): Response
|
||||
{
|
||||
return $this->render('home/index.html.twig', [
|
||||
'controller_name' => 'HomeController',
|
||||
]);
|
||||
}
|
||||
}
|
||||
13
templates/admin/index.html.twig
Normal file
13
templates/admin/index.html.twig
Normal 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 %}
|
||||
30
templates/admin/sidebar.html.twig
Normal file
30
templates/admin/sidebar.html.twig
Normal 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>
|
||||
@@ -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 %}
|
||||
@@ -2,7 +2,8 @@
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>📣 Sortie.com 🔊</title>
|
||||
<title>{% block title %}📣 Sortie.com 🔊{% endblock %}</title>
|
||||
<link rel="icon" href="{{ asset('favicon.ico') }}" type="image/x-icon">
|
||||
{% block stylesheets %}
|
||||
{{ encore_entry_link_tags('app') }}
|
||||
{% endblock %}
|
||||
|
||||
@@ -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">
|
||||
© Sortie {{ "now"|date("Y") }}
|
||||
<div class="flex items-center justify-center" style="background-color: #F4F4F4;" >
|
||||
ENI © Sortie {{ "now"|date("Y") }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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>
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
{% block head %}
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Sortie</title>
|
||||
{% block stylesheets %}
|
||||
{{ encore_entry_link_tags('app') }}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user