RELEASE V3.0.0 : Voici les modifications apportées :

-> Refonte complète des afficheurs AFL départ et arrivée (+ Quais)
-> (ALPHA) : Implémentation des afficheurs EVA (Départ et arrivée uniquement pour l'instant).
This commit is contained in:
mathis committed 2026-08-28 04:07:19 +02:00
1 parent 19868a451f
commit 6dfd798dd2
16 files changed
+6177 -2030

No files matched your search

+9 -3
View File
@@ -1,7 +1,7 @@
import React, { useRef, useState, useEffect } from 'react';
import './MarqueeText.css';
const MarqueeText = ({ text, className }) => {
const MarqueeText = ({ text, className, style }) => {
const containerRef = useRef(null);
const textRef = useRef(null);
const [isOverflowing, setIsOverflowing] = useState(false);
@@ -18,13 +18,19 @@ const MarqueeText = ({ text, className }) => {
}, [text]);
return (
<div className={`marquee-container ${className || ''}`} ref={containerRef} style={{ overflow: 'hidden', whiteSpace: 'nowrap', width: '100%', flex: '1 1 0' }}>
<div className={`marquee-container ${className || ''}`} ref={containerRef} style={{ ...style, overflow: 'hidden', whiteSpace: 'nowrap', width: '100%', flex: '1 1 0' }}>
<div
className="marquee-inner-text"
ref={textRef}
style={{
display: 'inline-block',
animation: isOverflowing ? 'marquee-scroll 10s linear infinite' : 'none',
paddingLeft: isOverflowing ? '100%' : '0'
paddingLeft: isOverflowing ? '100%' : '0',
fontSize: 'inherit',
fontWeight: 'inherit',
color: 'inherit',
lineHeight: 'inherit',
letterSpacing: 'inherit'
}}
>
{text}