orik-ss's picture
Claude Opus 4.5
Initial deployment - Face verification demo
ccb7e46
Raw History Blame Contribute Delete
13.2 kB
import { motion } from 'framer-motion'
import { Shield, Zap, Lock, Globe, Cpu, BarChart3, ExternalLink, Code, FileCode, Terminal } from 'lucide-react'
const features = [
{
icon: <Lock className="w-6 h-6" />,
title: 'Privacy-Centric',
description: 'Facial verification without biometric storage. Your data stays under your control, fully GDPR compliant.',
color: 'from-green-500 to-emerald-500',
},
{
icon: <Shield className="w-6 h-6" />,
title: 'Zero Storage Architecture',
description: 'No biometric data is stored on our servers. Process and forget - true privacy by design.',
color: 'from-blue-500 to-cyan-500',
},
{
icon: <BarChart3 className="w-6 h-6" />,
title: 'NIST Top 10 Ranked',
description: 'OpenCV FR algorithm ranked among Top 10 globally by NIST FRVT benchmark.',
color: 'from-red-500 to-rose-500',
},
{
icon: <Zap className="w-6 h-6" />,
title: 'Lightning Fast',
description: 'Process face comparisons in milliseconds with our optimized cloud infrastructure.',
color: 'from-yellow-500 to-orange-500',
},
{
icon: <Globe className="w-6 h-6" />,
title: 'Global Cloud',
description: 'Deployed in Singapore, US, and Europe for low-latency access worldwide.',
color: 'from-purple-500 to-pink-500',
},
{
icon: <Cpu className="w-6 h-6" />,
title: 'Multi-Platform SDKs',
description: 'Integrate with Python, C++, or REST API. Flexible solutions for any platform.',
color: 'from-primary-500 to-secondary-400',
},
]
const sdkOptions = [
{
icon: <Code className="w-6 h-6" />,
title: 'Python SDK',
description: 'Full-featured Python library for face recognition',
url: 'https://docs.opencv.fr/python/',
color: 'from-yellow-500 to-orange-500',
},
{
icon: <FileCode className="w-6 h-6" />,
title: 'C++ SDK',
description: 'High-performance native C++ integration',
url: 'https://docs.opencv.fr/cpp/',
color: 'from-blue-500 to-cyan-500',
},
{
icon: <Terminal className="w-6 h-6" />,
title: 'REST API',
description: 'Language-agnostic HTTP API endpoints',
url: 'https://sg.opencv.fr/docs',
color: 'from-green-500 to-emerald-500',
},
]
function Features() {
return (
<section className="py-20">
{/* API Programming Guide Section - FIRST */}
<motion.div
id="api"
initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
className="glass-card p-8 md:p-12 max-w-5xl mx-auto scroll-mt-42"
>
<div className="text-center mb-10">
<h3 className="text-3xl font-bold mb-4">
<span className="gradient-text">API Programming Guide</span>
</h3>
<p className="text-gray-400">
Choose your preferred SDK or API to integrate face recognition
</p>
</div>
{/* SDK Options Grid */}
<div className="grid grid-cols-3 gap-4 mb-10">
{sdkOptions.map((sdk, index) => (
<motion.a
key={sdk.title}
href={sdk.url}
target="_blank"
rel="noopener noreferrer"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ delay: index * 0.1 }}
whileHover={{ scale: 1.05, y: -5 }}
className="glass p-5 rounded-xl text-center group hover:border-primary-500/50 transition-all cursor-pointer"
>
<div className={`
inline-flex p-3 rounded-xl mb-3
bg-gradient-to-br ${sdk.color}
group-hover:scale-110 transition-transform
`}>
<div className="text-white">{sdk.icon}</div>
</div>
<h4 className="text-white font-semibold mb-1">{sdk.title}</h4>
<p className="text-gray-500 text-xs">{sdk.description}</p>
<ExternalLink className="w-4 h-4 text-gray-600 mx-auto mt-2 group-hover:text-primary-400 transition-colors" />
</motion.a>
))}
</div>
{/* Code Example */}
<div className="bg-dark-300 rounded-xl p-6 overflow-x-auto mb-8">
<div className="flex items-center gap-2 mb-4 text-gray-500 text-sm">
<Code className="w-4 h-4" />
<span>Python Example</span>
</div>
<pre className="text-sm">
<code className="text-gray-300">
<span className="text-purple-400">import</span>{' '}
<span className="text-blue-400">requests</span>
{'\n'}
<span className="text-purple-400">import</span>{' '}
<span className="text-blue-400">base64</span>
{'\n\n'}
<span className="text-gray-500"># Encode images to base64</span>
{'\n'}
<span className="text-blue-400">probe</span>{' '}
<span className="text-white">=</span>{' '}
<span className="text-white">[</span>
<span className="text-yellow-400">base64</span>
<span className="text-white">.</span>
<span className="text-yellow-400">b64encode</span>
<span className="text-white">(</span>
<span className="text-yellow-400">open</span>
<span className="text-white">(</span>
<span className="text-green-400">"face1.jpg"</span>
<span className="text-white">,</span>{' '}
<span className="text-green-400">"rb"</span>
<span className="text-white">).</span>
<span className="text-yellow-400">read</span>
<span className="text-white">()).</span>
<span className="text-yellow-400">decode</span>
<span className="text-white">()]</span>
{'\n'}
<span className="text-blue-400">gallery</span>{' '}
<span className="text-white">=</span>{' '}
<span className="text-white">[</span>
<span className="text-yellow-400">base64</span>
<span className="text-white">.</span>
<span className="text-yellow-400">b64encode</span>
<span className="text-white">(</span>
<span className="text-yellow-400">open</span>
<span className="text-white">(</span>
<span className="text-green-400">"face2.jpg"</span>
<span className="text-white">,</span>{' '}
<span className="text-green-400">"rb"</span>
<span className="text-white">).</span>
<span className="text-yellow-400">read</span>
<span className="text-white">()).</span>
<span className="text-yellow-400">decode</span>
<span className="text-white">()]</span>
{'\n\n'}
<span className="text-gray-500"># Compare faces</span>
{'\n'}
<span className="text-blue-400">response</span>{' '}
<span className="text-white">=</span>{' '}
<span className="text-blue-400">requests</span>
<span className="text-white">.</span>
<span className="text-yellow-400">post</span>
<span className="text-white">(</span>
{'\n'}
{' '}<span className="text-green-400">"https://sg.opencv.fr/compare"</span>
<span className="text-white">,</span>
{'\n'}
{' '}<span className="text-blue-400">json</span>
<span className="text-white">=</span>
<span className="text-white">{'{'}</span>
<span className="text-green-400">"probe"</span>
<span className="text-white">:</span>{' '}
<span className="text-blue-400">probe</span>
<span className="text-white">,</span>{' '}
<span className="text-green-400">"gallery"</span>
<span className="text-white">:</span>{' '}
<span className="text-blue-400">gallery</span>
<span className="text-white">{'}'}</span>
<span className="text-white">,</span>
{'\n'}
{' '}<span className="text-blue-400">headers</span>
<span className="text-white">=</span>
<span className="text-white">{'{'}</span>
<span className="text-green-400">"x-api-key"</span>
<span className="text-white">:</span>{' '}
<span className="text-blue-400">API_KEY</span>
<span className="text-white">{'}'}</span>
{'\n'}
<span className="text-white">)</span>
{'\n\n'}
<span className="text-blue-400">score</span>{' '}
<span className="text-white">=</span>{' '}
<span className="text-blue-400">response</span>
<span className="text-white">.</span>
<span className="text-yellow-400">json</span>
<span className="text-white">()[</span>
<span className="text-green-400">"score"</span>
<span className="text-white">]</span>
{' '}
<span className="text-gray-500"># 0.0 to 1.0</span>
</code>
</pre>
<p className="text-gray-500 text-sm mt-3">
Regions: <span className="text-gray-400">sg.opencv.fr</span> (Singapore) | <span className="text-gray-400">us.opencv.fr</span> (US) | <span className="text-gray-400">eu.opencv.fr</span> (Europe)
</p>
</div>
{/* CTA Buttons */}
<div className="flex flex-col sm:flex-row gap-4 justify-center">
<a
href="https://developer.opencv.fr/ui/#/onboard/login"
target="_blank"
rel="noopener noreferrer"
className="px-8 py-4 rounded-xl bg-gradient-to-r from-primary-500 to-secondary-400 text-white font-semibold text-center hover:shadow-lg hover:shadow-primary-500/30 transition-all flex items-center justify-center gap-2"
>
Get Free API Key
<ExternalLink className="w-4 h-4" />
</a>
</div>
{/* Additional Info */}
<p className="text-center text-gray-500 text-sm mt-6">
Sign up at{' '}
<a
href="https://developer.opencv.fr"
target="_blank"
rel="noopener noreferrer"
className="text-primary-400 hover:text-primary-300 transition-colors"
>
developer.opencv.fr
</a>
{' '}to get your API key and start building
</p>
</motion.div>
{/* Why Choose Us Section - SECOND */}
<div id="features" className="mt-24 scroll-mt-24">
<motion.div
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
className="text-center mb-16"
>
<h2 className="text-4xl md:text-5xl font-bold mb-4">
Why Choose <span className="gradient-text">Seventh Sense AI</span>
</h2>
<p className="text-gray-400 text-lg max-w-4xl mx-auto">
The face of a smarter, safer future.
<br />
Privacy-centric facial recognition and video analysis solutions for enterprises and governments.
</p>
</motion.div>
<div className="grid md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-6xl mx-auto">
{features.map((feature, index) => (
<motion.div
key={feature.title}
initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ delay: index * 0.1 }}
>
<FeatureCard {...feature} />
</motion.div>
))}
</div>
</div>
{/* Learn More Section */}
<motion.div
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
className="mt-16 text-center"
>
<p className="text-gray-400">
Learn more about Seventh Sense AI at{' '}
<a
href="https://www.seventhsense.ai"
target="_blank"
rel="noopener noreferrer"
className="text-primary-400 hover:text-primary-300 transition-colors"
>
www.seventhsense.ai
</a>
</p>
</motion.div>
</section>
)
}
function FeatureCard({ icon, title, description, color }) {
return (
<div className="glass-card p-6 h-full group hover:border-primary-500/30 transition-colors">
<div className={`
inline-flex p-3 rounded-xl mb-4
bg-gradient-to-br ${color} bg-opacity-20
group-hover:scale-110 transition-transform
`}>
<div className="text-white">{icon}</div>
</div>
<h3 className="text-xl font-semibold text-white mb-2">{title}</h3>
<p className="text-gray-400">{description}</p>
</div>
)
}
export default Features