diff --git a/thunder/frontend/src/components/Navbar.tsx b/thunder/frontend/src/components/Navbar.tsx new file mode 100644 index 0000000..b0a6383 --- /dev/null +++ b/thunder/frontend/src/components/Navbar.tsx @@ -0,0 +1,128 @@ +import { motion } from "framer-motion"; +import { useNavigate } from "react-router-dom"; +import { + UserButton, + SignInButton, + SignUpButton, + SignedIn, + SignedOut, +} from "@clerk/clerk-react"; +import { + Home as HomeIcon, + DollarSign, + Gift, + HelpCircle, + Plus, + Settings as SettingsIcon, +} from "lucide-react"; + +const ThunderLogoSVG = () => ( + + + + + + + + + +); + +export default function Navbar() { + const navigate = useNavigate(); + + return ( +
+ {/* When user is signed out → top nav */} + + + + + {/* When user is signed in → sidebar */} + +
+
+ navigate("/")} + className="text-blue-200 hover:text-blue-400" + > + + + navigate("/pricing")} + className="text-blue-200 hover:text-blue-400" + > + + + alert("Get Tokens")} + className="text-blue-200 hover:text-blue-400" + > + + + + window.open("https://thunder-docs.vercel.app/", "_blank") + } + className="text-blue-200 hover:text-blue-400" + > + + +
+
+ alert("Settings")} + className="text-blue-200 hover:text-blue-400" + > + + + +
+
+
+
+ ); +} diff --git a/thunder/frontend/src/components/Pricing.tsx b/thunder/frontend/src/components/Pricing.tsx index 244c534..437041d 100644 --- a/thunder/frontend/src/components/Pricing.tsx +++ b/thunder/frontend/src/components/Pricing.tsx @@ -1,6 +1,8 @@ import { motion } from 'framer-motion'; import { useNavigate } from 'react-router-dom'; import { useState,useEffect } from 'react'; +import Navbar from "../components/Navbar"; + import BackButton from './buttons/BackButton'; interface PricingTier { @@ -305,6 +307,8 @@ export function Pricing() { } return ( +
+