Skip to content

Commit

Permalink
update to use React router
Browse files Browse the repository at this point in the history
  • Loading branch information
wheattoast11 committed Nov 21, 2024
1 parent 8884737 commit 98c7e92
Show file tree
Hide file tree
Showing 10 changed files with 304 additions and 112 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
run: npm ci
- name: Build
run: npm run build
- name: Add .nojekyll file
run: touch dist/.nojekyll
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down
25 changes: 25 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Intuition Labs</title>
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// MIT License
// https://github.com/rafgraph/spa-github-pages
var pathSegmentsToKeep = 0;

var l = window.location;
l.replace(
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
l.pathname.split('/').slice(0, 1 + pathSegmentsToKeep).join('/') + '/?/' +
l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') +
(l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') +
l.hash
);
</script>
</head>
<body>
</body>
</html>
107 changes: 18 additions & 89 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,97 +4,26 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Intuition Labs LLC - AI Research & Consulting</title>
<link rel="stylesheet" href="/style.css">
<script type="text/javascript" async src="https://static.zcal.co/embed/v1/embed.js"></script>
<!-- Start Single Page Apps for GitHub Pages -->
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// MIT License
// https://github.com/rafgraph/spa-github-pages
(function(l) {
if (l.search[1] === '/' ) {
var decoded = l.search.slice(1).split('&').map(function(s) {
return s.replace(/~and~/g, '&')
}).join('?');
window.history.replaceState(null, null,
l.pathname.slice(0, -1) + decoded + l.hash
);
}
}(window.location))
</script>
<!-- End Single Page Apps for GitHub Pages -->
</head>
<body>
<canvas id="bg"></canvas>
<div id="app">
<header>
<h1>Intuition Labs</h1>
<p class="tagline">Pioneering the future of AI through research and strategic innovation</p>
</header>

<div class="platforms-marquee">
<div class="platforms-track">
<span class="platform-name platform-terminals">terminals</span>
<span class="platform-name platform-radical">radical</span>
<span class="platform-name platform-pathfinder">pathfinder</span>
<span class="platform-name platform-wuji">wuji</span>
<span class="platform-name platform-boom">boom</span>
<span class="platform-name platform-journey">journey</span>
<span class="platform-name platform-terminals">terminals</span>
<span class="platform-name platform-radical">radical</span>
<span class="platform-name platform-pathfinder">pathfinder</span>
<span class="platform-name platform-wuji">wuji</span>
<span class="platform-name platform-boom">boom</span>
<span class="platform-name platform-journey">journey</span>
</div>
</div>

<section class="section">
<h2>Our Vision</h2>
<p>Transforming enterprises through cutting-edge AI solutions and polymathic expertise</p>
<div class="cta-container">
<a href="https://zcal.co/terminals" class="cta-button">Schedule Consultation</a>
<a href="/manifesto.html" class="text-link">Read Our Manifesto</a>
</div>
</section>

<section class="section apps-grid">
<h2>Featured Solutions</h2>
<div class="grid">
<div class="card">
<h3>Enterprise AI Strategy</h3>
<p>Comprehensive AI implementation and transformation roadmaps</p>
<a href="#strategy" class="learn-more">Learn More →</a>
<div class="learn-more-content">
<ul>
<li>Enterprise AI Implementation Strategy</li>
<li>LLM & Agent System Architecture</li>
<li>GTM Strategy Development</li>
<li>Complex System Integration</li>
</ul>
</div>
</div>
<div class="card">
<h3>LLM Systems</h3>
<p>Custom language model development and integration</p>
<a href="#llm" class="learn-more">Learn More →</a>
<div class="learn-more-content">
<ul>
<li>Custom AI Agent Development</li>
<li>Advanced Prompt Engineering</li>
<li>Multi-modal System Design</li>
<li>Process Automation & Optimization</li>
</ul>
</div>
</div>
<div class="card">
<h3>AI Agents</h3>
<p>Autonomous agent systems for process automation</p>
<a href="#agents" class="learn-more">Learn More →</a>
<div class="learn-more-content">
<ul>
<li>30k+ hours annual productivity improvement</li>
<li>Enterprise systems architecture across industries</li>
<li>Performance management for mega-cap enterprises</li>
<li>Cloud-wide tech stack transformation</li>
</ul>
</div>
</div>
</div>
</section>

<footer>
<div class="social-links">
<a href="https://www.linkedin.com/company/intuition-labs">LinkedIn</a>
<a href="https://github.com/wheattoast11">GitHub</a>
<a href="https://www.youtube.com/@IntuitionLabsLLC">YouTube</a>
</div>
<p class="copyright">© 2024 Intuition Labs LLC. Pioneering the future of AI.</p>
</footer>
</div>
<div id="root"></div>
<script type="module" src="/main.jsx"></script>
</body>
</html>
27 changes: 6 additions & 21 deletions main.jsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
import { Scene } from './src/three/Scene';
import { CardEffects } from './src/ui/CardEffects';
import { ScrollEffects } from './src/ui/ScrollEffects';
import { createRoot } from 'react-dom/client';
import { RemotionVideo } from './src/Video';
import React from 'react';
import { createRoot } from 'react-dom/client';
import App from './src/App';
import './style.css';

// Initialize Three.js scene
const scene = new Scene();
scene.animate();

// Initialize UI effects
new CardEffects();
new ScrollEffects();

// Initialize Remotion video
const videoContainer = document.createElement('div');
videoContainer.id = 'remotion-video';
document.body.appendChild(videoContainer);

// Create React root and render Remotion video
const root = createRoot(videoContainer);
root.render(React.createElement(RemotionVideo));
// Create React root for main app
const root = createRoot(document.getElementById('root'));
root.render(<App />);
39 changes: 39 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"@remotion/bundler": "^4.0.79",
"@remotion/player": "^4.0.79",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"react-router-dom": "^6.22.0"
},
"devDependencies": {
"vite": "^5.4.2",
Expand Down
51 changes: 51 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import React, { useEffect } from 'react';
import { createRoot } from 'react-dom/client';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import Home from './pages/Home';
import Manifesto from './pages/Manifesto';
import { Scene } from './three/Scene';
import { CardEffects } from './ui/CardEffects';
import { ScrollEffects } from './ui/ScrollEffects';
import { RemotionVideo } from './Video';

function App() {
useEffect(() => {
// Initialize Three.js scene
const scene = new Scene();
scene.animate();

// Initialize UI effects
new CardEffects();
new ScrollEffects();

// Initialize Remotion video
const videoContainer = document.createElement('div');
videoContainer.id = 'remotion-video';
document.body.appendChild(videoContainer);

// Create React root for video
const videoRoot = createRoot(videoContainer);
videoRoot.render(<RemotionVideo />);

// Cleanup on unmount
return () => {
if (videoContainer.parentNode) {
videoContainer.parentNode.removeChild(videoContainer);
}
};
}, []);

return (
<>
<canvas id="bg"></canvas>
<Router>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/manifesto" element={<Manifesto />} />
</Routes>
</Router>
</>
);
}

export default App;
Loading

0 comments on commit 98c7e92

Please sign in to comment.