From 8c1ec834f312525645e62e3b0bd2715d5c9d895e Mon Sep 17 00:00:00 2001 From: Joao Ramos Date: Fri, 9 Feb 2024 18:03:52 +0000 Subject: [PATCH 1/5] Applied dir to all pages --- src/templates/About.tsx | 2 +- src/templates/ComingSoon.tsx | 2 +- src/templates/History.tsx | 2 +- src/templates/Home.tsx | 2 +- src/templates/Price.tsx | 5 ++--- src/templates/Privacy.tsx | 6 +++--- src/templates/Services.tsx | 2 +- src/templates/Terms.tsx | 6 +++--- 8 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/templates/About.tsx b/src/templates/About.tsx index 4b691c0..97ef04b 100644 --- a/src/templates/About.tsx +++ b/src/templates/About.tsx @@ -30,7 +30,7 @@ interface Props { export default function About({language}: Props) { return ( -
+
diff --git a/src/templates/ComingSoon.tsx b/src/templates/ComingSoon.tsx index 7fbaad3..7d0f437 100644 --- a/src/templates/ComingSoon.tsx +++ b/src/templates/ComingSoon.tsx @@ -20,7 +20,7 @@ interface Props { export default function ComingSoon({ page, language }: Props) { return ( -
+
diff --git a/src/templates/History.tsx b/src/templates/History.tsx index 8e1341c..cae76a3 100644 --- a/src/templates/History.tsx +++ b/src/templates/History.tsx @@ -50,7 +50,7 @@ const Element = ({date, label, isEven, language, Icon}: ElementProps) => { export default function History({language}: Props) { return ( -
+
diff --git a/src/templates/Home.tsx b/src/templates/Home.tsx index 5842291..056ad06 100644 --- a/src/templates/Home.tsx +++ b/src/templates/Home.tsx @@ -14,7 +14,7 @@ interface Props { export default function Home({language}: Props) { return ( -
+
diff --git a/src/templates/Price.tsx b/src/templates/Price.tsx index f1cec90..3a8eb98 100644 --- a/src/templates/Price.tsx +++ b/src/templates/Price.tsx @@ -40,10 +40,9 @@ export default function Page({language}: {language: "en" | "ar"}) { getData(); }, []); return ( -
+
- -
+

{translation.title[language]}

{payments.map((p) => ( diff --git a/src/templates/Privacy.tsx b/src/templates/Privacy.tsx index 8783ad8..71f7e44 100644 --- a/src/templates/Privacy.tsx +++ b/src/templates/Privacy.tsx @@ -22,16 +22,16 @@ interface Content { export default function Privacy({language}: Props) { return ( -
+
-
+
{translation.title[language]}
-
+
+
diff --git a/src/templates/Terms.tsx b/src/templates/Terms.tsx index 18c76c3..494b16d 100644 --- a/src/templates/Terms.tsx +++ b/src/templates/Terms.tsx @@ -22,16 +22,16 @@ interface Content { export default function Terms({language}: Props) { return ( -
+
-
+
{translation.title[language]}
-
+
Date: Mon, 12 Feb 2024 11:30:51 +0000 Subject: [PATCH 2/5] Updated Join us translations --- src/translation/home.json | 6 +----- src/translation/navbar.json | 2 +- src/translation/price.json | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/translation/home.json b/src/translation/home.json index 9428d4d..4bc414e 100644 --- a/src/translation/home.json +++ b/src/translation/home.json @@ -57,10 +57,6 @@ "description": { "en": "Our algorithms provide speedy results and evaluate the test, providing a brief feedback on areas that are strong and the areas where improvement is needed. So there is no need to pay a hefty amount to a tutor and spend hours upon hours to review your performance. With EnCoach, you receive the evaluation within seconds.", "ar": "خوارزمياتنا توفر نتائج وتقييم سريع للاختبار، وتقدم ملاحظات موجزًة على الجوانب التي تتميز بها والجوانب التي تحتاج إلى تحسين. لذا ليس هناك حاجة لدفع مبلغ ضخم لمدرس وقضاء ساعات وساعات في مراجعة أدائك. مع إنكوتش، ستتلقى التقييم في غضون ثوانٍ." - }, - "join": { - "en": "Join", - "ar": "انضم" } }, "learn_more": { @@ -121,4 +117,4 @@ "en": "Accreditation", "ar": "الاعتمادات الأكاديمية" } -} \ No newline at end of file +} diff --git a/src/translation/navbar.json b/src/translation/navbar.json index 08e6609..be1a8e0 100644 --- a/src/translation/navbar.json +++ b/src/translation/navbar.json @@ -28,7 +28,7 @@ "ar": "منصة انكوتش" }, "join": { - "en": "Join", + "en": "Sign up", "ar": "انضم إلينا" } } \ No newline at end of file diff --git a/src/translation/price.json b/src/translation/price.json index 4596fd1..a0abc15 100644 --- a/src/translation/price.json +++ b/src/translation/price.json @@ -1,6 +1,6 @@ { "joinus": { - "en": "Join us", + "en": "Sign up", "ar": "انضم إلينا" }, "title": { From 80c0a9e21c189d37517ffaff3b039a87656755bd Mon Sep 17 00:00:00 2001 From: Joao Ramos Date: Mon, 12 Feb 2024 11:36:19 +0000 Subject: [PATCH 3/5] Removed /join legacy page --- src/app/join/page.tsx | 28 ---------------------------- src/app/layout.tsx | 3 --- src/components/Navbar.tsx | 6 +----- src/components/PricingTable.tsx | 23 ----------------------- src/templates/Home.tsx | 2 +- 5 files changed, 2 insertions(+), 60 deletions(-) delete mode 100644 src/app/join/page.tsx delete mode 100644 src/components/PricingTable.tsx diff --git a/src/app/join/page.tsx b/src/app/join/page.tsx deleted file mode 100644 index e8270d7..0000000 --- a/src/app/join/page.tsx +++ /dev/null @@ -1,28 +0,0 @@ -/* eslint-disable @next/next/no-img-element */ -import Link from "next/link"; -import {BsInstagram, BsTwitter} from "react-icons/bs"; -import {BiLogoFacebook} from "react-icons/bi"; -import Navbar from "@/components/Navbar"; -import PricingTable from "@/components/PricingTable"; -import Footer from "@/components/Footer"; - -export default function Home() { - return ( -
- - -
-

Available Packages

-
- - Once the payment process is complete, you will receive a code via e-mail to register to the application. - - (Or have time added to your account, if already registered with the given e-mail). - -
-
- -
-
- ); -} diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 0553799..e3b998c 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -26,9 +26,6 @@ export default function RootLayout({children}: {children: React.ReactNode}) { httpEquiv="Content-Security-Policy-Report-Only" content="default-src 'self' *.stripe.com *.encoach.com staging.encoach.com localhost" /> - -