@@ -19,13 +19,9 @@ const letterConfig = [
1919
2020const particleData = [
2121 { color : "#22d3ee" , size : 3 , x : "8%" , y : "15%" , delay : 0 } ,
22- { color : "#a78bfa" , size : 2.5 , x : "22%" , y : "82%" , delay : 0.8 } ,
23- { color : "#fb7185" , size : 3.5 , x : "52%" , y : "8%" , delay : 1.6 } ,
24- { color : "#fbbf24" , size : 2 , x : "78%" , y : "72%" , delay : 0.4 } ,
25- { color : "#22d3ee" , size : 3 , x : "92%" , y : "25%" , delay : 1.2 } ,
26- { color : "#a78bfa" , size : 2 , x : "38%" , y : "88%" , delay : 2.0 } ,
27- { color : "#fb7185" , size : 2.5 , x : "68%" , y : "12%" , delay : 0.6 } ,
28- { color : "#fbbf24" , size : 2 , x : "15%" , y : "55%" , delay : 1.4 } ,
22+ { color : "#a78bfa" , size : 2.5 , x : "52%" , y : "8%" , delay : 1.6 } ,
23+ { color : "#fb7185" , size : 2 , x : "78%" , y : "72%" , delay : 0.4 } ,
24+ { color : "#fbbf24" , size : 2 , x : "38%" , y : "88%" , delay : 2.0 } ,
2925] ;
3026
3127const FloatingParticle = ( {
@@ -85,16 +81,14 @@ const PrismLetter = ({
8581 opacity : 0 ,
8682 y : 80 ,
8783 scale : 0.3 ,
88- rotateY : 90 ,
89- filter : "blur(16px)" ,
84+ filter : "blur(6px)" ,
9085 } }
9186 animate = {
9287 isInView
9388 ? {
9489 opacity : 1 ,
9590 y : 0 ,
9691 scale : 1 ,
97- rotateY : 0 ,
9892 filter : "blur(0px)" ,
9993 }
10094 : { }
@@ -159,21 +153,6 @@ const PrismLetter = ({
159153 } }
160154 />
161155
162- { /* Bottom-left accent spark */ }
163- < motion . div
164- className = "absolute -bottom-1 left-1 w-1.5 h-1.5 rounded-full opacity-0 group-hover:opacity-100 transition-opacity duration-300"
165- style = { {
166- background : color ,
167- boxShadow : `0 0 6px ${ color } ` ,
168- } }
169- animate = { { scale : [ 1 , 1.3 , 1 ] } }
170- transition = { {
171- duration : 1.8 ,
172- repeat : Infinity ,
173- ease : "easeInOut" ,
174- } }
175- />
176-
177156 { /* Hover edge glow */ }
178157 < div
179158 className = "absolute bottom-1 left-1/4 right-1/4 h-[2px] opacity-0 group-hover:opacity-100 transition-opacity duration-300 rounded-full"
@@ -221,28 +200,26 @@ const subtitleText = "Myanmar Software Engineers";
221200
222201const SubtitleReveal = ( { isInView } : { isInView : boolean } ) => (
223202 < motion . div
224- className = "flex justify-center mt-5 overflow-hidden"
203+ className = "flex justify-center mt-5 overflow-hidden gap-2 "
225204 initial = { { opacity : 0 } }
226205 animate = { isInView ? { opacity : 1 } : { } }
227206 transition = { { delay : 1.2 } }
228207 >
229- < div className = "flex" >
230- { subtitleText . split ( "" ) . map ( ( char , i ) => (
231- < motion . span
232- key = { i }
233- className = "font-mono text-[10px] md:text-xs tracking-[0.3em] uppercase text-zinc-600 inline-block"
234- initial = { { opacity : 0 , y : 12 } }
235- animate = { isInView ? { opacity : 0.5 , y : 0 } : { } }
236- transition = { {
237- duration : 0.4 ,
238- delay : 1.3 + i * 0.025 ,
239- ease : "easeOut" ,
240- } }
241- >
242- { char === " " ? "\u00A0" : char }
243- </ motion . span >
244- ) ) }
245- </ div >
208+ { subtitleText . split ( " " ) . map ( ( word , i ) => (
209+ < motion . span
210+ key = { i }
211+ className = "font-mono text-[10px] md:text-xs tracking-[0.3em] uppercase text-zinc-600 inline-block"
212+ initial = { { opacity : 0 , y : 12 } }
213+ animate = { isInView ? { opacity : 0.5 , y : 0 } : { } }
214+ transition = { {
215+ duration : 0.4 ,
216+ delay : 1.3 + i * 0.1 ,
217+ ease : "easeOut" ,
218+ } }
219+ >
220+ { word }
221+ </ motion . span >
222+ ) ) }
246223 </ motion . div >
247224) ;
248225
@@ -261,11 +238,8 @@ const MmsweTypoSection = () => {
261238 < FloatingParticle key = { i } { ...p } />
262239 ) ) }
263240
264- { /* Letter row with 3D perspective */ }
265- < div
266- className = "flex items-baseline justify-center gap-1 md:gap-3"
267- style = { { perspective : "1200px" } }
268- >
241+ { /* Letter row */ }
242+ < div className = "flex items-baseline justify-center gap-1 md:gap-3" >
269243 { letterConfig . map ( ( { char, color } , index ) => (
270244 < PrismLetter
271245 key = { index }
0 commit comments