templates/base.html.twig line 1

  1. <!DOCTYPE html>
  2. <html style="height:100%">
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>MLyshu</title>
  6.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  7.         {% block stylesheets %}
  8.             {{ encore_entry_link_tags('app') }}
  9.         {% endblock %}
  10.         <link rel="icon" href="{{ asset('img/favicon.png') }}" />
  11.         <link rel="preconnect" href="https://fonts.googleapis.com">
  12.         <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  13.         <link href="https://fonts.googleapis.com/css2?family=Fira+Sans&display=swap" rel="stylesheet">
  14.         <style>
  15.             body {
  16.                 font-family: 'Fira Sans', sans-serif;
  17.                 margin:0px;
  18.                 background-color:#262626;
  19.                 color:white;
  20.             }
  21.             footer {
  22.                 position: relative;
  23.                 bottom: 0;
  24.                 width: -webkit-fill-available;
  25.             }
  26.             a {
  27.                 text-decoration:none;
  28.             }
  29.             #choix a:not(:last-child), #MLyshu {
  30.                 margin-right:40px;
  31.             }
  32.             #choix div, #MLyshu  {
  33.                 border-radius:10px;
  34.             }
  35.             #choix div  {
  36.                 padding:20px;
  37.             }
  38.             #choix a {
  39.                 color:white;
  40.             }
  41.             footer {
  42.                 background-color:#0D0D0D;
  43.                 color:white;
  44.                 padding:20px;
  45.             }
  46.             footer > div {
  47.                 display:flex;
  48.             }
  49.             footer img {
  50.                 width:30px;
  51.             }
  52.             .fade-in {
  53.                 -webkit-animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
  54.                 animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
  55.             }
  56.     
  57.             @-webkit-keyframes fade-in {
  58.                 0% {
  59.                     opacity: 0;
  60.                 }
  61.                 100% {
  62.                     opacity: 1;
  63.                 }
  64.             }
  65.             @keyframes fade-in {
  66.                 0% {
  67.                     opacity: 0;
  68.                 }
  69.                 100% {
  70.                     opacity: 1;
  71.                 }
  72.             }
  73.             /* Style de la barre d'alerte */
  74.             #alert-bar {
  75.                 position: fixed;
  76.                 top: 0;
  77.                 left: 0;
  78.                 width: 100%;
  79.                 background-color: #e63946; /* Rouge élégant */
  80.                 color: white;
  81.                 text-align: center;
  82.                 padding: 10px 20px;
  83.                 font-family: Arial, sans-serif;
  84.                 font-size: 16px;
  85.                 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  86.                 z-index: 1000; /* Assure que la barre est au-dessus de tout */
  87.             }
  88.             /* Lien dans la barre */
  89.             #alert-bar a {
  90.                 color: white;
  91.                 text-decoration: underline;
  92.                 font-weight: bold;
  93.             }
  94.         {% block style %}
  95.         {% endblock %}
  96.         </style>
  97.         {% block javascripts %}
  98.             {{ encore_entry_script_tags('app') }}
  99.         {% endblock %}
  100.         
  101.     </head>
  102.     <body style="height: -webkit-fill-available;display: flex;flex-direction: column;">
  103.         <div id="alert-bar">
  104.             <p>
  105.                 Ce site a pour projet d'être refait entièrement dû à son ancienneté et son manque de visuel. Certains éléments ne sont sûrement plus au goût du jour désormais. 
  106.                 Dirigez-vous plutôt vers <a href="{{ path('projets') }}">mes projets</a> ou <a href="https://m-lyshu-nextjs.vercel.app/">mon CV numérique</a>.
  107.             </p>
  108.         </div>
  109.         <nav style="padding-top:10px;padding-bottom:10px;padding-left:30px;padding-right:30px;background-color:#0D0D0D">
  110.             <div style="display:flex;align-items: center;">
  111.                 <div id="MLyshu" style="background-color:white;">
  112.                     <a href="{{ path('accueil') }}" style="color:blue;font-weight:700;font-size:20px">
  113.                         <img src="{{ asset('img/Logo.png') }}" width="100">
  114.                     </a>
  115.                 </div>
  116.                 <div id="choix" style="display:flex;flex-grow:1;justify-content:end;height: fit-content;">
  117.                     <div id="apropos">
  118.                         <a href="{{ path('aboutme') }}">À propos de moi</a>
  119.                     </div>
  120.                     <div id="competences">
  121.                         <a href="https://m-lyshu-nextjs.vercel.app/">CV Numérique</a>
  122.                     </div>
  123.                     <div id="projets">
  124.                         <a href="{{ path('projets') }}">Projets</a>
  125.                     </div>
  126.                 </div>
  127.             </div>
  128.         </nav>
  129.         {% block body %}{% endblock %}
  130.         <footer>
  131.             <div>
  132.                 <div style="display:flex;justify-content: center;align-items: center;">
  133.                     MLyshu V1.2 © 2023-2024. Tous droits réservés.
  134.                 </div>
  135.                 <div style="flex-grow:1;text-align:end;">
  136.                     <a href="https://www.linkedin.com/in/lucas-leleu-bb24151b9/">
  137.                         <img src="{{ asset('img/Linkedin.png') }}">
  138.                     </a>
  139.                     <a href="https://www.instagram.com/l.lucass_/">
  140.                         <img src="{{ asset('img/Instagram.png') }}">
  141.                     </a>
  142.                 </div>
  143.             </div>
  144.         </footer>
  145.     </body>
  146. </html>