Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 0 additions & 86 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,92 +11,6 @@ function App() {
return (
<Router>
<div className="min-h-screen bg-gray-900 text-gray-100">
<nav className="bg-gray-800 border-b border-gray-700">
<div className="max-w-7xl mx-auto px-4">
<div className="flex items-center justify-between h-16">
<div className="flex items-center">
<NavLink to="/" className="text-xl font-bold text-blue-500 hover:text-blue-400 transition-colors">
IntentAI
</NavLink>
</div>

{/* Mobile menu button */}
<div className="md:hidden">
<button
onClick={() => setIsMenuOpen(!isMenuOpen)}
className="text-gray-400 hover:text-white"
>
<Menu size={24} />
</button>
</div>

{/* Desktop Navigation */}
<div className="hidden md:flex space-x-4">
<NavLink
to="/general"
className={({ isActive }) =>
`flex items-center px-4 py-2 rounded-md ${
isActive
? 'bg-gray-700 text-white'
: 'text-gray-300 hover:bg-gray-700 hover:text-white'
}`
}
>
<MessageSquare className="mr-2" size={20} />
General
</NavLink>
<NavLink
to="/trading"
className={({ isActive }) =>
`flex items-center px-4 py-2 rounded-md ${
isActive
? 'bg-gray-700 text-white'
: 'text-gray-300 hover:bg-gray-700 hover:text-white'
}`
}
>
<TrendingUp className="mr-2" size={20} />
Trading
</NavLink>
</div>
</div>
</div>

{/* Mobile Navigation */}
<div className={`md:hidden ${isMenuOpen ? 'block' : 'hidden'}`}>
<div className="px-2 pt-2 pb-3 space-y-1">
<NavLink
to="/general"
className={({ isActive }) =>
`flex items-center px-3 py-2 rounded-md ${
isActive
? 'bg-gray-700 text-white'
: 'text-gray-300 hover:bg-gray-700 hover:text-white'
}`
}
onClick={() => setIsMenuOpen(false)}
>
<MessageSquare className="mr-2" size={20} />
General
</NavLink>
<NavLink
to="/trading"
className={({ isActive }) =>
`flex items-center px-3 py-2 rounded-md ${
isActive
? 'bg-gray-700 text-white'
: 'text-gray-300 hover:bg-gray-700 hover:text-white'
}`
}
onClick={() => setIsMenuOpen(false)}
>
<TrendingUp className="mr-2" size={20} />
Trading
</NavLink>
</div>
</div>
</nav>

<main className="w-full">
<Routes>
<Route path="/" element={<Homepage />} />
Expand Down
25 changes: 25 additions & 0 deletions frontend/src/components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React from 'react';

function Footer() {
return (
<footer className="bg-gray-800 text-gray-300 py-6 text-center mt-10">
<p>&copy; {new Date().getFullYear()} Your Website. All rights reserved.</p>
<ul className="flex justify-center space-x-6 mt-4">
<li>
<a href="/privacy-policy" className="hover:text-white transition duration-300">Privacy Policy</a>
</li>
<li>
<a href="/documentation" className="hover:text-white transition duration-300">Documentation</a>
</li>
<li>
<a href="/governance" className="hover:text-white transition duration-300">Governance</a>
</li>
<li>
<a href="https://github.com" target="_blank" rel="noopener noreferrer" className="hover:text-white transition duration-300">GitHub</a>
</li>
</ul>
</footer>
);
}

export default Footer;
4 changes: 4 additions & 0 deletions frontend/src/components/Homepage.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { useNavigate } from 'react-router-dom';
import { Sparkles, Brain, Zap, MessageSquare, TrendingUp, ArrowRight } from 'lucide-react';
import Footer from './Footer.jsx'; // Ensure correct path and default import

function Homepage() {
const navigate = useNavigate();
Expand Down Expand Up @@ -94,6 +95,9 @@ function Homepage() {
</div>
</div>
</div>
<div>
<Footer />
</div>
</div>
);
}
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/TradingChat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ const [test,setTest]=useState("");

{/* Updated Spline Container */}
<div className="relative w-full h-[500px]">
<Spline scene="https://prod.spline.design/31iD8MVkM1IpbbeX/scene.splinecode" />
{/* <Spline scene="https://prod.spline.design/31iD8MVkM1IpbbeX/scene.splinecode" /> */}
<Spline scene="https://prod.spline.design/6cBpFzCL5rJzFnLv/scene.splinecode" />
</div>
</div>
</div>
Expand Down