Skip to content

Commit

Permalink
content container, some work on home page
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewheeler committed Oct 31, 2024
1 parent 790e472 commit 1ea4382
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 40 deletions.
12 changes: 12 additions & 0 deletions src/app/components/ContentContainer/ContentContainer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { GridContainer } from '@trussworks/react-uswds';

interface ContentContainerProps {
children: React.ReactNode;
}
export function ContentContainer({ children }: ContentContainerProps) {
return (
<section>
<GridContainer className="px-14 py-20">{children}</GridContainer>
</section>
);
}
135 changes: 95 additions & 40 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import MarkdownContent from './components/MarkdownComponent/MarkdownComponent';
import { Grid } from '@trussworks/react-uswds';
import Image from 'next/image';
import { basePath } from './utils/constants';
import Hero from './components/Hero/Hero';
import InvitationCta from './components/InvitationCta/InvitationCta';
import { ContentContainer } from './components/ContentContainer/ContentContainer';
import Link from 'next/link';

export default async function Home() {
return (
Expand All @@ -15,46 +16,100 @@ export default async function Home() {
timely public health action using CDC's free, cloud-based products built
from Data Integration Building Blocks, or DIBBs."
/>
<section className="usa-section">
<div className="grid-container">
<Grid row>
<Grid col={5} className="flex-vertical-center padding-x-1">
<Image
src={`${basePath}/images/placeholder.png`}
width={480}
height={320}
alt="Placeholder"
/>
</Grid>
<Grid col={7}>{MarkdownContent('homepage/section_2.md')}</Grid>
</Grid>
</div>
</section>
<section className="usa-section">
<div className="grid-container">
<Grid row>
<Grid col={5}>{MarkdownContent('homepage/section_3.md')}</Grid>
<Grid col={7} className="flex-vertical-center padding-x-1">
<Image
src={`${basePath}/images/placeholder.png`}
width={525}
height={312}
alt="Placeholder"
/>
</Grid>
</Grid>
</div>
</section>
<section className="usa-section">
<div className="grid-container">
<Grid row>
<Grid col={12} className="flex-center">
{MarkdownContent('homepage/section_4.md')}
</Grid>
</Grid>
</div>
</section>

<SectionOne />
<SectionTwo />
<SectionThree />
<InvitationCta />
</>
);
}

function SectionOne() {
return (
<ContentContainer>
<Grid row gap>
<Image
className="max-h-[320px] max-w-[480px]"
src={`${basePath}/images/placeholder.png`}
width={480}
height={320}
alt="Placeholder"
/>
<div className="flex max-w-screen-md flex-col gap-5">
<h2 className="font-['Source Sans Pro'] text-[32px] font-bold text-[#224a58]">
Introducing Data Integration Building Blocks
</h2>
<div className="flex flex-col gap-2">
<p className="font-['Source Sans Pro'] m-0 max-w-[635px] p-0 text-base font-normal leading-relaxed text-[#224a58]">
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:
</p>
<ul className="font-['Source Sans Pro'] text-base font-semibold leading-relaxed text-[#224a58]">
<li>Better, higher quality data for use in data analysis</li>
<li>
Time-savings for public health staff thanks to reduced manual
work
</li>
<li>More usable data that makes case investigation easier</li>
<li>Automated data processing that streamlines data workflows</li>
<li>
Flexible cloud deployment options, including free central
hosting through CDC
</li>
</ul>
</div>
</div>
</Grid>
</ContentContainer>
);
}

function SectionTwo() {
return (
<ContentContainer>
<Grid row gap>
<div>
<h2 className="font-['Source Sans Pro'] max-w-[372px] text-[32px] font-bold text-[#224a58]">
Unlock the value of your jurisdiction's data
</h2>
<p className="font-['Source Sans Pro'] max-w-[450px] text-base font-normal leading-relaxed text-[#224a58]">
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.
</p>
<Link className="usa-button usa-button--active" href="/">
Find out more about our products
</Link>
</div>
<Image
className="max-h-[320px] max-w-[480px]"
src={`${basePath}/images/placeholder.png`}
width={480}
height={320}
alt="Placeholder"
/>
</Grid>
</ContentContainer>
);
}

function SectionThree() {
return (
<ContentContainer>
<div className="flex flex-col items-center">
<h2 className="font-['Source Sans Pro'] text-center text-[32px] font-bold text-[#224a58]">
Jurisdictions working with DIBBs
</h2>
<p className="font-['Source Sans Pro'] text-center text-base font-normal leading-relaxed text-[#224a58]">
State and local public health jurisdictions across the United States
used DIBBs to solve their toughest data challenges
</p>
</div>
</ContentContainer>
);
}

0 comments on commit 1ea4382

Please sign in to comment.