2025-07-02 16:39:16 -04:00
|
|
|
import InfoCard from '../components/InfoCard';
|
2025-07-03 13:35:22 -04:00
|
|
|
import Tagline from "../components/Tagline";
|
2025-07-09 15:25:28 -04:00
|
|
|
import InlineLink from "../components/InlineLink";
|
2025-07-29 17:41:13 -04:00
|
|
|
import Navbar from '@/components/Navbar';
|
|
|
|
|
import Footer from '@/components/Footer';
|
2025-06-30 15:54:10 -04:00
|
|
|
|
2025-11-24 08:28:31 -05:00
|
|
|
import { getClient } from "@/lib/graphqlClient";
|
|
|
|
|
import { gql } from "@apollo/client";
|
|
|
|
|
|
|
|
|
|
const HOME_GET_DATA_QUERY = gql`
|
|
|
|
|
query {
|
|
|
|
|
homePage {
|
|
|
|
|
headline
|
|
|
|
|
section1Header
|
|
|
|
|
section1Body
|
|
|
|
|
section1Cta
|
|
|
|
|
section2Header
|
|
|
|
|
section2Body
|
|
|
|
|
section2Cta
|
|
|
|
|
section3Header
|
|
|
|
|
section3Body
|
|
|
|
|
section3Cta
|
|
|
|
|
section4Header
|
|
|
|
|
section4Body
|
|
|
|
|
section4Cta
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export default async function Home() {
|
|
|
|
|
const { data } = await getClient().query({
|
|
|
|
|
query: HOME_GET_DATA_QUERY,
|
|
|
|
|
});
|
|
|
|
|
|
2025-06-30 15:54:10 -04:00
|
|
|
return (
|
|
|
|
|
<>
|
2025-07-30 16:31:41 -04:00
|
|
|
<Navbar collapseHeight={730} />
|
2025-07-03 13:35:22 -04:00
|
|
|
<Tagline
|
2025-07-16 17:27:22 -04:00
|
|
|
bgColor="bg-bluemana"
|
|
|
|
|
textColor="text-deepcove"
|
2025-07-03 13:35:22 -04:00
|
|
|
textTop="Healthcare that's"
|
|
|
|
|
textBottom="truly affordable"
|
|
|
|
|
/>
|
2025-07-23 13:57:45 -04:00
|
|
|
<div className="pt-4">
|
|
|
|
|
<InfoCard
|
2025-11-24 08:28:31 -05:00
|
|
|
title={data.homePage.section1Header}
|
|
|
|
|
learnMoreUrl={data.homePage.section1Cta}
|
2025-07-23 13:57:45 -04:00
|
|
|
imageUrl="/images/members-stock.jpg"
|
|
|
|
|
>
|
2025-11-24 08:28:31 -05:00
|
|
|
{data.homePage.section1Body}
|
2025-07-23 13:57:45 -04:00
|
|
|
</InfoCard>
|
|
|
|
|
</div>
|
2025-07-16 17:27:22 -04:00
|
|
|
<div className='bg-atmosphere rounded-3xl'>
|
2025-07-02 16:39:16 -04:00
|
|
|
<InfoCard
|
2025-11-24 08:28:31 -05:00
|
|
|
title={data.homePage.section2Header}
|
|
|
|
|
learnMoreUrl={data.homePage.section2Cta}
|
2025-07-09 15:25:28 -04:00
|
|
|
imageUrl='/images/employers-stock.jpg'
|
2025-07-08 14:57:06 -04:00
|
|
|
invert
|
2025-06-30 15:54:10 -04:00
|
|
|
>
|
2025-11-24 08:28:31 -05:00
|
|
|
{data.homePage.section2Body}
|
2025-07-02 16:39:16 -04:00
|
|
|
</InfoCard>
|
2025-06-30 15:54:10 -04:00
|
|
|
</div>
|
2025-07-02 16:39:16 -04:00
|
|
|
<InfoCard
|
2025-11-24 08:28:31 -05:00
|
|
|
title={data.homePage.section3Header}
|
|
|
|
|
learnMoreUrl={data.homePage.section3Cta}
|
2025-07-09 15:25:28 -04:00
|
|
|
imageUrl="/images/providers-stock.jpg"
|
2025-06-30 15:54:10 -04:00
|
|
|
>
|
2025-11-24 08:28:31 -05:00
|
|
|
{data.homePage.section3Body}
|
2025-07-02 16:39:16 -04:00
|
|
|
</InfoCard>
|
2025-07-16 17:27:22 -04:00
|
|
|
<div className='bg-platinum rounded-3xl'>
|
2025-07-02 16:39:16 -04:00
|
|
|
<InfoCard
|
2025-11-24 08:28:31 -05:00
|
|
|
title={data.homePage.section4Header}
|
|
|
|
|
learnMoreUrl={data.homePage.section4Cta}
|
2025-07-09 15:25:28 -04:00
|
|
|
imageUrl="/images/brokers-stock.jpg"
|
2025-07-08 14:57:06 -04:00
|
|
|
invert
|
2025-06-30 15:54:10 -04:00
|
|
|
>
|
2025-11-24 08:28:31 -05:00
|
|
|
{data.homePage.section4Body}
|
2025-07-02 16:39:16 -04:00
|
|
|
</InfoCard>
|
2025-06-30 15:54:10 -04:00
|
|
|
</div>
|
2025-07-29 17:41:13 -04:00
|
|
|
<Footer />
|
2025-06-30 15:54:10 -04:00
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
}
|