import React, { useEffect, useState } from 'react';
import { motion } from 'framer-motion';
import { Link } from 'react-router-dom';
import { Shield, Brain, Users, Lock, Zap, Heart } from 'lucide-react';
import HeroSection from '../components/HeroSection';
import Section from '../components/Section';
import FeatureCard from '../components/FeatureCard';
import { Button } from '@/components/ui/button';
import matter from 'gray-matter';
// Import images
import networkImage from '../assets/discover.jpg'; // Connected lines
import heartTechImage from '../assets/heart.jpg'; // Technology heart
import humanConnectionImage from '../assets/myherozoom.png'; // Digital human connection
import privacyImage from '../assets/share.jpg'; // Digital privacy
import transactImage from '../assets/transact.jpg'; // Digital transaction
import developImage from '../assets/develop.jpg'; // Development scene
import communicateImage from '../assets/communicate.jpg'; // Communication scene
// Use Vite's import.meta.glob to import all capability markdown files
const capabilityModules = import.meta.glob('../blogs/capability_*.md', { as: 'raw', eager: true });
const Home = () => {
const [capabilities, setCapabilities] = useState([]);
const [loading, setLoading] = useState(true);
useEffect(() => {
const loadCapabilities = async () => {
try {
const loadedCapabilities = [];
for (const path in capabilityModules) {
const content = capabilityModules[path];
const { data: frontmatter } = matter(content);
// Map icon strings to actual components
const iconMap = {
'Brain': ,
'Zap': ,
'Shield': ,
'Users': ,
'Lock': ,
'Heart':
};
// Map image paths to actual imports
const imageMap = {
'/src/assets/communicate.jpg': communicateImage,
'/src/assets/heart.jpg': heartTechImage,
'/src/assets/discover.jpg': networkImage,
'/src/assets/develop.jpg': developImage,
'/src/assets/share.jpg': privacyImage,
'/src/assets/transact.jpg': transactImage
};
loadedCapabilities.push({
icon: iconMap[frontmatter.icon] || ,
title: frontmatter.title,
description: frontmatter.description,
image: imageMap[frontmatter.image] || heartTechImage,
order: frontmatter.order || 999,
slug: frontmatter.slug || frontmatter.title.toLowerCase().replace(/\s+/g, '-')
});
}
// Sort by order
loadedCapabilities.sort((a, b) => a.order - b.order);
setCapabilities(loadedCapabilities);
} catch (error) {
console.error('Error loading capabilities:', error);
// Fallback to static data if loading fails
setCapabilities([
{
icon: ,
title: "Communicate",
description: "Secure messaging, voice, and video chat — all managed privately by your Personal Agent",
image: communicateImage,
slug: "communicate"
},
{
icon: ,
title: "Create",
description: "Build documents, videos, and creative assets collaboratively with AI assistance",
image: heartTechImage,
slug: "create"
},
{
icon: ,
title: "Discover",
description: "Browse and search using authentic sources and AI assistance while maintaining privacy",
image: networkImage,
slug: "discover"
},
{
icon: ,
title: "Develop",
description: "Build and deploy applications faster with local AI and secure storage",
image: developImage,
slug: "develop"
},
{
icon: ,
title: "Share",
description: "Distribute content without central platforms — sovereignly and securely",
image: privacyImage,
slug: "share"
},
{
icon: ,
title: "Transact",
description: "Send and receive digital value safely and without intermediaries",
image: transactImage,
slug: "transact"
}
]);
} finally {
setLoading(false);
}
};
loadCapabilities();
}, []);
const benefits = [
"Your memory can never be lost, stolen, or corrupted",
"Authentic information flow between real, verified people",
"Equal access to knowledge and collaboration",
"Enhanced personal productivity with local AI support",
"Legal identity and digital autonomy through sovereign zones",
"Full control of your assets and data — for you and your children"
];
return (
{/* Hero Section */}
Your Personal Agent
}
description="HERO is not just another app — it's your trusted digital extension that works for you and no one else. Own your data, decide who accesses what, and preserve your memory in a way that can never be corrupted, lost, or hacked."
showVideo={true}
videoEmbed={
}
ctaText="Start Your Journey"
ctaLink="/get-started"
/>
{/* What is HERO Section */}
What is a HERO?
A HERO is your Personal Agent (PA) —
a secure piece of software that acts entirely on your behalf.
Fully owned and controlled by you
Capable of managing your digital life: data, identity, communication, AI, and transactions
Designed for privacy, security, and sovereignty
{/* Why HEROs Matter Section */}
Why HEROs Matter
Today, most AI tools are owned by corporations. They process your data, monitor your interactions,
and store your digital memory in centralized systems. HERO flips that model.
{benefits.map((benefit, index) => (
{benefit}
))}
{/* HERO Capabilities Section */}
HERO Capabilities
Your Personal Agent empowers you with comprehensive digital capabilities