mirror of
https://github.com/OwethuManagedServices/oms-website-nextjs.git
synced 2026-02-04 17:37:42 +00:00
25-05-2025/New Changes
This commit is contained in:
@ -39,9 +39,10 @@ export default async function HomePage() {
|
||||
buttonText={data.hero_buttons?.[0]?.label || "Learn More"} // Use optional chaining and provide a default
|
||||
buttonHref={data.hero_buttons?.[0]?.link || "/about"} // Use optional chaining and provide a default
|
||||
imageUrl={
|
||||
data.hero_cover
|
||||
? `${process.env.DIRECTUS_API_ENDPOINT}/assets/${data.hero_cover}`
|
||||
: "/hero-bg.jpg"
|
||||
// data.hero_cover
|
||||
// ? `${process.env.DIRECTUS_API_ENDPOINT}/assets/${data.hero_cover}`
|
||||
// : "/hero-bg-2.jpg"
|
||||
"/banner-1.jpeg"
|
||||
} // Use optional chaining and provide a default
|
||||
/>
|
||||
<CoreServicesSection
|
||||
|
||||
Reference in New Issue
Block a user