-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #236 from gita/add-gita-ai
Add Bhagavad Gita AI page
- Loading branch information
Showing
16 changed files
with
148 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
export const jsonLdFirst = { | ||
"@context": "http://schema.org", | ||
"@type": "Organization", | ||
"@id": "#organization", | ||
name: "Bhagavad Gita", | ||
url: "https://bhagavadgita.io", | ||
logo: "https://bhagavadgita.io/static/images/radhakrishna.png", | ||
}; | ||
|
||
export const jsonLdTwo = { | ||
"@context": "http://schema.org", | ||
"@type": "BreadcrumbList", | ||
itemListElement: [ | ||
{ | ||
"@type": "ListItem", | ||
position: 1, | ||
item: { | ||
"@id": "https://bhagavadgita.io", | ||
name: "Home", | ||
}, | ||
}, | ||
{ | ||
"@type": "ListItem", | ||
position: 2, | ||
item: { | ||
"@id": "https://bhagavadgita.io/ai", | ||
name: "Bhagavad Gita AI - Gita GPT - Ask Krishna", | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from "react"; | ||
|
||
const GitagptLayout: React.FC<React.PropsWithChildren<{}>> = ({ children }) => { | ||
return <>{children}</>; | ||
}; | ||
|
||
export default GitagptLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import React from "react"; | ||
import { Metadata } from "next"; | ||
|
||
import { paramsToLocale } from "shared/functions"; | ||
import { getTranslations } from "shared/translate/server"; | ||
|
||
import { jsonLdFirst, jsonLdTwo } from "./constants"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Bhagavad Gita AI - Gita GPT - Ask Krishna", | ||
description: | ||
"GitaGPT is a free Bhagavad Gita AI chatbot that uses the wisdom of the Bhagavad Gita to help answer your day-to-day questions. It's simple, insightful, and powered by ChatGPT.", | ||
openGraph: { | ||
title: "Bhagavad Gita AI - Gita GPT - Ask Krishna", | ||
description: | ||
"GitaGPT is a free Bhagavad Gita AI chatbot that uses the wisdom of the Bhagavad Gita to help answer your day-to-day questions. It's simple, insightful, and powered by ChatGPT.", | ||
url: "https://bhagavadgita.io/gitagpt", | ||
siteName: "Bhagavad Gita", | ||
images: | ||
"https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", | ||
locale: "en_US", | ||
type: "website", | ||
}, | ||
twitter: { | ||
card: "summary_large_image", | ||
title: "Bhagavad Gita AI - Gita GPT - Ask Krishna", | ||
description: | ||
"GitaGPT is a free Bhagavad Gita AI chatbot that uses the wisdom of the Bhagavad Gita to help answer your day-to-day questions. It's simple, insightful, and powered by ChatGPT.", | ||
images: [ | ||
"https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", | ||
], | ||
site: "@ShriKrishna", | ||
}, | ||
alternates: { | ||
canonical: "https://bhagavadgita.io/gitagpt", | ||
}, | ||
}; | ||
|
||
export default async function GitagptPage(props: ParamsWithLocale) { | ||
const { params } = props; | ||
const locale = paramsToLocale(params); | ||
return ( | ||
<> | ||
<script | ||
type="application/ld+json" | ||
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLdFirst) }} | ||
/> | ||
<script | ||
type="application/ld+json" | ||
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLdTwo) }} | ||
/> | ||
<div style={{ height: "100vh", width: "100vw" }}> | ||
<iframe | ||
style={{ height: "100%", width: "100%" }} | ||
src="https://widget.writesonic.com/CDN/index.html?service-base-url=https://api.botsonic.ai&token=aa0b5e0e-9284-4c52-968f-77f2c959dcdc&base-origin=https://bot.writesonic.com&instance-name=Botsonic&standalone=true&page-url=https://bot.writesonic.com/61178c5c-aed2-47c0-8759-305d2489956c?t=connect&workspace_id=91c72ad8-79d9-44aa-88e5-6c3738324985" | ||
title="GitaGPT" | ||
> | ||
You need to enable JavaScript to run this app. | ||
</iframe> | ||
</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters