Updated the code to allow for images

This commit is contained in:
Tiago Ribeiro
2024-04-01 00:50:53 +01:00
parent 1c5f16d42b
commit 3359c47379
24 changed files with 91 additions and 49 deletions

View File

@@ -22,7 +22,11 @@ export default function Home({language, data}: Props) {
<Navbar currentPage="/" language={language} />
<section className="w-full relative bg-white">
<img src="/banner_encoach_home.png" alt="IELTS Packages - Together we prepare for the future" className="w-full" />
<img
src={data.Banner?.url || "/banner_encoach_home.png"}
alt={data.Banner?.alternativeText ?? "IELTS Packages - Together we prepare for the future"}
className="w-full"
/>
<Link href={language === "ar" ? "/ar/price" : "/price"}>
<button className="absolute bottom-1/12 -lg:hidden left-1/12 bg-mti-purple-light hover:bg-mti-purple text-white rounded-xl px-8 py-4 transition ease-in-out duration-300 shadow">
{data.GetStartedButton}