diff --git a/public/upi_qr_radhakrishna.png b/public/upi_qr_radhakrishna.png new file mode 100644 index 0000000..5e3b3bc Binary files /dev/null and b/public/upi_qr_radhakrishna.png differ diff --git a/src/app/donate/[[...locale]]/constants.ts b/src/app/donate/[[...locale]]/constants.ts new file mode 100644 index 0000000..1c999e9 --- /dev/null +++ b/src/app/donate/[[...locale]]/constants.ts @@ -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/donate", + name: "Donate - Bhagavad Gita - Ved Vyas Foundation", + }, + }, + ], +}; diff --git a/src/app/donate/[[...locale]]/layout.tsx b/src/app/donate/[[...locale]]/layout.tsx new file mode 100644 index 0000000..67bd70e --- /dev/null +++ b/src/app/donate/[[...locale]]/layout.tsx @@ -0,0 +1,16 @@ +import HomeLayout from "layouts/HomeLayout"; +import { paramsToLocale } from "shared/functions"; +import { getTranslations } from "shared/translate/server"; + +export default async function Layout({ + params, + children, +}: React.PropsWithChildren) { + const locale = paramsToLocale(params); + + return ( + + {children} + + ); +} diff --git a/src/app/donate/[[...locale]]/page.tsx b/src/app/donate/[[...locale]]/page.tsx new file mode 100644 index 0000000..a0e122c --- /dev/null +++ b/src/app/donate/[[...locale]]/page.tsx @@ -0,0 +1,118 @@ +import { Metadata } from "next"; +import Image from "next/image"; + +import DonateBanner from "components/DonateBanner"; +import { paramsToLocale } from "shared/functions"; +import { getTranslations } from "shared/translate/server"; + +import { jsonLdFirst, jsonLdTwo } from "./constants"; + +export const metadata: Metadata = { + title: "Donate - Bhagavad Gita - Ved Vyas Foundation", + description: + "Donate to the Bhagavad Gita project to help us continue our mission of spreading the message of the Bhagavad Gita and Krishna's wisdom to the world.", + openGraph: { + title: "Donate - Bhagavad Gita - Ved Vyas Foundation", + description: + "Donate to the Bhagavad Gita project to help us continue our mission of spreading the message of the Bhagavad Gita and Krishna's wisdom to the world.", + url: "https://bhagavadgita.io/donate", + 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: "Donate - Bhagavad Gita - Ved Vyas Foundation", + description: + "Donate to the Bhagavad Gita project to help us continue our mission of spreading the message of the Bhagavad Gita and Krishna's wisdom to the world.", + images: [ + "https://bhagavadgita.io/_next/image?url=%2Fbanner2.png&w=3840&q=75", + ], + site: "@ShriKrishna", + }, + alternates: { + canonical: "https://bhagavadgita.io/donate", + }, +}; + +export default async function Donate(props: ParamsWithLocale) { + const { params } = props; + const locale = paramsToLocale(params); + + return ( + <> +