...
This commit is contained in:
parent
fec9f6bfb7
commit
ef881d5671
16
build.sh
Executable file
16
build.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
PREFIX="ourhero"
|
||||||
|
|
||||||
|
echo "building for folder: /$PREFIX/"
|
||||||
|
export VITE_APP_BASE_URL="/$PREFIX"
|
||||||
|
|
||||||
|
pnpm install --frozen-lockfile
|
||||||
|
pnpm run build
|
||||||
|
|
||||||
|
# local mirror (optional)
|
||||||
|
rsync -rav --delete dist/ "${HOME}/hero/var/www/$PREFIX/"
|
||||||
|
|
||||||
|
# deploy to threefold server
|
||||||
|
rsync -avz --delete dist/ "root@threefold.info:/root/hero/www/info/$PREFIX/"
|
@ -12,7 +12,7 @@ import './App.css';
|
|||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<Router>
|
<Router basename={import.meta.env.VITE_APP_BASE_URL}>
|
||||||
<div className="dark min-h-screen bg-black text-white">
|
<div className="dark min-h-screen bg-black text-white">
|
||||||
<Navigation />
|
<Navigation />
|
||||||
<main className="pt-20">
|
<main className="pt-20">
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { motion } from 'framer-motion';
|
import { motion } from 'framer-motion';
|
||||||
import { Button } from '@/components/ui/button';
|
import { Button } from '@/components/ui/button';
|
||||||
|
import { useNavigate } from 'react-router-dom';
|
||||||
|
|
||||||
const HeroSection = ({
|
const HeroSection = ({
|
||||||
title,
|
title,
|
||||||
@ -12,6 +13,7 @@ const HeroSection = ({
|
|||||||
showVideo = false,
|
showVideo = false,
|
||||||
videoEmbed = null
|
videoEmbed = null
|
||||||
}) => {
|
}) => {
|
||||||
|
const navigate = useNavigate();
|
||||||
return (
|
return (
|
||||||
<section className="relative min-h-screen flex items-center justify-center overflow-hidden">
|
<section className="relative min-h-screen flex items-center justify-center overflow-hidden">
|
||||||
{/* Background Image/Video */}
|
{/* Background Image/Video */}
|
||||||
@ -82,7 +84,7 @@ const HeroSection = ({
|
|||||||
<Button
|
<Button
|
||||||
size="lg"
|
size="lg"
|
||||||
className="bg-blue-600 hover:bg-blue-700 text-white px-8 py-4 text-lg font-semibold rounded-lg transition-all duration-300 transform hover:scale-105"
|
className="bg-blue-600 hover:bg-blue-700 text-white px-8 py-4 text-lg font-semibold rounded-lg transition-all duration-300 transform hover:scale-105"
|
||||||
onClick={() => window.location.href = ctaLink}
|
onClick={() => navigate(ctaLink)}
|
||||||
>
|
>
|
||||||
{ctaText}
|
{ctaText}
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -11,18 +11,19 @@ import securityImage from '../assets/sphere.jpg'; // Digital privacy
|
|||||||
|
|
||||||
const GetStarted = () => {
|
const GetStarted = () => {
|
||||||
const features = [
|
const features = [
|
||||||
|
"Operate in the Freezone with complete digital sovereignty",
|
||||||
|
"Own and control your digital assets",
|
||||||
|
"Collaborate with built-in dispute resolution mechanisms",
|
||||||
|
"Collaborate globally without intermediaries",
|
||||||
"Complete digital sovereignty and data ownership",
|
"Complete digital sovereignty and data ownership",
|
||||||
"Quantum-safe memory storage across multiple nodes",
|
"Quantum-safe memory storage across multiple nodes",
|
||||||
"Private AI agent access and local processing",
|
"Private AI agent access and local processing",
|
||||||
"Secure peer-to-peer communication",
|
"Secure peer-to-peer communication",
|
||||||
"Blockchain-verified identity and reputation",
|
|
||||||
"Geographic data placement control",
|
"Geographic data placement control",
|
||||||
"Zero-knowledge architecture",
|
|
||||||
"24/7 Personal Agent assistance",
|
"24/7 Personal Agent assistance",
|
||||||
"Unlimited secure storage",
|
"Unlimited secure storage",
|
||||||
"Cross-platform compatibility",
|
"Cross-platform compatibility",
|
||||||
"Regular security updates",
|
|
||||||
"Community support and resources"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const steps = [
|
const steps = [
|
||||||
|
@ -9,13 +9,7 @@ import { Button } from '@/components/ui/button';
|
|||||||
import matter from 'gray-matter';
|
import matter from 'gray-matter';
|
||||||
|
|
||||||
// Import images
|
// 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 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 home content markdown files and images
|
// Use Vite's import.meta.glob to import all home content markdown files and images
|
||||||
const homeModules = import.meta.glob('../content/home/*.md', { as: 'raw', eager: true });
|
const homeModules = import.meta.glob('../content/home/*.md', { as: 'raw', eager: true });
|
||||||
@ -95,8 +89,6 @@ const Home = () => {
|
|||||||
title="HERO BACK 2"
|
title="HERO BACK 2"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
ctaText="Start Your Journey"
|
|
||||||
ctaLink="/get-started"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* What is HERO Section */}
|
{/* What is HERO Section */}
|
||||||
@ -274,13 +266,14 @@ const Home = () => {
|
|||||||
transition={{ duration: 0.6, delay: 0.4 }}
|
transition={{ duration: 0.6, delay: 0.4 }}
|
||||||
viewport={{ once: true }}
|
viewport={{ once: true }}
|
||||||
>
|
>
|
||||||
<Button
|
<Link to="/get-started">
|
||||||
size="lg"
|
<Button
|
||||||
className="bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white px-12 py-4 text-lg font-semibold rounded-lg transition-all duration-300 transform hover:scale-105 pulse-glow"
|
size="lg"
|
||||||
onClick={() => window.location.href = '/get-started'}
|
className="bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white px-12 py-4 text-lg font-semibold rounded-lg transition-all duration-300 transform hover:scale-105 pulse-glow"
|
||||||
>
|
>
|
||||||
Get Started Today
|
Get Started Today
|
||||||
</Button>
|
</Button>
|
||||||
|
</Link>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
</div>
|
</div>
|
||||||
</Section>
|
</Section>
|
||||||
|
@ -5,6 +5,7 @@ import path from 'path'
|
|||||||
|
|
||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
base: process.env.VITE_APP_BASE_URL || '/',
|
||||||
plugins: [react(),tailwindcss()],
|
plugins: [react(),tailwindcss()],
|
||||||
assetsInclude: ['**/*.md'],
|
assetsInclude: ['**/*.md'],
|
||||||
define: {
|
define: {
|
||||||
|
Loading…
Reference in New Issue
Block a user