Update various copy texts for OG metadata and such

This commit is contained in:
sabaimran 2024-12-16 16:40:46 -08:00
parent 28b8f9105d
commit 064f7e48ca
10 changed files with 31 additions and 26 deletions

View file

@ -6,7 +6,7 @@ import { ContentSecurityPolicy } from "../common/layoutHelper";
export const metadata: Metadata = { export const metadata: Metadata = {
title: "Khoj AI - Agents", title: "Khoj AI - Agents",
description: description:
"Find or create a specialized agent that can help you address more specific needs.", "Find or create agents with custom knowledge, tools and personalities to help address your specific needs.",
icons: { icons: {
icon: "/static/assets/icons/khoj_lantern.ico", icon: "/static/assets/icons/khoj_lantern.ico",
apple: "/static/assets/icons/khoj_lantern_256x256.png", apple: "/static/assets/icons/khoj_lantern_256x256.png",
@ -15,7 +15,7 @@ export const metadata: Metadata = {
siteName: "Khoj AI", siteName: "Khoj AI",
title: "Khoj AI - Agents", title: "Khoj AI - Agents",
description: description:
"Find or create a specialized agent that can help you address more specific needs.", "Find or create agents with custom knowledge, tools and personalities to help address your specific needs.",
url: "https://app.khoj.dev/agents", url: "https://app.khoj.dev/agents",
type: "website", type: "website",
images: [ images: [

View file

@ -6,7 +6,8 @@ import { ContentSecurityPolicy } from "../common/layoutHelper";
export const metadata: Metadata = { export const metadata: Metadata = {
title: "Khoj AI - Automations", title: "Khoj AI - Automations",
description: "Use Automations with Khoj to simplify the process of running repetitive tasks.", description:
"Use Khoj Automations to get tailored research and event based notifications directly in your inbox.",
icons: { icons: {
icon: "/static/assets/icons/khoj_lantern.ico", icon: "/static/assets/icons/khoj_lantern.ico",
apple: "/static/assets/icons/khoj_lantern_256x256.png", apple: "/static/assets/icons/khoj_lantern_256x256.png",
@ -15,7 +16,7 @@ export const metadata: Metadata = {
siteName: "Khoj AI", siteName: "Khoj AI",
title: "Khoj AI - Automations", title: "Khoj AI - Automations",
description: description:
"Use Automations with Khoj to simplify the process of running repetitive tasks.", "Use Khoj Automations to get tailored research and event based notifications directly in your inbox.",
url: "https://app.khoj.dev/automations", url: "https://app.khoj.dev/automations",
type: "website", type: "website",
images: [ images: [

View file

@ -6,7 +6,7 @@ import { ContentSecurityPolicy } from "../common/layoutHelper";
export const metadata: Metadata = { export const metadata: Metadata = {
title: "Khoj AI - Chat", title: "Khoj AI - Chat",
description: description:
"Ask anything. Khoj will use the internet and your docs to answer, paint and even automate stuff for you.", "Ask anything. Research answers from across the internet and your documents, draft messages, summarize documents, generate paintings and chat with personal agents.",
icons: { icons: {
icon: "/static/assets/icons/khoj_lantern.ico", icon: "/static/assets/icons/khoj_lantern.ico",
apple: "/static/assets/icons/khoj_lantern_256x256.png", apple: "/static/assets/icons/khoj_lantern_256x256.png",
@ -15,7 +15,7 @@ export const metadata: Metadata = {
siteName: "Khoj AI", siteName: "Khoj AI",
title: "Khoj AI - Chat", title: "Khoj AI - Chat",
description: description:
"Ask anything. Khoj will use the internet and your docs to answer, paint and even automate stuff for you.", "Ask anything. Research answers from across the internet and your documents, draft messages, summarize documents, generate paintings and chat with personal agents.",
url: "https://app.khoj.dev/chat", url: "https://app.khoj.dev/chat",
type: "website", type: "website",
images: [ images: [

View file

@ -150,7 +150,7 @@ export default function LoginPrompt(props: LoginPromptProps) {
<Drawer open={true} onOpenChange={props.onOpenChange}> <Drawer open={true} onOpenChange={props.onOpenChange}>
<DrawerContent className={`flex flex-col gap-4 w-full mb-4`}> <DrawerContent className={`flex flex-col gap-4 w-full mb-4`}>
<div> <div>
{useEmailSignIn && ( {useEmailSignIn ? (
<EmailSignInContext <EmailSignInContext
email={email} email={email}
setEmail={setEmail} setEmail={setEmail}
@ -161,8 +161,7 @@ export default function LoginPrompt(props: LoginPromptProps) {
setRecheckEmail={setRecheckEmail} setRecheckEmail={setRecheckEmail}
handleMagicLinkSignIn={handleMagicLinkSignIn} handleMagicLinkSignIn={handleMagicLinkSignIn}
/> />
)} ) : (
{!useEmailSignIn && (
<MainSignInContext <MainSignInContext
handleGoogleScriptLoad={handleGoogleScriptLoad} handleGoogleScriptLoad={handleGoogleScriptLoad}
handleGoogleSignIn={handleGoogleSignIn} handleGoogleSignIn={handleGoogleSignIn}
@ -184,7 +183,7 @@ export default function LoginPrompt(props: LoginPromptProps) {
className={`flex flex-col gap-4 ${!useEmailSignIn ? "p-0 pb-4 m-0 max-w-xl" : "w-fit"}`} className={`flex flex-col gap-4 ${!useEmailSignIn ? "p-0 pb-4 m-0 max-w-xl" : "w-fit"}`}
> >
<div> <div>
{useEmailSignIn && ( {useEmailSignIn ? (
<EmailSignInContext <EmailSignInContext
email={email} email={email}
setEmail={setEmail} setEmail={setEmail}
@ -195,8 +194,7 @@ export default function LoginPrompt(props: LoginPromptProps) {
setRecheckEmail={setRecheckEmail} setRecheckEmail={setRecheckEmail}
handleMagicLinkSignIn={handleMagicLinkSignIn} handleMagicLinkSignIn={handleMagicLinkSignIn}
/> />
)} ) : (
{!useEmailSignIn && (
<MainSignInContext <MainSignInContext
handleGoogleScriptLoad={handleGoogleScriptLoad} handleGoogleScriptLoad={handleGoogleScriptLoad}
handleGoogleSignIn={handleGoogleSignIn} handleGoogleSignIn={handleGoogleSignIn}
@ -403,18 +401,17 @@ function MainSignInContext({
{ {
src: "https://assets.khoj.dev/sign_in_demos/research_mode.gif", src: "https://assets.khoj.dev/sign_in_demos/research_mode.gif",
alt: "Research tip", alt: "Research tip",
description: "Perform deeper research to get informed, accurate answers.", description: "Simplify Deep Work",
}, },
{ {
src: "https://assets.khoj.dev/sign_in_demos/custom_agents.gif", src: "https://assets.khoj.dev/sign_in_demos/custom_agents.gif",
alt: "Personalize tip", alt: "Personalize tip",
description: description: "Personalize your AI",
"Create AI agents and customize their personality to discuss homework, office work or a hobby.",
}, },
{ {
src: "https://assets.khoj.dev/sign_in_demos/docment_questions.gif", src: "https://assets.khoj.dev/sign_in_demos/docment_questions.gif",
alt: "Document tip", alt: "Document tip",
description: "Get verifiable answers from across the internet and your documents.", description: "Ask Anything",
}, },
]; ];
@ -473,7 +470,12 @@ function MainSignInContext({
variant="outline" variant="outline"
className="w-[300px] p-8 flex gap-2 items-center justify-center rounded-lg font-bold" className="w-[300px] p-8 flex gap-2 items-center justify-center rounded-lg font-bold"
onClick={handleGoogleSignIn} onClick={handleGoogleSignIn}
disabled={isLoading || !data?.google} disabled={
isLoading ||
!data?.google ||
!data?.google.client_id ||
!data?.google.redirect_uri
}
> >
{isLoading ? ( {isLoading ? (
<Spinner className="h-6 w-6" /> <Spinner className="h-6 w-6" />

View file

@ -6,17 +6,19 @@ import { ContentSecurityPolicy } from "./common/layoutHelper";
export const metadata: Metadata = { export const metadata: Metadata = {
title: "Khoj AI - Ask Anything", title: "Khoj AI - Ask Anything",
description: description:
"Khoj is a model-agnostic, open-source personal research assistant. It helps you understand, create, and generate faster.", "Khoj is a personal research assistant. It helps you understand better and create faster.",
icons: { icons: {
icon: "/static/assets/icons/khoj_lantern.ico", icon: "/static/assets/icons/khoj_lantern.ico",
apple: "/static/assets/icons/khoj_lantern_256x256.png", apple: "/static/assets/icons/khoj_lantern_256x256.png",
}, },
manifest: "/static/khoj.webmanifest", manifest: "/static/khoj.webmanifest",
keywords:
"research assistant, productivity, AI, Khoj, open source, model agnostic, research, productivity tool, personal assistant, personal research assistant, personal productivity assistant",
openGraph: { openGraph: {
siteName: "Khoj AI", siteName: "Khoj AI",
title: "Khoj AI", title: "Khoj AI",
description: description:
"Khoj is a model-agnostic, open-source personal research assistant. It helps you understand, create, and generate faster.", "Khoj is a personal research assistant. It helps you understand better and create faster.",
url: "https://app.khoj.dev", url: "https://app.khoj.dev",
type: "website", type: "website",
images: [ images: [

View file

@ -15,7 +15,7 @@ export const metadata: Metadata = {
openGraph: { openGraph: {
siteName: "Khoj AI", siteName: "Khoj AI",
title: "Khoj AI - Settings", title: "Khoj AI - Settings",
description: "Setup, configure, and personalize Khoj. your AI-powered research assistant.", description: "Setup, configure, and personalize Khoj, your AI research assistant.",
url: "https://app.khoj.dev/settings", url: "https://app.khoj.dev/settings",
type: "website", type: "website",
images: [ images: [

View file

@ -6,7 +6,7 @@ import { ContentSecurityPolicy } from "@/app/common/layoutHelper";
export const metadata: Metadata = { export const metadata: Metadata = {
title: "Khoj AI - Ask Anything", title: "Khoj AI - Ask Anything",
description: description:
"Ask anything. Khoj will use the internet and your docs to answer, paint and even automate stuff for you.", "Ask anything. Research answers from across the internet and your documents, draft messages, summarize documents, generate paintings and chat with personal agents.",
icons: { icons: {
icon: "/static/assets/icons/khoj_lantern.ico", icon: "/static/assets/icons/khoj_lantern.ico",
apple: "/static/assets/icons/khoj_lantern_256x256.png", apple: "/static/assets/icons/khoj_lantern_256x256.png",
@ -15,7 +15,7 @@ export const metadata: Metadata = {
siteName: "Khoj AI", siteName: "Khoj AI",
title: "Khoj AI - Ask Anything", title: "Khoj AI - Ask Anything",
description: description:
"Ask anything. Khoj will use the internet and your docs to answer, paint and even automate stuff for you.", "Ask anything. Research answers from across the internet and your documents, draft messages, summarize documents, generate paintings and chat with personal agents.",
url: "https://app.khoj.dev/chat", url: "https://app.khoj.dev/chat",
type: "website", type: "website",
images: [ images: [

View file

@ -29,7 +29,7 @@
<p style="font-size: 16px; color: #333; margin-bottom: 20px;">You're about to get a whole lot more productive. <p style="font-size: 16px; color: #333; margin-bottom: 20px;">You're about to get a whole lot more productive.
</p> </p>
<div style="font-size: 18px; font-weight: bold; margin-top: 30px; text-align: right;">- The Khoj Team</div> <div style="font-size: 14px; color: #555; margin-top: 30px;">- The Khoj Team</div>
<div style="margin-top: 30px; text-align: center;"> <div style="margin-top: 30px; text-align: center;">
<a href="https://docs.khoj.dev" target="_blank" <a href="https://docs.khoj.dev" target="_blank"

View file

@ -157,7 +157,7 @@ async def auth_post(request: Request):
form = await request.form() form = await request.form()
next_url = get_next_url(request) next_url = get_next_url(request)
for q in request.query_params: for q in request.query_params:
if not q == "next": if q != "next":
next_url += f"&{q}={request.query_params[q]}" next_url += f"&{q}={request.query_params[q]}"
credential = form.get("credential") credential = form.get("credential")
@ -202,7 +202,7 @@ async def auth(request: Request):
for q in request.query_params: for q in request.query_params:
if q in ["code", "state", "scope", "authuser", "prompt", "session_state", "access_type"]: if q in ["code", "state", "scope", "authuser", "prompt", "session_state", "access_type"]:
continue continue
if not q == "next": if q != "next":
next_url += f"&{q}={request.query_params[q]}" next_url += f"&{q}={request.query_params[q]}"
code = request.query_params.get("code") code = request.query_params.get("code")

View file

@ -47,7 +47,7 @@ async def send_magic_link_email(email, unique_id, host):
{ {
"sender": os.environ.get("RESEND_EMAIL", "noreply@khoj.dev"), "sender": os.environ.get("RESEND_EMAIL", "noreply@khoj.dev"),
"to": email, "to": email,
"subject": f"Your unique login to Khoj", "subject": f"Your login code to Khoj",
"html": html_content, "html": html_content,
} }
) )