From 87b5f583fa74f12ba0813a918cb32d5e89f4e9b5 Mon Sep 17 00:00:00 2001 From: Dinawo Date: Sun, 7 Jul 2024 14:20:06 +0200 Subject: [PATCH] new ui header and video add to modal --- views/commands.ejs | 202 ++++++++++++++++----- views/feathures.ejs | 79 ++++++-- views/index.ejs | 433 ++++++++++++++++++++++++-------------------- views/legal.ejs | 24 ++- 4 files changed, 484 insertions(+), 254 deletions(-) diff --git a/views/commands.ejs b/views/commands.ejs index 35589e4..59356ad 100644 --- a/views/commands.ejs +++ b/views/commands.ejs @@ -247,27 +247,104 @@ } .header-scrolled { - background-color: #1f2937; /* bg-gray-900 */ - padding: 1rem; /* p-4 */ - position: sticky; - top: 0; /* Collé en haut de la page */ - z-index: 50; /* z-50 */ - max-width: 40rem; /* max-w-xl */ - border-radius: 9999px; /* rounded-full */ - box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-xl */ - transition: transform 0.3s ease, padding 0.3s ease; /* Transition douce pour la transformation et le padding */ - transform: scale(0.8); /* Réduction de la taille */ - left: 50%; /* Alignement horizontal au milieu */ + background-color: rgba(31, 41, 55, 0.8); /* bg-gray-900 avec légère transparence */ + backdrop-filter: blur(10px); + padding: 0.75rem 1.5rem; /* Ajustement du padding */ + position: fixed; /* fixed au lieu de sticky pour un meilleur contrôle */ + top: 1rem; /* Légèrement décollé du haut */ + left: 50%; transform: translateX(-50%); + z-index: 50; + max-width: 40rem; + border-radius: 9999px; + box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); + transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Transition avec effet de rebond */ + width: 100%; /* Initial width */ } .header-scrolled:hover { - transform: translateX(-50%) scale(1); /* Agrandissement au survol */ - padding: 2rem; /* Agrandissement du padding au survol */ + transform: translateX(-50%) scale(1.05); + padding: 1rem 2rem; + box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); + } + + .header-scrolled.is-reducing { + padding: 0.75rem 1.5rem; /* Ajoutez ici le padding réduit si différent */ + left: 50%; /* Placer au centre de la page */ + transform: translateX(-50%) scale(0.9); /* Réduction supplémentaire et centrage horizontal */ + transition: all 0.5s ease; + width: 60%; /* Réduction de la largeur */ + max-width: none; /* Supprime la limite max-width */ + top: 1rem; /* Garder la position en haut */ + margin: 0 auto; /* Centre l'élément */ + position: fixed; /* Pour s'assurer que la position reste fixe */ + } + + .firstpage { + position: relative; /* Nécessaire pour le positionnement du pseudo-élément */ + height: 100vh; + display: flex; + flex-direction: column; + justify-content: center; + } + + .firstpage::before { + content: ""; /* Nécessaire pour que le pseudo-élément soit généré */ + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-image: url('/public/src/photo-1714548213565-9d241b6809d6.png'); + background-size: cover; /* Assure que l'image de fond couvre tout l'espace disponible */ + filter: brightness(50%); /* Applique le filtre uniquement à l'image de fond */ + z-index: -1; /* S'assure que le pseudo-élément reste en arrière-plan */ + } + + .modal-content { + margin: 5% auto; + padding: 20px; + width: 90%; + max-width: 56rem; /* équivalent à max-w-4xl en Tailwind */ + } + + .video-container { + position: relative; + padding-bottom: 56.25%; /* ratio 16:9 */ + height: 0; + overflow: hidden; + } + + .video-container video, + .video-container iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + } + + @media (max-width: 640px) { + .modal-content { + width: 95%; + margin: 2% auto; + } } + +
@@ -299,17 +376,18 @@
-
-
-

Raphael, votre bot Discord polyvalent

-

Gérez et modérez votre serveur Discord avec des commandes - administratives puissantes

- - Inviter Raphael - -
-
+
+
+

Raphael, + votre bot Discord polyvalent


+

Les commandes de Raphael

+

Ici, vous trouverez des détails sur toutes les commandes disponibles.

+ + Inviter Raphael + +
+
@@ -333,11 +411,18 @@
+
@@ -323,9 +367,14 @@