Commit c75e81a6 authored by ornanovitch's avatar ornanovitch 🐃

duplicate home to avoid repeating animation

parent 617f8fdd
......@@ -31,6 +31,15 @@ class HomeController extends AbstractController
return $this->render('index.html.twig');
}
/**
* contact form in the home page
* @Route("/home", name="home2")
*/
public function home(Request $request)
{
return $this->render('home.html.twig');
}
/**
* @Route("/infos/{id}", name="theater_show_visitors", methods={"GET"})
* @param Theater $theater
......
......@@ -20,7 +20,7 @@
<div class="wrapper">
<nav id="sidebar" class="bg-dark">
<div class="sidebar-header my-3">
<a href="https://balises-theatres.com"> <img class="mx-auto mb-3 d-block" src="{{ asset('build/img/balises.png') }}" height=80 width=80></a>
<a href="{{ path('home2') }}"> <img class="mx-auto mb-3 d-block" src="{{ asset('build/img/balises.png') }}" height=80 width=80></a>
<p class="text-white font-weight-bold text-center">ADMIN BALISES</p>
</div>
<ul class="list-group">
......
......@@ -20,7 +20,7 @@
<div class="wrapper">
<nav id="sidebar" class="bg-dark">
<div class="sidebar-header my-3">
<a href="https://balises-theatres.com"> <img class="mx-auto mb-3 d-block" src="{{ asset('build/img/balises.png') }}" height=80 width=80></a>
<a href="{{ path('home2') }}"> <img class="mx-auto mb-3 d-block" src="{{ asset('build/img/balises.png') }}" height=80 width=80></a>
<p class="text-white font-weight-bold text-center">ADMIN<br>{{ theater.name }}</p>
</div>
<ul class="list-group">
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{% block title %}Balises{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
{% block stylesheets %}
{{ encore_entry_link_tags('index') }}
{% endblock %}
</head>
<body id="baseHome">
{% include 'header_home2.html.twig' %}
<div class="container">
{% if app.request.hasPreviousSession %}
{% for label, messages in app.flashes %}
{% for message in messages %}
<div class="p-2 alert-{{ label }}">
{{ message }}
</div>
{% endfor %}
{% endfor %}
{% endif %}
{% block body %}
{% endblock %}
</div>
{% include 'footer.html.twig' %}
{% block javascripts %}
{{ encore_entry_script_tags('index') }}
{% endblock %}
</body>
</html>
{% block header %}
<nav class="navbar navbar-expand-lg">
<a href="{{ path('home') }}">
<a href="{{ path('home2') }}">
<img class="" src="{{ asset('build/img/accueil.png') }}" style="max-height: 120px">
</a>
</nav>
......
{% block header %}
<nav class="d-none d-sm-block navbar navbar-expand-lg">
<img src="{{ asset('build/img/balises.png') }}" style="max-height: 120px">
</nav>
{% endblock %}
{% block header %}
<a class="float-left" style="position: fixed; left: 5px; top: 10px; z-index: 1000" href="{{ path('home') }}">
<a class="float-left" style="position: fixed; left: 5px; top: 10px; z-index: 1000" href="{{ path('home2') }}">
<img class="" src="{{ asset('build/img/accueil.png') }}" style="max-height: 120px">
</a>
{% endblock %}
{% extends 'baseHome.html.twig' %}
{% block body %}
<div class="d-flex justify-content-center flex-wrap my-sm-5">
<h1 class="display-4 font-weight-bolder text-center text-info">ET SI VOUS RETOURNIEZ<br>AU THÉÂTRE ?</h1>
</div>
<div class="d-flex justify-content-center flex-wrap my-5">
<a class="mx-sm-5" href="{{ path('map2') }}"><img class="img-fluid mb-5 mx-sm-5" src="{{ asset('build/img/ou.png') }}"></a>
<a class="mx-sm-5" href="{{ path('calendar_home') }}"><img class="img-fluid mb-5 mx-sm-5" src="{{ asset('build/img/quand.png') }}"></a>
</div>
<div class="d-none d-sm-flex justify-content-center my-5 p-3">
<ul class="">
<a class="btn btn-dark text-light border border-light text-center"
href="{{ path('about') }}">
<i class="fas fa-bullseye AnimTarget mr-2">
</i>Présentation
</a>
<a class="btn btn-dark text-light border border-light text-center"
href="{{ path('theaters_list') }}">
<i class="fas fa-bullseye AnimTarget mr-2">
</i>Les Théâtres
</a>
<a class="btn btn-dark text-light border border-light text-center"
href="{{ path('blog_spectator') }}">
<i class="fas fa-bullseye AnimTarget mr-2">
</i>Initiatives
</a>
</ul>
</div>
<div class="d-block d-sm-none mb-5">
<div class="list-group bg-dark">
<a href="{{ path('about') }}"
class="list-group-item bg-dark">
<i class="fas fa-bullseye AnimTarget mr-2">
</i>Présentation
</a>
<a href="{{ path('theaters_list') }}"
class="list-group-item bg-dark">
<i class="fas fa-bullseye AnimTarget mr-2">
</i>Les Théâtres
</a>
<a href="{{ path('blog_spectator') }}"
class="list-group-item bg-dark">
<i class="fas fa-bullseye AnimTarget mr-2">
</i>Initiatives
</a>
</div>
</div>
{% endblock %}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment