-
Notifications
You must be signed in to change notification settings - Fork 4
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 #84 from TEDx-SJEC/team_and_refactors
Team and refactors
- Loading branch information
Showing
8 changed files
with
906 additions
and
818 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,43 @@ | ||
"use client"; | ||
|
||
import BackButton from "@/components/shared/back-button"; | ||
import Container from "@/components/shared/container"; | ||
import { Text } from "@/components/shared/text"; | ||
import { legalInfo } from "@/data/legal-info"; | ||
import { cn } from "@/lib/utils"; | ||
import { useRouter } from "next/navigation"; | ||
|
||
|
||
export default function PrivacyPolicy() { | ||
const router = useRouter(); | ||
return ( | ||
<Container className="mx-auto mt-24 md:mt-32 mb-1"> | ||
<div className="py-10 px-6 sm:px-12 md:px-20 lg:px-32 space-y-8 text-red-600 rounded-lg shadow-lg backdrop-blur-md"> | ||
<div className="flex items-center justify-start"> | ||
<button | ||
className="text-red-600 hover:text-red-800 flex items-center space-x-2" | ||
onClick={() => router.back()} | ||
> | ||
<svg | ||
className="w-5 h-5" | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke="currentColor" | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
d="M15 19l-7-7 7-7" | ||
/> | ||
</svg> | ||
<span>Back</span> | ||
</button> | ||
</div> | ||
|
||
return ( | ||
<Container className="mx-auto mt-24 md:mt-32 mb-1"> | ||
<div className="py-10 px-6 sm:px-12 md:px-20 lg:px-32 space-y-8 text-red-600 rounded-lg shadow-lg backdrop-blur-md"> | ||
<BackButton /> | ||
|
||
<Text | ||
variant="h1" | ||
className={cn("text-4xl md:text-5xl font-bold text-center")} | ||
> | ||
Privacy Policy | ||
</Text> | ||
<Text variant="h1" className={cn("text-4xl md:text-5xl font-bold text-center")}> | ||
Privacy Policy | ||
</Text> | ||
|
||
<div className="space-y-6"> | ||
{legalInfo.Privacy.map((privacy, index) => ( | ||
<div | ||
key={index} | ||
className=" border-gray-700 pb-2 mb-2 last:border-none last:pb-0 last:mb-0" | ||
> | ||
<Text | ||
variant="h3" | ||
className={cn( | ||
"text-2xl md:text-3xl font-semibold mb-1 text-gray-200" | ||
)} | ||
> | ||
{privacy.title} | ||
</Text> | ||
<div className="space-y-6"> | ||
{legalInfo.Privacy.map((privacy, index) => ( | ||
<div | ||
key={index} | ||
className=" border-gray-700 pb-2 mb-2 last:border-none last:pb-0 last:mb-0" | ||
> | ||
<Text | ||
variant="h3" | ||
className={cn("text-2xl md:text-3xl font-semibold mb-1 text-gray-200")} | ||
> | ||
{privacy.title} | ||
</Text> | ||
|
||
<p className="text-base md:text-lg text-gray-400 leading-7 md:leading-8 text-justify"> | ||
{privacy.description} | ||
</p> | ||
<p className="text-base md:text-lg text-gray-400 leading-7 md:leading-8 text-justify"> | ||
{privacy.description} | ||
</p> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
</Container> | ||
); | ||
</Container> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,69 +1,48 @@ | ||
"use client"; | ||
|
||
import BackButton from "@/components/shared/back-button"; | ||
import Container from "@/components/shared/container"; | ||
import { Text } from "@/components/shared/text"; | ||
import { legalInfo } from "@/data/legal-info"; | ||
import { cn } from "@/lib/utils"; | ||
import Link from "next/link"; // To create a back link | ||
import { useRouter } from "next/navigation"; | ||
|
||
export default function Refund() { | ||
const router = useRouter(); | ||
return ( | ||
<Container className="mx-auto mt-24 md:mt-32 mb-1"> | ||
<div className="py-10 px-6 sm:px-12 md:px-20 lg:px-32 space-y-8 text-red-600 rounded-lg shadow-lg backdrop-blur-md"> | ||
<div className="flex items-center justify-start"> | ||
<button className="text-red-600 hover:text-red-800 flex items-center space-x-2" | ||
onClick={() => router.back()}> | ||
<svg | ||
className="w-5 h-5" | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke="currentColor" | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
d="M15 19l-7-7 7-7" | ||
/> | ||
</svg> | ||
<span>Back</span> | ||
</button> | ||
</div> | ||
return ( | ||
<Container className="mx-auto mt-24 md:mt-32 mb-1"> | ||
<div className="py-10 px-6 sm:px-12 md:px-20 lg:px-32 space-y-8 text-red-600 rounded-lg shadow-lg backdrop-blur-md"> | ||
<BackButton /> | ||
|
||
{/* Title Section */} | ||
<div className="text-center"> | ||
<Text variant="h1" className={cn("text-4xl md:text-5xl font-bold text-center")}> | ||
Refund Policy | ||
</Text> | ||
</div> | ||
{/* Title Section */} | ||
<div className="text-center"> | ||
<Text variant="h1" className={cn("text-4xl md:text-5xl font-bold text-center")}> | ||
Refund Policy | ||
</Text> | ||
</div> | ||
|
||
{/* Policy Sections */} | ||
<div className="space-y-6"> | ||
{legalInfo.Refund.map((refund, index) => ( | ||
<div | ||
key={index} | ||
className="border-gray-700 pb-2 mb-2 last:border-none last:pb-0 last:mb-0" | ||
> | ||
{/* Section Title */} | ||
<Text | ||
variant="h3" | ||
className={cn("text-2xl md:text-3xl font-semibold mb-1 text-gray-200")} | ||
> | ||
{refund.title} | ||
</Text> | ||
{/* Policy Sections */} | ||
<div className="space-y-6"> | ||
{legalInfo.Refund.map((refund, index) => ( | ||
<div | ||
key={index} | ||
className="border-gray-700 pb-2 mb-2 last:border-none last:pb-0 last:mb-0" | ||
> | ||
{/* Section Title */} | ||
<Text | ||
variant="h3" | ||
className={cn("text-2xl md:text-3xl font-semibold mb-1 text-gray-200")} | ||
> | ||
{refund.title} | ||
</Text> | ||
|
||
{/* Section Description */} | ||
<p | ||
className="text-base md:text-lg text-gray-400 leading-7 md:leading-8 text-justify" | ||
dangerouslySetInnerHTML={{ __html: refund.description }} | ||
></p> | ||
{/* Section Description */} | ||
<p | ||
className="text-base md:text-lg text-gray-400 leading-7 md:leading-8 text-justify" | ||
dangerouslySetInnerHTML={{ __html: refund.description }} | ||
></p> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
</Container> | ||
); | ||
</Container> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,67 +1,40 @@ | ||
"use client"; | ||
|
||
import BackButton from "@/components/shared/back-button"; | ||
import Container from "@/components/shared/container"; | ||
import { Text } from "@/components/shared/text"; | ||
import { Button } from "@/components/ui/button"; | ||
import { legalInfo } from "@/data/legal-info"; | ||
import { cn } from "@/lib/utils"; | ||
import Link from "next/link"; | ||
import { useRouter } from "next/navigation"; | ||
|
||
|
||
export default function TermsAndConditions() { | ||
const router = useRouter(); | ||
return ( | ||
<Container className="mx-auto mt-24 md:mt-32 mb-1"> | ||
<div className="py-10 px-6 sm:px-12 md:px-20 lg:px-32 space-y-8 text-red-600 rounded-lg shadow-lg backdrop-blur-md"> | ||
<div className="flex items-center justify-start"> | ||
<button | ||
className="text-red-600 hover:text-red-800 flex items-center space-x-2" | ||
onClick={() => router.back()} | ||
> | ||
<svg | ||
className="w-5 h-5" | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke="currentColor" | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
d="M15 19l-7-7 7-7" | ||
/> | ||
</svg> | ||
<span>Back</span> | ||
</button> | ||
</div> | ||
<Text | ||
variant="h1" | ||
className={cn("text-4xl md:text-5xl font-bold text-center")} | ||
> | ||
Terms and Conditions | ||
</Text> | ||
<div className="space-y-6"> | ||
{legalInfo.Terms.map((terms, index) => ( | ||
<div | ||
key={index} | ||
className="border-gray-700 pb-2 mb-2 last:border-none last:pb-0 last:mb-0" | ||
> | ||
<Text | ||
variant="h3" | ||
className={cn( | ||
"text-2xl md:text-3xl font-semibold mb-1 text-gray-200" | ||
)} | ||
> | ||
{terms.title} | ||
</Text> | ||
<p className="text-base md:text-lg text-gray-400 leading-7 md:leading-8 text-justify"> | ||
{terms.description} | ||
</p> | ||
|
||
return ( | ||
<Container className="mx-auto mt-24 md:mt-32 mb-1"> | ||
<div className="py-10 px-6 sm:px-12 md:px-20 lg:px-32 space-y-8 text-red-600 rounded-lg shadow-lg backdrop-blur-md"> | ||
<BackButton /> | ||
<Text variant="h1" className={cn("text-4xl md:text-5xl font-bold text-center")}> | ||
Terms and Conditions | ||
</Text> | ||
<div className="space-y-6"> | ||
{legalInfo.Terms.map((terms, index) => ( | ||
<div | ||
key={index} | ||
className="border-gray-700 pb-2 mb-2 last:border-none last:pb-0 last:mb-0" | ||
> | ||
<Text | ||
variant="h3" | ||
className={cn("text-2xl md:text-3xl font-semibold mb-1 text-gray-200")} | ||
> | ||
{terms.title} | ||
</Text> | ||
<p className="text-base md:text-lg text-gray-400 leading-7 md:leading-8 text-justify"> | ||
{terms.description} | ||
</p> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
</Container> | ||
); | ||
</Container> | ||
); | ||
} |
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
Oops, something went wrong.