From 4c05ce98245c9c1af01b21332fc89a902b7e1426 Mon Sep 17 00:00:00 2001 From: nickbristow Date: Thu, 21 Nov 2024 10:48:19 -0500 Subject: [PATCH] fix build error --- src/app/context/index.tsx | 2 +- src/app/data/home.ts | 41 ++++++++++++++++++++++++++++++++++++++ src/app/page.tsx | 42 +-------------------------------------- 3 files changed, 43 insertions(+), 42 deletions(-) create mode 100644 src/app/data/home.ts diff --git a/src/app/context/index.tsx b/src/app/context/index.tsx index c3bf3b3..9b9197a 100644 --- a/src/app/context/index.tsx +++ b/src/app/context/index.tsx @@ -2,7 +2,7 @@ import { createContext, useState, useContext } from 'react'; import { usePathname } from 'next/navigation'; -import { homePageHero } from '../page'; +import { homePageHero } from '../data/home'; interface HeroContent { heroContent: { diff --git a/src/app/data/home.ts b/src/app/data/home.ts new file mode 100644 index 0000000..a0fa0d5 --- /dev/null +++ b/src/app/data/home.ts @@ -0,0 +1,41 @@ +export const homeContent = { + dibbs: { + title: 'Introducing Data Integration Building Blocks', + description: + 'DIBBs are modular, open-source software that can be configured to clean, transform, and enrich data. We build cloud-enabled products that leverage DIBBs to provide the following benefits to public health jurisdictions:', + benefits: [ + 'Better, higher quality data for use in data analysis', + 'Time-savings for public health staff thanks to reduced manual work', + 'More usable data that makes case investigation easier', + 'Automated data processing that streamlines data workflows', + 'Flexible cloud deployment options, including free central hosting through CDC', + ], + }, + valueSection: { + title: "Unlock the value of your jurisdiction's data", + description: + 'DIBBs products help jurisdictions make the most of their data. From improving the usability of electronic case reporting (eCR) data to streamlining data collection from healthcare providers without the need for a direct connection, our products save jurisdictions time and effort for case investigation and analysis.', + ctaText: 'Find out more about our products', + ctaHref: '/products', + }, + jurisdictions: { + title: 'Jurisdictions working with DIBBs', + description: + 'State and local public health jurisdictions across the United States used DIBBs to solve their toughest data challenges', + }, + cta: { + title: 'Interested in getting started with DIBBs?', + description: + 'Contact our team to learn more about how our products can help improve your data workflows', + ctaText: 'Engage with us', + ctaHref: '/engage-with-us', + }, +}; + +export const homePageHero = { + header: + 'Improve the way your jurisdiction collects, processes, and views public health data', + subheader: + "Turn your jurisdiction's data into meaningful intelligence that drives timely public health action using CDC's free, cloud-based products built from Data Integration Building Blocks, or DIBBs.", + heroClass: 'homepage-hero', +}; diff --git a/src/app/page.tsx b/src/app/page.tsx index 5665b9a..16269f1 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -6,47 +6,7 @@ import Carousel from './components/Carousel/Carousel'; import { ContentContainer } from './components/ContentContainer/ContentContainer'; import { LinkButton } from './components/LinkButton/LinkButton'; import { useHeroInit } from './hooks/useHeroInit'; -const homeContent = { - dibbs: { - title: 'Introducing Data Integration Building Blocks', - description: - 'DIBBs are modular, open-source software that can be configured to clean, transform, and enrich data. We build cloud-enabled products that leverage DIBBs to provide the following benefits to public health jurisdictions:', - benefits: [ - 'Better, higher quality data for use in data analysis', - 'Time-savings for public health staff thanks to reduced manual work', - 'More usable data that makes case investigation easier', - 'Automated data processing that streamlines data workflows', - 'Flexible cloud deployment options, including free central hosting through CDC', - ], - }, - valueSection: { - title: "Unlock the value of your jurisdiction's data", - description: - 'DIBBs products help jurisdictions make the most of their data. From improving the usability of electronic case reporting (eCR) data to streamlining data collection from healthcare providers without the need for a direct connection, our products save jurisdictions time and effort for case investigation and analysis.', - ctaText: 'Find out more about our products', - ctaHref: '/products', - }, - jurisdictions: { - title: 'Jurisdictions working with DIBBs', - description: - 'State and local public health jurisdictions across the United States used DIBBs to solve their toughest data challenges', - }, - cta: { - title: 'Interested in getting started with DIBBs?', - description: - 'Contact our team to learn more about how our products can help improve your data workflows', - ctaText: 'Engage with us', - ctaHref: '/engage-with-us', - }, -}; - -export const homePageHero = { - header: - 'Improve the way your jurisdiction collects, processes, and views public health data', - subheader: - "Turn your jurisdiction's data into meaningful intelligence that drives timely public health action using CDC's free, cloud-based products built from Data Integration Building Blocks, or DIBBs.", - heroClass: 'homepage-hero', -}; +import { homePageHero, homeContent } from './data/home'; export default function Home() { useHeroInit(homePageHero);