@@ -49,35 +49,45 @@ function ScrollIcons() {
4949 < div className = { 'scroll-icons-title' } > Trusted by teams and individuals from</ div >
5050 < div ref = { scrollRef } className = { 'developers-logos' } >
5151 < div className = { 'logo-wrapper' } >
52- { logos . map ( ( item , index ) => (
53- < div
54- key = { index }
55- style = { {
56- display : 'flex' ,
57- width : '220px' ,
58- height : '100px' ,
59- padding : '30px 20px' ,
60- flexDirection : 'column' ,
61- justifyContent : 'center' ,
62- alignItems : 'center' ,
63- gap : '10px' ,
64- borderRadius : '79px' ,
65- background : 'rgba(245, 245, 250, 0.45)' ,
66- color : 'var(--color-text)' ,
67- } }
68- className = { 'logo opacity-100' }
69- >
70- < img
71- src = { item . logo }
72- className = 'opacity-60'
73- alt = { item . name }
52+ { logos . map ( ( item , index ) => {
53+ // Extract logo name from path (e.g., '/images/google.svg' -> 'google')
54+ const logoName = item . logo . replace ( '/images/' , '' ) . replace ( '.svg' , '' ) ;
55+
56+ return (
57+ < div
58+ key = { index }
7459 style = { {
75- filter :
76- 'brightness(0) saturate(100%) invert(7%) sepia(32%) saturate(2387%) hue-rotate(264deg) brightness(96%) contrast(104%)' ,
60+ display : 'flex' ,
61+ width : '220px' ,
62+ height : '100px' ,
63+ padding : '30px 20px' ,
64+ flexDirection : 'column' ,
65+ justifyContent : 'center' ,
66+ alignItems : 'center' ,
67+ gap : '10px' ,
68+ borderRadius : '79px' ,
69+ background : 'rgba(245, 245, 250, 0.45)' ,
70+ color : 'var(--color-text)' ,
7771 } }
78- />
79- </ div >
80- ) ) }
72+ className = { 'logo opacity-100' }
73+ >
74+ < svg
75+ className = 'opacity-60'
76+ style = { {
77+ width : '100%' ,
78+ height : '100%' ,
79+ maxWidth : '160px' ,
80+ maxHeight : '50px' ,
81+ filter :
82+ 'brightness(0) saturate(100%) invert(7%) sepia(32%) saturate(2387%) hue-rotate(264deg) brightness(96%) contrast(104%)' ,
83+ } }
84+ aria-label = { item . name }
85+ >
86+ < use href = { `/images/company-logos-sprite.svg#logo-${ logoName } ` } />
87+ </ svg >
88+ </ div >
89+ ) ;
90+ } ) }
8191 </ div >
8292 </ div >
8393 </ div >
0 commit comments