Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add terms and privacy pages #131 #178

Merged
merged 3 commits into from
Jul 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/privacy-policy/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { ReactNode } from "react";
import HomeLayout from "../../layouts/HomeLayout";

export default function Layout({ children }: { children: ReactNode }) {
return <HomeLayout>{children}</HomeLayout>;
}
41 changes: 41 additions & 0 deletions app/privacy-policy/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { Metadata } from "next";
import PrivacyTermsBanner from "../../components/Shared/PrivacyTermsBanner";

export const metadata: Metadata = {
title: "Privacy Policy",
};

export default function PrivacyPolicy() {
return (
<>
<PrivacyTermsBanner
title={metadata.title as string}
lastUpdated="2023-07-16"
/>
<div className="max-w-5xl font-inter py-12 mx-auto px-4 sm:px-6">
<p className="mt-8 text-xl ">
Bhagavad Gita, also known as the Gita - &quot;The Song of The
Lord&quot; is a practical guide to one&apos;s life that guides one to
re-organise their life, achieve inner peace and approach the Supreme
Lord (the Ultimate Reality). It is a 700-verse text in Sanskrit which
comprises chapters 23 through 40 in the Bhishma-Parva section of the
Mahabharata.
</p>
<p className="mt-8 text-xl ">
The Bhagavad Gita is a dialogue between Arjuna, a supernaturally
gifted warrior and his guide and charioteer Lord Krishna on the
battlefield of Kurukshetra. As both armies stand ready for the battle,
the mighty warrior Arjuna, on observing the warriors on both sides
becomes overwhelmed with grief and compassion due to the fear of
losing his relatives and friends and the consequent sins attributed to
killing his own relatives. So, he surrenders to Lord Krishna, seeking
a solution. Thus, follows the wisdom of the Bhagavad Gita. Over 18
chapters, Gita packs an intense analysis of life, emotions and
ambitions, discussion of various types of yoga, including Jnana,
Bhakti, Karma and Raja, the difference between Self and the material
body as well as the revelation of the Ultimate Purpose of Life.
</p>
</div>
</>
);
}
6 changes: 6 additions & 0 deletions app/terms-of-service/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { ReactNode } from "react";
import HomeLayout from "../../layouts/HomeLayout";

export default function Layout({ children }: { children: ReactNode }) {
return <HomeLayout>{children}</HomeLayout>;
}
41 changes: 41 additions & 0 deletions app/terms-of-service/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { Metadata } from "next";
import PrivacyTermsBanner from "../../components/Shared/PrivacyTermsBanner";

export const metadata: Metadata = {
title: "Terms of Service",
};
samanyougarg marked this conversation as resolved.
Show resolved Hide resolved

export default function TermsOfService() {
return (
<>
<PrivacyTermsBanner
title={metadata.title as string}
lastUpdated="2023-07-16"
samanyougarg marked this conversation as resolved.
Show resolved Hide resolved
/>
<div className="max-w-5xl font-inter py-12 mx-auto px-4 sm:px-6">
<p className="mt-8 text-xl ">
Bhagavad Gita, also known as the Gita - &quot;The Song of The
Lord&quot; is a practical guide to one&apos;s life that guides one to
re-organise their life, achieve inner peace and approach the Supreme
Lord (the Ultimate Reality). It is a 700-verse text in Sanskrit which
comprises chapters 23 through 40 in the Bhishma-Parva section of the
Mahabharata.
</p>
<p className="mt-8 text-xl ">
The Bhagavad Gita is a dialogue between Arjuna, a supernaturally
gifted warrior and his guide and charioteer Lord Krishna on the
battlefield of Kurukshetra. As both armies stand ready for the battle,
the mighty warrior Arjuna, on observing the warriors on both sides
becomes overwhelmed with grief and compassion due to the fear of
losing his relatives and friends and the consequent sins attributed to
killing his own relatives. So, he surrenders to Lord Krishna, seeking
a solution. Thus, follows the wisdom of the Bhagavad Gita. Over 18
chapters, Gita packs an intense analysis of life, emotions and
ambitions, discussion of various types of yoga, including Jnana,
Bhakti, Karma and Raja, the difference between Self and the material
body as well as the revelation of the Ultimate Purpose of Life.
</p>
</div>
</>
);
}
samanyougarg marked this conversation as resolved.
Show resolved Hide resolved
38 changes: 38 additions & 0 deletions components/Shared/PrivacyTermsBanner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import Image from "next/image";
import PrivacyTermsBannerImage from "../../public/quotes-bg.png";

interface PrivacyTermsBannerProps {
title: string;
lastUpdated: string;
}

export default function PrivacyTermsBanner({
title,
lastUpdated,
}: PrivacyTermsBannerProps) {
return (
<>
<div className="max-w-full mx-auto xl:mx-24 z-10 relative">
<Image
src={PrivacyTermsBannerImage}
placeholder="blur"
alt="BG Privacy Terms Banner Image"
fill
style={{
objectFit: "cover",
objectPosition: "center",
}}
className="xl:rounded-lg"
/>
<div className="flex flex-col h-4/5 px-8 py-36">
<h1 className="text-3xl md:text-5xl text-center font-extrabold text-shadow text-white t-shadow z-20">
{title}
</h1>
<p className="text-center text-gray-200 text-shadow z-20 mt-5">
Last updated: {lastUpdated}
</p>
</div>
</div>
</>
);
}
samanyougarg marked this conversation as resolved.
Show resolved Hide resolved
Loading