From 9c55b765ffe607445f5470cde81c2af5d719f4c2 Mon Sep 17 00:00:00 2001 From: samanyougarg Date: Sat, 20 Jan 2024 20:21:04 +0530 Subject: [PATCH] add Bhagavad Gita AI iframe --- src/app/[[...locale]]/page.tsx | 7 +- src/app/about/[[...locale]]/page.tsx | 7 +- .../acknowledgements/[[...locale]]/page.tsx | 7 +- .../[[...locale]]/page.tsx | 7 +- .../(chapter)/[[...locale]]/functions.ts | 3 +- .../(chapter)/[[...locale]]/page.tsx | 4 +- .../[verseNumber]/[[...locale]]/functions.ts | 6 +- .../[verseNumber]/[[...locale]]/page.tsx | 4 +- src/app/gitagpt/[[...locale]]/layout.tsx | 6 +- src/app/gitagpt/[[...locale]]/page.tsx | 98 ++++++++++--------- .../verse-of-the-day/[[...locale]]/page.tsx | 4 +- src/components/Footers/Footer.tsx | 2 +- src/components/Headers/IndexHeader.tsx | 2 +- src/components/Home/Modal.tsx | 2 +- src/components/Home/Newsletter.tsx | 4 +- 15 files changed, 93 insertions(+), 70 deletions(-) diff --git a/src/app/[[...locale]]/page.tsx b/src/app/[[...locale]]/page.tsx index b49d9b7..9c253bd 100644 --- a/src/app/[[...locale]]/page.tsx +++ b/src/app/[[...locale]]/page.tsx @@ -15,7 +15,8 @@ export const metadata: Metadata = { "Bhagwat Geeta in Hindi and English. Read Bhagavad Gita online in a simple, beautiful and easy-to-use interface; Gita Saar In Hindi; Bhagavad Gita quotes.", url: "https://bhagavadgita.io", siteName: "Bhagavad Gita", - images: "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", + images: + "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", locale: "en_US", type: "website", }, @@ -24,7 +25,9 @@ export const metadata: Metadata = { title: "Srimad Bhagavad Gita - Free Searchable Online Bhagwat Geeta", description: "Bhagwat Geeta in Hindi and English. Read Bhagavad Gita online in a simple, beautiful and easy-to-use interface; Gita Saar In Hindi; Bhagavad Gita quotes.", - images: ["https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75"], + images: [ + "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", + ], site: "@ShriKrishna", }, verification: { diff --git a/src/app/about/[[...locale]]/page.tsx b/src/app/about/[[...locale]]/page.tsx index cf56016..4aa0d8c 100644 --- a/src/app/about/[[...locale]]/page.tsx +++ b/src/app/about/[[...locale]]/page.tsx @@ -16,7 +16,8 @@ export const metadata: Metadata = { "Bhagavad Gita, also known as the Gita - the song of lord is a practical guide to one's life that guides one re-organise their life, achieve inner peace and approach supreme lord (the ultimate reality).", url: "https://bhagavadgita.io/about", siteName: "Bhagavad Gita", - images: "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", + images: + "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", locale: "en_US", type: "website", }, @@ -25,7 +26,9 @@ export const metadata: Metadata = { title: "What is The Bhagavad Gita - BhagavadGita.io", description: "Bhagavad Gita, also known as the Gita - the song of lord is a practical guide to one's life that guides one re-organise their life, achieve inner peace and approach supreme lord (the ultimate reality).", - images: ["https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75"], + images: [ + "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", + ], site: "@ShriKrishna", }, alternates: { diff --git a/src/app/acknowledgements/[[...locale]]/page.tsx b/src/app/acknowledgements/[[...locale]]/page.tsx index 55f0974..2b920a5 100644 --- a/src/app/acknowledgements/[[...locale]]/page.tsx +++ b/src/app/acknowledgements/[[...locale]]/page.tsx @@ -16,7 +16,8 @@ export const metadata: Metadata = { "We extend our heartfelt gratitude to esteemed organizations and individuals for allowing us to feature their invaluable Bhagavad Gita translations and commentaries.", url: "https://bhagavadgita.io/acknowledgements", siteName: "Bhagavad Gita", - images: "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", + images: + "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", locale: "en_US", type: "website", }, @@ -25,7 +26,9 @@ export const metadata: Metadata = { title: "Acknowledgements - Featured Bhagavad Gita Translations", description: "We extend our heartfelt gratitude to esteemed organizations and individuals for allowing us to feature their invaluable Bhagavad Gita translations and commentaries.", - images: ["https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75"], + images: [ + "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", + ], site: "@ShriKrishna", }, alternates: { diff --git a/src/app/bhagavad-gita-quotes/[[...locale]]/page.tsx b/src/app/bhagavad-gita-quotes/[[...locale]]/page.tsx index efa0575..3869c47 100644 --- a/src/app/bhagavad-gita-quotes/[[...locale]]/page.tsx +++ b/src/app/bhagavad-gita-quotes/[[...locale]]/page.tsx @@ -16,14 +16,17 @@ export const metadata: Metadata = { "100+ Bhagavad Gita Quotes spoken by Lord Krishna in the Bhagavad Gita to Arjuna on the battlefield of the Kurukshetra.", url: "https://bhagavadgita.io/bhagavad-gita-quotes", siteName: "Bhagavad Gita", - images: "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", + 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 Quotes By Krishna - BhagavadGita.io", - images: ["https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75"], + images: [ + "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", + ], site: "@ShriKrishna", }, alternates: { diff --git a/src/app/chapter/[chapterNumber]/(chapter)/[[...locale]]/functions.ts b/src/app/chapter/[chapterNumber]/(chapter)/[[...locale]]/functions.ts index 3f2c0a6..09b5324 100644 --- a/src/app/chapter/[chapterNumber]/(chapter)/[[...locale]]/functions.ts +++ b/src/app/chapter/[chapterNumber]/(chapter)/[[...locale]]/functions.ts @@ -16,7 +16,8 @@ export const getJsonLd = (chapterNumber: string, nameTranslated?: string) => ({ item: { "@id": `https://bhagavadgita.io/chapter/${chapterNumber}`, name: `Bhagavad Gita Chapter ${chapterNumber} - ${nameTranslated}`, - image: "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", + image: + "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", }, }, ], diff --git a/src/app/chapter/[chapterNumber]/(chapter)/[[...locale]]/page.tsx b/src/app/chapter/[chapterNumber]/(chapter)/[[...locale]]/page.tsx index 06f9785..178100a 100644 --- a/src/app/chapter/[chapterNumber]/(chapter)/[[...locale]]/page.tsx +++ b/src/app/chapter/[chapterNumber]/(chapter)/[[...locale]]/page.tsx @@ -57,7 +57,9 @@ export async function generateMetadata({ params }: Props): Promise { card: "summary_large_image", title: `Bhagavad Gita Chapter ${chapterNumber} - ${chapterData.gita_chapters_by_pk.name_translated} - BhagavadGita.io`, description: `${chapterDescription}...`, - images: ["https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75"], + images: [ + "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", + ], site: "@ShriKrishna", }, alternates: { diff --git a/src/app/chapter/[chapterNumber]/verse/[verseNumber]/[[...locale]]/functions.ts b/src/app/chapter/[chapterNumber]/verse/[verseNumber]/[[...locale]]/functions.ts index 44f7a39..6f48489 100644 --- a/src/app/chapter/[chapterNumber]/verse/[verseNumber]/[[...locale]]/functions.ts +++ b/src/app/chapter/[chapterNumber]/verse/[verseNumber]/[[...locale]]/functions.ts @@ -16,7 +16,8 @@ export const getJsonLd = (chapterNumber: string, verseNumber: string) => ({ item: { "@id": `https://bhagavadgita.io/chapter/${chapterNumber}?page=1`, name: `Bhagavad Gita Chapter ${chapterNumber}`, - image: "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", + image: + "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", }, }, { @@ -25,7 +26,8 @@ export const getJsonLd = (chapterNumber: string, verseNumber: string) => ({ item: { "@id": `https://bhagavadgita.io/chapter/${chapterNumber}/verse/${verseNumber}`, name: `Bhagavad Gita Chapter ${chapterNumber} Verse ${verseNumber}`, - image: "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", + image: + "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", }, }, ], diff --git a/src/app/chapter/[chapterNumber]/verse/[verseNumber]/[[...locale]]/page.tsx b/src/app/chapter/[chapterNumber]/verse/[verseNumber]/[[...locale]]/page.tsx index fa45ecd..cf8cbe6 100644 --- a/src/app/chapter/[chapterNumber]/verse/[verseNumber]/[[...locale]]/page.tsx +++ b/src/app/chapter/[chapterNumber]/verse/[verseNumber]/[[...locale]]/page.tsx @@ -46,7 +46,9 @@ export async function generateMetadata({ twitter: { card: "summary_large_image", title: `Bhagavad Gita Chapter ${chapterNumber} Verse ${verseNumber} - BhagavadGita.io`, - images: ["https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75"], + images: [ + "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", + ], site: "@ShriKrishna", }, alternates: { diff --git a/src/app/gitagpt/[[...locale]]/layout.tsx b/src/app/gitagpt/[[...locale]]/layout.tsx index db2dd02..d0c65fe 100644 --- a/src/app/gitagpt/[[...locale]]/layout.tsx +++ b/src/app/gitagpt/[[...locale]]/layout.tsx @@ -1,7 +1,7 @@ -import React from 'react'; +import React from "react"; const GitagptLayout: React.FC> = ({ children }) => { - return <>{children}; + return <>{children}; }; -export default GitagptLayout; \ No newline at end of file +export default GitagptLayout; diff --git a/src/app/gitagpt/[[...locale]]/page.tsx b/src/app/gitagpt/[[...locale]]/page.tsx index 14e386e..521e0d1 100644 --- a/src/app/gitagpt/[[...locale]]/page.tsx +++ b/src/app/gitagpt/[[...locale]]/page.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React from "react"; import { Metadata } from "next"; import { paramsToLocale } from "shared/functions"; @@ -7,55 +7,57 @@ 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.", - 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", - }, + "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 ( - <> -