new ui header and video add to modal
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
433
views/index.ejs
433
views/index.ejs
@@ -22,196 +22,239 @@
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=Wittgenstein:ital,wght@0,400..900;1,400..900&display=swap');
|
||||
|
||||
body {
|
||||
font-family: 'Poppins', sans-serif;
|
||||
background: rgb(2, 0, 36);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.gradient-text {
|
||||
background-clip: text;
|
||||
-webkit-background-clip: text;
|
||||
color: transparent;
|
||||
background-image: radial-gradient(circle, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100%);
|
||||
}
|
||||
|
||||
.glass {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(10px);
|
||||
border-radius: 10px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.discord-button {
|
||||
background-color: #5865F2;
|
||||
color: white;
|
||||
padding: 10px 20px;
|
||||
border-radius: 28px;
|
||||
font-weight: bold;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.discord-button:hover {
|
||||
background-color: #4752C4;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.feature-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#features,
|
||||
#commands {
|
||||
display: block !important;
|
||||
visibility: visible !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
.drawer {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: -300px;
|
||||
width: 300px;
|
||||
height: 100vh;
|
||||
background-color: rgba(31, 41, 55, 0.95);
|
||||
transition: right 0.3s ease-in-out;
|
||||
z-index: 1000;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.drawer.active {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.drawer-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
display: none;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.drawer-overlay.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.drawer-content {
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.drawer-close {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.drawer a {
|
||||
display: block;
|
||||
padding: 0.5rem 0;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.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 */
|
||||
}
|
||||
|
||||
.featurepage {
|
||||
position: relative; /* Nécessaire pour le positionnement du pseudo-élément */
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.text-reveal-container {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
color: transparent; /* Maintient le texte transparent */
|
||||
}
|
||||
|
||||
.text-reveal-container::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5) 50%, transparent); /* Utilise un dégradé plus subtil */
|
||||
transform: translateX(-100%);
|
||||
animation: revealText 3s ease forwards, sparkle 1.5s ease-in-out 0.5s infinite alternate;
|
||||
}
|
||||
|
||||
@keyframes revealText {
|
||||
to {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes sparkle {
|
||||
0%, 100% {
|
||||
background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5) 50%, transparent);
|
||||
}
|
||||
50% {
|
||||
background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8) 50%, transparent);
|
||||
}
|
||||
}
|
||||
|
||||
.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 */
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.header-scrolled:hover {
|
||||
transform: translateX(-50%) scale(1); /* Agrandissement au survol */
|
||||
padding: 2rem; /* Agrandissement du padding au survol */
|
||||
}
|
||||
|
||||
</style>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
||||
</head>
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=Wittgenstein:ital,wght@0,400..900;1,400..900&display=swap');
|
||||
|
||||
body {
|
||||
font-family: 'Poppins', sans-serif;
|
||||
background: rgb(2, 0, 36);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.gradient-text {
|
||||
background-clip: text;
|
||||
-webkit-background-clip: text;
|
||||
color: transparent;
|
||||
background-image: radial-gradient(circle, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100%);
|
||||
}
|
||||
|
||||
.glass {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(10px);
|
||||
border-radius: 10px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.discord-button {
|
||||
background-color: #5865F2;
|
||||
color: white;
|
||||
padding: 10px 20px;
|
||||
border-radius: 28px;
|
||||
font-weight: bold;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.discord-button:hover {
|
||||
background-color: #4752C4;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.feature-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#features,
|
||||
#commands {
|
||||
display: block !important;
|
||||
visibility: visible !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
.drawer {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: -300px;
|
||||
width: 300px;
|
||||
height: 100vh;
|
||||
background-color: rgba(31, 41, 55, 0.95);
|
||||
transition: right 0.3s ease-in-out;
|
||||
z-index: 1000;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.drawer.active {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.drawer-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
display: none;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.drawer-overlay.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.drawer-content {
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.drawer-close {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.drawer a {
|
||||
display: block;
|
||||
padding: 0.5rem 0;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.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 */
|
||||
}
|
||||
|
||||
.featurepage {
|
||||
position: relative; /* Nécessaire pour le positionnement du pseudo-élément */
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.text-reveal-container {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
color: transparent; /* Maintient le texte transparent */
|
||||
}
|
||||
|
||||
.text-reveal-container::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5) 50%, transparent); /* Utilise un dégradé plus subtil */
|
||||
transform: translateX(-100%);
|
||||
animation: revealText 3s ease forwards, sparkle 1.5s ease-in-out 0.5s infinite alternate;
|
||||
}
|
||||
|
||||
@keyframes revealText {
|
||||
to {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes sparkle {
|
||||
0%, 100% {
|
||||
background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5) 50%, transparent);
|
||||
}
|
||||
50% {
|
||||
background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8) 50%, transparent);
|
||||
}
|
||||
}
|
||||
|
||||
.header-scrolled {
|
||||
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.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 */
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 1rem; /* Espace entre le texte et l'icône */
|
||||
}
|
||||
|
||||
.discord-icon {
|
||||
color: #7289da; /* Couleur de l'icône Discord */
|
||||
text-decoration: none; /* Supprime la décoration de lien par défaut */
|
||||
}
|
||||
|
||||
.discord-icon:hover {
|
||||
color: #5865f2; /* Couleur de l'icône Discord au survol */
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<script>
|
||||
window.addEventListener('scroll', function() {
|
||||
var header = document.querySelector('.header-scrolled');
|
||||
if (window.scrollY > 100) { // Ajustez cette valeur selon vos besoins
|
||||
header.classList.add('is-reducing');
|
||||
} else {
|
||||
header.classList.remove('is-reducing');
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<body class="bg-dark text-gray-200">
|
||||
<header class="bg-gray-900 p-4 sticky top-0 z-50 glass">
|
||||
@@ -236,6 +279,7 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
<div id="drawer-overlay" class="drawer-overlay"></div>
|
||||
<div id="drawer" class="drawer">
|
||||
<div class="drawer-content">
|
||||
@@ -323,9 +367,14 @@
|
||||
|
||||
<footer class="py-12 px-4 bg-gray-900 text-center">
|
||||
<p data-i18n="© 2024 Myaxrin Labs. Tous droits réservés.">© 2024 Myaxrin Labs. Tous droits réservés.</p><br>
|
||||
<a href="/legal" class="discord-button inline-block" data-i18n="Documents légaux">
|
||||
Documents légaux
|
||||
</a>
|
||||
<div class="footer-content">
|
||||
<a href="/legal" class="discord-button inline-block" data-i18n="Documents légaux">
|
||||
Documents légaux
|
||||
</a>
|
||||
<a href="https://discord.gg/k6r96Tmtgx" class="discord-icon" target="_blank">
|
||||
<i class="fab fa-discord fa-2x" aria-hidden="true"></i>
|
||||
</a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user