diff --git a/src/components/Badge.tsx b/src/components/Badge.tsx index 8271f87..5921135 100644 --- a/src/components/Badge.tsx +++ b/src/components/Badge.tsx @@ -6,7 +6,7 @@ interface BadgeProps { const Badge = ({ children }: BadgeProps) => { return ( -
+
{children}
); diff --git a/src/components/ChatWindow.tsx b/src/components/ChatWindow.tsx index 6bf6411..0ae868e 100644 --- a/src/components/ChatWindow.tsx +++ b/src/components/ChatWindow.tsx @@ -4,7 +4,7 @@ import React, { useEffect, useRef } from "react"; interface ChatWindowProps { children?: ReactNode; - className: string; + className?: string; messages: Message[]; } @@ -22,7 +22,7 @@ const ChatWindow = ({ messages, children, className }: ChatWindowProps) => {
diff --git a/src/components/Drawer.tsx b/src/components/Drawer.tsx index 1233fa6..fad4b05 100644 --- a/src/components/Drawer.tsx +++ b/src/components/Drawer.tsx @@ -6,7 +6,7 @@ const Drawer = () => { return (
} text="HustleGPT" /> diff --git a/src/components/Header.tsx b/src/components/Header.tsx index c67779b..3a4deaa 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -1,90 +1,21 @@ -// import { AnimatePresence, motion } from "framer-motion"; -import Link from "next/link"; -import { useRouter } from "next/router"; -import { - FaAngleDown, - FaGithub, - FaHome, - FaLink, - FaSignOutAlt, -} from "react-icons/fa"; -import Image from "next/image"; - -// import { Dropdown, DropdownItem } from "@/ui/dropdown"; -// import Loader from "@/ui/loader"; -// -// import { useAuth } from "@/hooks/useAuth"; +import { FaGithub } from "react-icons/fa"; +import PopIn from "./popin"; +import { AnimatePresence } from "framer-motion"; const Header: React.FC = () => { - // const { signOut, session, status } = useAuth(); - const router = useRouter(); - - // const authenticated = status == "authenticated" && ( - // } - // loader={false} - // > - //

- // {session?.user?.name} - //

- // - // } - // onClick={signOut} - // > - // Sign Out - // - // {router.route != "/" && ( - // }> - // Home - // - // )} - // }> - // - // Report a bug - // - // - //
- // ); - - // const loading = status == "loading" && ; - // - // const unauthenticated = - // status == "unauthenticated" && router.route != "/auth" ? ( - // Sign In - // ) : ( - // Home - // ); - - const github = ( - - Confetti on GitHub - - - ); - return ( -
- yes - {/**/} - {/* */} - {/* {authenticated || loading || unauthenticated}*/} - {/* */} - {/**/} - {github} +
+ + + + AgentGPT on GitHub + + + +
); }; diff --git a/src/components/popin.tsx b/src/components/popin.tsx index 4b15c97..70d081b 100644 --- a/src/components/popin.tsx +++ b/src/components/popin.tsx @@ -3,13 +3,14 @@ import type { PropsWithChildren } from "react"; interface MotionProps extends PropsWithChildren { className?: string; + delay?: number; } const PopIn = (props: MotionProps) => ( {props.children} diff --git a/src/layout/default.tsx b/src/layout/default.tsx index 4740478..143646a 100644 --- a/src/layout/default.tsx +++ b/src/layout/default.tsx @@ -1,6 +1,7 @@ import { type ReactNode } from "react"; import Head from "next/head"; import DottedGridBackground from "../components/DottedGridBackground"; +import Header from "../components/Header"; interface LayoutProps { children: ReactNode; @@ -27,7 +28,10 @@ const DefaultLayout = (props: LayoutProps) => { content="https://raw.githubusercontent.com/reworkd/extension/main/assets/icon512.png" /> - {props.children} + +
+ {props.children} + {/*
*/}
); diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 5330fb5..e7d12f4 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -13,6 +13,7 @@ import Drawer from "../components/Drawer"; import Input from "../components/Input"; import Button from "../components/Button"; import { FaRobot, FaStar } from "react-icons/fa"; +import PopIn from "../components/popin"; const Home: NextPage = () => { const [loading, setLoading] = React.useState(false); @@ -48,13 +49,20 @@ const Home: NextPage = () => { >
-
+
Agent GPT - Beta 🚀 + + + Beta 🚀 + +
Assemble, configure, and deploy autonomous AI Agents in your @@ -62,7 +70,7 @@ const Home: NextPage = () => {
- + {loading ? (