diff --git a/components/home/card.tsx b/components/home/card.tsx index 13e7b48..df08c25 100644 --- a/components/home/card.tsx +++ b/components/home/card.tsx @@ -1,6 +1,7 @@ import { ReactNode } from "react"; import ReactMarkdown from "react-markdown"; import Balancer from "react-wrap-balancer"; +import Image from "next/image"; export default function Card({ title, @@ -10,38 +11,32 @@ export default function Card({ description: string; }) { return ( -
-
-

- {title} -

-
- - ( - - ), - code: ({ node, ...props }) => ( - - ), - }} - > - {description} - - -
-
+
+ +
+ {title} +
+
+

{description}

+ + Try It + +
); } diff --git a/components/layout/index.tsx b/components/layout/index.tsx index c3c3095..b507e58 100644 --- a/components/layout/index.tsx +++ b/components/layout/index.tsx @@ -27,7 +27,7 @@ export default function Layout({ return ( <> -
+
Precedent logo -

Read Pilot

+

Copilot Hub

@@ -55,7 +55,7 @@ export default function Layout({ target="_blank" {...FADE_IN_ANIMATION_SETTINGS} > - Subscribe + Login ) : ( diff --git a/components/layout/meta.tsx b/components/layout/meta.tsx index d3c357c..93ae502 100644 --- a/components/layout/meta.tsx +++ b/components/layout/meta.tsx @@ -1,11 +1,11 @@ import Head from "next/head"; // TODO(jiayuan): Change this -const DOMAIN = "https://readpilot.vercel.app"; +const DOMAIN = "https://copilothub.co"; export default function Meta({ - title = "Read Pilot - Unlock the power of your online reading", - description = "Read Pilot analyzes online articles and generate Q&A cards for you.", + title = "Copilot Hub - The AI assistant community building the future.", + description = "Copilot Hub helps you build your ChatGPT assistant with your own data in minutes", image = `${DOMAIN}/api/og`, }: { title?: string; diff --git a/next.config.js b/next.config.js index fbe0df8..bdaeaeb 100644 --- a/next.config.js +++ b/next.config.js @@ -3,7 +3,7 @@ const nextConfig = { reactStrictMode: true, swcMinify: true, images: { - domains: ["lh3.googleusercontent.com"], + domains: ["lh3.googleusercontent.com", "replit.com"], }, async redirects() { return [ diff --git a/pages/index.tsx b/pages/index.tsx index dd6b89a..52f2284 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -4,52 +4,40 @@ import Balancer from "react-wrap-balancer"; import { motion } from "framer-motion"; import { FADE_DOWN_ANIMATION_VARIANTS } from "@/lib/constants"; import { Github, LoadingDots, Twitter } from "@/components/shared/icons"; -import { useState } from "react"; -import LinkIcon from "@/components/shared/icons/link"; -import CountingNumbers from "@/components/shared/counting-numbers"; export default function Home() { - const [url, setUrl] = useState(""); - const [showGeneratedCards, setShowGeneratedCards] = useState(false); - const [loading, setLoading] = useState(false); - const [results, setResults] = useState([]); - - const generateCards = async (e: any) => { - e.preventDefault(); - - // TODO(jiayuan): refactor this later - if (url === "") { - console.log("Please enter a valid URL"); - return; - } - - setLoading(true); - setResults([]); - - const response = await fetch("/api/analyze", { - method: "POST", - headers: { - "Content-Type": "application/json", - }, - body: JSON.stringify({ url }), - }) - .then((res) => { - if (res.status === 200) { - return res.json(); - } - throw new Error("Something went wrong"); - }) - .then((responseJson) => { - console.log(responseJson); - setResults(responseJson.data); - setShowGeneratedCards(true); - }) - .catch((error) => { - console.error(error); - }); - - setLoading(false); - }; + const results = [ + { + title: "Ask Startup Class", + description: + "This AI trained by the startup class of Y Combinator: How to Start a Startup. You can ask any questions related to starting a startup.", + }, + { + title: "Ask Read Pilot", + description: + "Input a link, and get a summary of the article. You can also ask questions about the article.", + }, + { + title: "Ask The Great CEO Within", + description: + "This AI trained by the book: The Great CEO Within. You can ask any questions related to the book.", + }, + { + title: "Ask Naval Ravikant", + description: + "This AI trained by all the tweets of Naval Ravikant. You can ask any questions related to life, business, and investing.", + }, + { + title: "Ask Elon Musk", + description: + "This AI trained by all the tweets of Elon Musk. It's an AI version of Elon Musk.", + }, + { + title: "Ask Tim Ferriss", + description: + "This AI trained by all the blogs, tweets, books of Tim Ferriss. You can ask any questions related to life, business, and investing.", + }, + ]; return ( @@ -81,7 +69,7 @@ export default function Home() { >

- Introducing Read Pilot + Introducing Copilot Hub

- Read Online Articles With + The AI Assistant Community
- - Intelligence + + Building the Future
- Read Pilot analyzes online articles and generate Q&A cards for - you. + Copilot Hub is an AI-native platform where you can train and + fine-tune your LLMs. Create a chatbot with your own data in + minutes. + + + + - - Trusted by{" "} - {" "} - users,{" "} - {" "} - links have been analyzed. - + Featured Copilots - - -
- - { - setUrl((e.target as HTMLInputElement).value); - }} - required - className="block w-full rounded-2xl border border-gray-200 bg-white p-2 pl-12 text-lg text-gray-600 shadow-md focus:border-black focus:outline-none focus:ring-0" - /> -
-
- - - {!loading && ( - - )} - {loading && ( - - )} - - {showGeneratedCards && ( -
- {results.map(({ q, a }) => ( - - ))} -
- )} +
+ {results.map(({ title, description }) => ( + + ))} +
); diff --git a/public/favicon.ico b/public/favicon.ico index 7afc8d3..6c17597 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/logo.png b/public/logo.png index 82c55c2..d4716f3 100644 Binary files a/public/logo.png and b/public/logo.png differ diff --git a/public/logo_bak.png b/public/logo_bak.png new file mode 100644 index 0000000..82c55c2 Binary files /dev/null and b/public/logo_bak.png differ