WebashalarForML commited on
Commit
a8e2413
·
verified ·
1 Parent(s): 12e881d

Upload components/Stats.js with huggingface_hub

Browse files
Files changed (1) hide show
  1. components/Stats.js +68 -0
components/Stats.js ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use client';
2
+
3
+ import { motion, useInView } from 'framer-motion';
4
+ import { useRef } from 'react';
5
+ import { Brain, Cpu, Database, Zap } from 'lucide-react';
6
+
7
+ const stats = [
8
+ { value: '50+', label: 'Models Deployed', icon: Brain },
9
+ { value: '98%', label: 'Accuracy Rate', icon: Zap },
10
+ { value: '10M+', label: 'Data Points', icon: Database },
11
+ { value: '12', label: 'Research Papers', icon: Cpu },
12
+ ];
13
+
14
+ export default function Stats() {
15
+ const ref = useRef(null);
16
+ const isInView = useInView(ref, { once: true, margin: '-100px' });
17
+
18
+ return (
19
+ <section id="research" ref={ref} className="py-32 px-6 relative">
20
+ <div className="max-w-7xl mx-auto">
21
+ <motion.div
22
+ initial={{ opacity: 0, y: 50 }}
23
+ animate={isInView ? { opacity: 1, y: 0 } : {}}
24
+ transition={{ duration: 0.8 }}
25
+ className="mb-20"
26
+ >
27
+ <h2 className="font-serif text-4xl md:text-6xl mb-4">Performance Metrics</h2>
28
+ <div className="w-24 h-1 bg-white"></div>
29
+ </motion.div>
30
+
31
+ <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
32
+ {stats.map((stat, index) => (
33
+ <motion.div
34
+ key={index}
35
+ initial={{ opacity: 0, y: 30 }}
36
+ animate={isInView ? { opacity: 1, y: 0 } : {}}
37
+ transition={{ delay: index * 0.1, duration: 0.5 }}
38
+ className="electric-border p-8 group hover:bg-white/5 transition-colors duration-500"
39
+ >
40
+ <div className="flex justify-between items-start mb-6">
41
+ <stat.icon className="w-8 h-8 text-gray-400 group-hover:text-white transition-colors" />
42
+ <div className="w-2 h-2 bg-white rounded-full opacity-50 group-hover:opacity-100 group-hover:animate-pulse"></div>
43
+ </div>
44
+ <div className="font-serif text-5xl md:text-6xl mb-2 group-hover:translate-x-2 transition-transform duration-300">
45
+ {stat.value}
46
+ </div>
47
+ <div className="font-mono text-xs uppercase tracking-widest text-faint group-hover:text-gray-300">
48
+ {stat.label}
49
+ </div>
50
+ </motion.div>
51
+ ))}
52
+ </div>
53
+
54
+ {/* Large Text Feature */}
55
+ <motion.div
56
+ initial={{ opacity: 0, scale: 0.95 }}
57
+ whileInView={{ opacity: 1, scale: 1 }}
58
+ viewport={{ once: true }}
59
+ className="mt-32 p-12 border border-white/10 bg-gradient-to-br from-white/5 to-transparent backdrop-blur-sm"
60
+ >
61
+ <p className="font-serif text-2xl md:text-4xl leading-relaxed text-gray-300">
62
+ "We don't just predict the future; we <span className="text-white italic">synthesize</span> it through layers of computation and intuition."
63
+ </p>
64
+ </motion.div>
65
+ </div>
66
+ </section>
67
+ );
68
+ }