Changed the perks to the modules

This commit is contained in:
Tiago Ribeiro
2023-10-21 14:45:52 +01:00
parent 799abc813d
commit 4f62dd04d5
2 changed files with 52 additions and 59 deletions

View File

@@ -1,6 +1,17 @@
/* eslint-disable @next/next/no-img-element */
import Link from "next/link";
import {BsCardChecklist, BsClipboardFill, BsClockFill, BsInstagram, BsShieldFillCheck, BsTwitter} from "react-icons/bs";
import {
BsBook,
BsCardChecklist,
BsClipboardFill,
BsClockFill,
BsHeadphones,
BsInstagram,
BsMegaphone,
BsPen,
BsShieldFillCheck,
BsTwitter,
} from "react-icons/bs";
import {BiLogoFacebook} from "react-icons/bi";
import Navbar from "@/components/Navbar";
import Footer from "@/components/Footer";
@@ -24,43 +35,43 @@ export default function Home({language}: Props) {
</Link>
</section>
{/* Perks Section */}
{/* Modules Section */}
<section className="w-full bg-white">
<div className="w-full grid grid-rows-4 md:grid-rows-1 md:grid-cols-4 gap-8 p-8 md:p-24 container mx-auto">
<div className="flex flex-col items-center gap-6">
<div className="bg-mti-rose-ultralight border border-mti-rose-light p-6 rounded-3xl flex items-center justify-center">
<BsClockFill className="text-mti-rose-light w-10 h-10" />
<BsBook className="text-mti-rose-light w-10 h-10" />
</div>
<div className="flex flex-col gap-4 items-center text-center max-w-[240px]">
<span className="font-bold text-xl">{translation.perks["24_hour_access"].title[language]}</span>
<span>{translation.perks["24_hour_access"].description[language]}</span>
<div className="flex flex-col gap-4 items-center text-center max-w-[260px]">
<span className="font-bold text-xl">{translation.modules.reading.title[language]}</span>
<span>{translation.modules.reading.description[language]}</span>
</div>
</div>
<div className="flex flex-col items-center gap-6">
<div className="bg-mti-rose-ultralight border border-mti-rose-light p-6 rounded-3xl flex items-center justify-center">
<BsClipboardFill className="text-mti-rose-light w-10 h-10" />
<BsHeadphones className="text-mti-rose-light w-10 h-10" />
</div>
<div className="flex flex-col gap-4 items-center text-center max-w-[240px]">
<span className="font-bold text-xl">{translation.perks.complete_package.title[language]}</span>
<span>{translation.perks.complete_package.description[language]}</span>
<div className="flex flex-col gap-4 items-center text-center max-w-[260px]">
<span className="font-bold text-xl">{translation.modules.listening.title[language]}</span>
<span>{translation.modules.listening.description[language]}</span>
</div>
</div>
<div className="flex flex-col items-center gap-6">
<div className="bg-mti-rose-ultralight border border-mti-rose-light p-6 rounded-3xl flex items-center justify-center">
<BsCardChecklist className="text-mti-rose-light w-10 h-10" />
<BsPen className="text-mti-rose-light w-10 h-10" />
</div>
<div className="flex flex-col gap-4 items-center text-center max-w-[240px]">
<span className="font-bold text-xl">{translation.perks.enjoy_learning.title[language]}</span>
<span>{translation.perks.enjoy_learning.description[language]}</span>
<div className="flex flex-col gap-4 items-center text-center max-w-[260px]">
<span className="font-bold text-xl">{translation.modules.writing.title[language]}</span>
<span>{translation.modules.writing.description[language]}</span>
</div>
</div>
<div className="flex flex-col items-center gap-6">
<div className="bg-mti-rose-ultralight border border-mti-rose-light p-6 rounded-3xl flex items-center justify-center">
<BsShieldFillCheck className="text-mti-rose-light w-10 h-10" />
<BsMegaphone className="text-mti-rose-light w-10 h-10" />
</div>
<div className="flex flex-col gap-4 items-center text-center max-w-[240px]">
<span className="font-bold text-xl">{translation.perks.guaranteed_results.title[language]}</span>
<span>{translation.perks.guaranteed_results.description[language]}</span>
<div className="flex flex-col gap-4 items-center text-center max-w-[260px]">
<span className="font-bold text-xl">{translation.modules.speaking.title[language]}</span>
<span>{translation.modules.speaking.description[language]}</span>
</div>
</div>
</div>
@@ -177,23 +188,11 @@ export default function Home({language}: Props) {
</section>
{/* Partner and Accreditation Section */}
<section className="w-full bg-white">
{/* <section className="w-full bg-white">
<div className="p-8 md:p-20 xl:p-32 flex flex-col gap-8 md:gap-24 lg:gap-32 w-full container mx-auto">
<div className="flex flex-col gap-12 w-full">
<span className="text-white bg-mti-rose-light px-1 py-0 font-semibold w-fit">{translation.our_partners[language]}</span>
<div className="flex gap-9 flex-wrap -lg:justify-center items-center">
<img src="/logos/dq_logo.png" alt="DQ's Logo" className="w-48 h-48 xl:w-52 xl:h-52 shadow-lg rounded-xl" />
<img
src="/logos/knowledge_grid_academy_logo.png"
alt="Knowledge Grid Academy's Logo"
className="w-48 h-48 xl:w-52 xl:h-52 shadow-lg rounded-xl"
/>
<img src="/logos/sohar_logo.png" alt="Sohar's Logo" className="w-48 h-48 xl:w-52 xl:h-52 shadow-lg rounded-xl" />
<img
src="/logos/partner_logo_unknown.png"
alt="Unknown Partner's Logo"
className="w-48 h-48 xl:w-52 xl:h-52 shadow-lg rounded-xl"
/>
<div className="w-48 h-48 xl:w-52 xl:h-52 shadow-lg rounded-xl flex items-center justify-center">
<img src="/logos/sohar_aluminium_logo.png" alt="Sohar Aluminium's Logo" />
</div>
@@ -205,16 +204,10 @@ export default function Home({language}: Props) {
<div className="w-48 h-48 xl:w-52 xl:h-52 shadow-lg rounded-xl flex items-center justify-center">
<img src="/logos/idp_logo.png" alt="IDP's Logo" />
</div>
<div className="w-48 h-48 xl:w-52 xl:h-52 shadow-lg rounded-xl flex items-center justify-center">
<img src="/logos/ielts_logo.png" alt="IELTS's Logo" />
</div>
<div className="w-48 h-48 xl:w-52 xl:h-52 shadow-lg rounded-xl flex items-center justify-center">
<img src="/logos/ec_council_logo.png" alt="EC Council's Logo" />
</div>
</div>
</div>
</div>
</section>
</section> */}
<Footer language={language} />
</main>

View File

@@ -3,45 +3,45 @@
"en": "Get Started",
"ar": "البدء"
},
"perks": {
"24_hour_access": {
"modules": {
"reading": {
"title": {
"en": "24 hour access",
"ar": "وصول 24 ساعة"
"en": "Reading",
"ar": "قراءة"
},
"description": {
"en": "Always online, always ready to help you train.",
"ar": "متصل بالإنترنت دائمًا، ومستعد دائمًا لمساعدتك في التدريب."
"en": "Expand your vocabulary, improve your reading comprehension and improve your ability to interpret texts in English.",
"ar": "قم بتوسيع مفرداتك وتحسين فهمك للقراءة وتحسين قدرتك على تفسير النصوص باللغة الإنجليزية."
}
},
"complete_package": {
"listening": {
"title": {
"en": "Complete package",
"ar": "حزمة كاملة"
"en": "Listening",
"ar": "الاستماع"
},
"description": {
"en": "Every module is available at your fingertips.",
"ar": "كل وحدة متاحة في متناول يدك."
"en": "Improve your ability to follow conversations in English and your ability to understand different accents and intonations.",
"ar": "تحسين قدرتك على متابعة المحادثات باللغة الإنجليزية وقدرتك على فهم اللهجات والتنغيمات المختلفة."
}
},
"enjoy_learning": {
"writing": {
"title": {
"en": "Enjoy learning",
"ar": "يتمتع التعلم"
"en": "Writing",
"ar": "كتابة"
},
"description": {
"en": "Choose between a relaxed single module approach, or a competitive full exam one.",
"ar": "اختر بين منهج وحدة واحدة مريح أو اختبار تنافسي كامل."
"en": "Allow you to practice writing in a variety of formats, from simple paragraphs to complex essays.",
"ar": "تتيح لك ممارسة الكتابة بمجموعة متنوعة من التنسيقات، بدءًا من الفقرات البسيطة وحتى المقالات المعقدة."
}
},
"guaranteed_results": {
"speaking": {
"title": {
"en": "Guaranteed results",
"ar": "نتائج مضمونة"
"en": "Speaking",
"ar": "تكلم"
},
"description": {
"en": "You will improve your performance through your hard work.",
"ar": وف تقوم بتحسين أدائك من خلال عملك الجاد."
"en": "You'll have access to interactive dialogs, pronunciation exercises and speech recordings.",
"ar": يكون لديك إمكانية الوصول إلى مربعات الحوار التفاعلية وتمارين النطق وتسجيلات الكلام."
}
}
},