Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbristow committed Nov 21, 2024
1 parent 7570b37 commit 4c05ce9
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 42 deletions.
2 changes: 1 addition & 1 deletion src/app/context/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
41 changes: 41 additions & 0 deletions src/app/data/home.ts
Original file line number Diff line number Diff line change
@@ -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',
};
42 changes: 1 addition & 41 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4c05ce9

Please sign in to comment.