Updated the code to allow for images
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user