@@ -31,34 +31,6 @@ export default function Home() {
3131 visible : { opacity : 1 , y : 0 , transition : { duration : 0.5 } } ,
3232 } ;
3333
34- // Metrics data for responsive rendering (ordered by best ranking first)
35- const metricsData = [
36- {
37- metric : "QS Graduate Employability" ,
38- rankValue : "9" ,
39- rankSuffix : "th" ,
40- rankColor : "emerald" ,
41- insightTitle : "Career-Ready Graduates" ,
42- insightDescription : "BIT graduates are valued higher by employers than graduates from \"higher ranked\" but less practical universities."
43- } ,
44- {
45- metric : "NTU Ranking (Engineering)" ,
46- rankValue : "14" ,
47- rankSuffix : "th" ,
48- rankColor : "emerald" ,
49- insightTitle : "Engineering Excellence" ,
50- insightDescription : "In pure engineering output, BIT is a global top-15 institution, outranking many Ivy League schools."
51- } ,
52- {
53- metric : "ARWU (Shanghai Ranking) 2025" ,
54- rankValue : "102" ,
55- rankSuffix : "nd" ,
56- rankColor : "default" ,
57- insightTitle : "Global Research Impact" ,
58- insightDescription : "Being on the cusp of the Top 100 globally signals immense research productivity."
59- }
60- ] ;
61-
6234 return (
6335 < div className = "relative overflow-hidden" >
6436 { /* Animated Breathing Background Blobs */ }
@@ -159,28 +131,38 @@ export default function Home() {
159131
160132 < section className = "pb-32 px-6 relative" >
161133 < div className = "container mx-auto max-w-6xl" >
162- { /* Rankings Table */ }
163- < div className = "mb-12 " >
134+ { /* Video Introduction */ }
135+ < div className = "mb-32 " >
164136 < div className = "text-center mb-8" >
165137 < h2 className = "text-3xl font-display font-bold mb-4" > Why BIT?</ h2 >
166- < ShinyText
167- text = "More Reasons to Choose BIT"
168- speed = { 3 }
169- delay = { 1 }
170- color = "#1a1b1aff"
171- shineColor = "#cfd8ccff"
172- spread = { 120 }
173- className = "text-xs font-medium uppercase tracking-wider mb-4"
174- />
175138 </ div >
176139
177- { /* Rankings Table */ }
178140 < motion . div
179141 initial = { { opacity : 0 , y : 20 } }
180142 whileInView = { { opacity : 1 , y : 0 } }
181143 viewport = { { once : true , margin : "-100px" } }
182144 transition = { { duration : 0.5 } }
183145 className = "overflow-hidden rounded-2xl sm:rounded-3xl border border-border bg-white/40 backdrop-blur-sm shadow-xl"
146+ >
147+ < video
148+ className = "w-full h-auto aspect-video"
149+ controls
150+ playsInline
151+ preload = "metadata"
152+ poster = ""
153+ >
154+ < source src = "/video/VideoIntroduction.mp4" type = "video/mp4" />
155+ Your browser does not support the video tag.
156+ </ video >
157+ </ motion . div >
158+
159+ { /* Rankings Table */ }
160+ < motion . div
161+ initial = { { opacity : 0 , y : 20 } }
162+ whileInView = { { opacity : 1 , y : 0 } }
163+ viewport = { { once : true , margin : "-100px" } }
164+ transition = { { duration : 0.5 , delay : 0.1 } }
165+ className = "mt-12 overflow-hidden rounded-2xl sm:rounded-3xl border border-border bg-white/40 backdrop-blur-sm shadow-xl"
184166 >
185167 < table className = "w-full text-left border-collapse" >
186168 < thead >
@@ -191,15 +173,17 @@ export default function Home() {
191173 </ tr >
192174 </ thead >
193175 < tbody className = "divide-y divide-border/50" >
194- { metricsData . map ( ( metric , index ) => (
176+ { [
177+ { metric : "QS Graduate Employability" , rank : "#9" , color : "text-emerald-600" , title : "Career-Ready Graduates" , desc : "BIT graduates are valued higher by employers than graduates from \"higher ranked\" but less practical universities." } ,
178+ { metric : "NTU Ranking (Engineering)" , rank : "#14" , color : "text-emerald-600" , title : "Engineering Excellence" , desc : "In pure engineering output, BIT is a global top-15 institution, outranking many Ivy League schools." } ,
179+ { metric : "ARWU (Shanghai Ranking) 2025" , rank : "#102" , color : "" , title : "Global Research Impact" , desc : "Being on the cusp of the Top 100 globally signals immense research productivity." } ,
180+ ] . map ( ( item , index ) => (
195181 < tr key = { index } className = "hover:bg-white/40 transition-colors" >
196- < td className = "p-3 sm:p-6 font-medium text-xs sm:text-base" > { metric . metric } </ td >
197- < td className = { `p-3 sm:p-6 font-bold text-sm sm:text-xl ${ metric . rankColor === 'emerald' ? 'text-emerald-600' : '' } ` } >
198- #{ metric . rankValue }
199- </ td >
182+ < td className = "p-3 sm:p-6 font-medium text-xs sm:text-base" > { item . metric } </ td >
183+ < td className = { `p-3 sm:p-6 font-bold text-sm sm:text-xl ${ item . color } ` } > { item . rank } </ td >
200184 < td className = "p-3 sm:p-6 text-muted-foreground text-[10px] sm:text-sm leading-relaxed" >
201- < strong className = "text-foreground block mb-0.5 sm:mb-1 text-xs sm:text-sm" > { metric . insightTitle } </ strong >
202- < span className = "hidden sm:inline" > { metric . insightDescription } </ span >
185+ < strong className = "text-foreground block mb-0.5 sm:mb-1 text-xs sm:text-sm" > { item . title } </ strong >
186+ < span className = "hidden sm:inline" > { item . desc } </ span >
203187 </ td >
204188 </ tr >
205189 ) ) }
0 commit comments