@@ -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