import React, { useEffect, useState } from 'react';
import { motion } from 'framer-motion';
import { Link } from 'react-router-dom'; // Import Link
import { Shield, Database, Network, Key, Cpu, Globe, Lock, Zap } from 'lucide-react';
import HeroSection from '../components/HeroSection';
import Section from '../components/Section';
import FeatureCard from '../components/FeatureCard';
import matter from 'gray-matter'; // Import matter
// Import images
import techBackground from '../assets/herotech.jpg'; // HERO Technology background
// Use Vite's import.meta.glob to import all tech markdown files and images
const techModules = import.meta.glob('../content/tech/*.md', { as: 'raw', eager: true });
const imageModules = import.meta.glob('../assets/*.jpg', { eager: true, import: 'default' });
const iconComponents = { Shield, Database, Network, Key, Cpu, Globe, Lock, Zap };
console.log('Tech Modules:', techModules);
const Technology = () => {
const [technologies, setTechnologies] = useState([]);
const [loading, setLoading] = useState(true);
useEffect(() => {
const loadTechnologies = async () => {
try {
const loadedTechnologies = [];
for (const path in techModules) {
const content = techModules[path];
const { data: frontmatter } = matter(content);
const IconComponent = iconComponents[frontmatter.iconname];
const imagePath = `../assets/${frontmatter.image}`; // Construct full path
const importedImage = imageModules[imagePath];
console.log('Loading technology:', frontmatter.title);
console.log('IconComponent:', frontmatter.iconname, IconComponent);
console.log('ImagePath:', imagePath, 'ImportedImage:', importedImage);
loadedTechnologies.push({
icon: IconComponent ? : ,
title: frontmatter.title,
description: frontmatter.description,
image: importedImage,
order: frontmatter.order || 999,
slug: frontmatter.slug || frontmatter.title.toLowerCase().replace(/\s+/g, '-')
});
}
// Sort by order
loadedTechnologies.sort((a, b) => a.order - b.order);
setTechnologies(loadedTechnologies);
} catch (error) {
console.error('Error loading technologies:', error);
setTechnologies([]); // Ensure technologies is empty on error
// Optionally, set an error state to display a message to the user
// setError('Failed to load technologies. Please try again later.');
} finally {
setLoading(false);
}
};
loadTechnologies();
}, []);
const comparisonData = [
{
feature: "Ownership",
hero: "Fully owned and run by the individual user",
traditional: "Owned and operated by corporations"
},
{
feature: "Data Privacy",
hero: "Encrypted, user-controlled, and geo-sovereign",
traditional: "Stored and processed by companies, often without transparency"
},
{
feature: "Communication",
hero: "Peer-to-peer between HEROs",
traditional: "Routed through centralized servers"
},
{
feature: "AI Integration",
hero: "You choose which AI agents to use",
traditional: "You depend on closed AI services with unknown behavior"
},
{
feature: "Memory",
hero: "Dispersed, quantum-safe, cannot be lost",
traditional: "Centralized, at risk of breaches or deletion"
},
{
feature: "Identity & Reputation",
hero: "Blockchain-authenticated and user-controlled",
traditional: "Managed by third-party login or opaque identity providers"
},
{
feature: "Sovereignty",
hero: "Operates in a digital freezone under your legal control",
traditional: "Bound to corporate policies and jurisdictions"
},
{
feature: "Trust Layer",
hero: "Verified through zero-knowledge proofs and peer links",
traditional: "No built-in trust mechanism"
}
];
const architectureFeatures = [
{
title: "Distributed Memory System",
description: "Your data is split into encrypted fragments and stored across multiple geographic locations, ensuring it can never be lost or compromised."
},
{
title: "Local AI Processing",
description: "AI computations happen on your device or trusted infrastructure, ensuring your data never leaves your control."
},
{
title: "Geographic Sovereignty",
description: "Choose where your data is stored and processed, ensuring compliance with local laws and regulations."
},
{
title: "Quantum-Resistant Encryption",
description: "Built with post-quantum cryptographic algorithms that remain secure even against quantum computer attacks."
},
{
title: "Zero-Trust Security Model",
description: "Every interaction is verified and encrypted, with no implicit trust relationships or single points of failure."
},
{
title: "Interoperable Protocols",
description: "Open standards ensure your HERO can communicate with other systems while maintaining security and privacy."
}
];
return (
Failed to load technologies. Please check the console for errors.
)}
{/* HERO vs Traditional Comparison */}
HERO vs Traditional AI Platforms
See how HERO's Personal Agent approach compares to traditional corporate AI platforms
Feature
HERO (Personal Agent)
Traditional AI Platforms
{comparisonData.map((row, index) => (
{row.feature}
{row.hero}
{row.traditional}
))}
{/* Architecture Deep Dive */}
Technical Architecture
Deep dive into the technical foundations that make HERO's digital sovereignty possible
{architectureFeatures.map((feature, index) => (
{feature.title}
{feature.description}
))}
{/* Security Standards Section */}
Military-Grade Security Standards
HERO implements the highest security standards used by governments and military organizations,
adapted for personal use to ensure your digital sovereignty.
{[
{
icon: ,
title: "AES-256 Encryption",
description: "Industry-standard encryption used by governments worldwide"
},
{
icon: ,
title: "Post-Quantum Cryptography",
description: "Future-proof against quantum computing threats"
},
{
icon: ,
title: "Zero-Knowledge Proofs",
description: "Verify identity without revealing personal information"
},
{
icon: ,
title: "Distributed Architecture",
description: "No single point of failure or attack"
}
].map((item, index) => (