diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 72f94e9..c779b09 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -28,7 +28,7 @@ export default function Navbar({currentPage, language}: {currentPage: string; la EnCoach logo -
+
{items.map((item) => ( +
@@ -86,12 +86,12 @@ export default function About({language}: Props) { {/* CEO Message Section */}
-
+
{translation.ceo_message.title[language]} {translation.ceo_message.text[language].split("\n").map((line, index) => ( -

{line}

+

{line}


))} @@ -115,12 +115,8 @@ export default function About({language}: Props) { {/* Capabilities */}
-
-
+
+
{translation.capabilities.title[language]}
{translation.capabilities.intro[language]} @@ -182,12 +178,8 @@ export default function About({language}: Props) { {/* Expertise */}
-
-
+
+
{translation.expertise.title[language]}
{translation.expertise.intro[language]} 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 069718a..a25ad3a 100644 --- a/src/templates/Home.tsx +++ b/src/templates/Home.tsx @@ -14,7 +14,9 @@ interface Props { export default function Home({language}: Props) { return ( -
+
@@ -169,7 +171,7 @@ export default function Home({language}: Props) {
-
+
diff --git a/src/templates/Price.tsx b/src/templates/Price.tsx index 6eb5137..582ccc2 100644 --- a/src/templates/Price.tsx +++ b/src/templates/Price.tsx @@ -62,10 +62,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]}
-
+
string) => - data.map((section, index) => ( -
-
-
- {section.title} -
- {section.description} -
- {section.bullets.map((bullet) => ( -
-
- {bullet.icon && ( - - )} -
-
- - {bullet.title} - -
    - {bullet.values.map((value) => ( -
  • {value}
  • - ))} -
-
-
- ))} -
-
-
- )); + const renderStruct = (data: SectionStruct[], getBackgroundColor: (index: number) => string) => + data.map((section, index) => ( +
+
+
+ {section.title} +
+ {section.description} +
+ {section.bullets.map((bullet) => ( +
+
+ {bullet.icon && } +
+
+ {bullet.title} +
    + {bullet.values.map((value) => ( +
  • {value}
  • + ))} +
+
+
+ ))} +
+
+
+ )); - return ( -
- -
-
- {translation.services[language]} -
-
- {renderStruct( - struct, - (index: number) => `bg-${index % 2 ? "mti-gray-seasalt" : "white"}` - )} -
-
- - {translation.corporate_educational_institutions[language]} - -
-
- {renderStruct( - final_struct, - (index: number) => `bg-${index % 2 ? "white" : "mti-gray-seasalt"}` - )} -
-
- ); + return ( +
+ +
+
+ {translation.services[language]} +
+
+ {renderStruct(struct, (index: number) => `bg-${index % 2 ? "mti-gray-seasalt" : "white"}`)} +
+
+ {translation.corporate_educational_institutions[language]} +
+
+ {renderStruct(final_struct, (index: number) => `bg-${index % 2 ? "white" : "mti-gray-seasalt"}`)} +
+
+ ); } 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]}
-
+