Skip to content

Commit

Permalink
style data pipeline grid cards
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewheeler committed Dec 10, 2024
1 parent f867540 commit 7badfbd
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions src/app/products/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,15 @@ interface DataPipelineCardProps {

function DataPipelineCard({ title, text, imgSrc }: DataPipelineCardProps) {
return (
<div className="min-h-[23.69rem] rounded border border-dashed border-[#224A58] bg-background p-8">
<Image
className="pb-4"
src={imgSrc}
width={88}
height={88}
alt={`${title} icon`}
/>
<div className="px-2 py-6">
<Image className="pb-4" src={imgSrc} width={60} height={60} alt="" />
<div className="flex flex-col gap-y-2">
<h3 className="font-bold">{title}</h3>
<p className="m-0 p-0">{text}</p>
<h3 className="font-['Public Sans'] text-base font-bold leading-snug text-[#14333d]">
{title}
</h3>
<p className="font-['Public Sans'] m-0 p-0 text-base font-normal leading-snug text-[#224a58]">
{text}
</p>
</div>
</div>
);
Expand All @@ -196,7 +194,10 @@ function DataPipelineGrid({ children }: DataPipelineGridProps) {

function DataPipeline() {
return (
<ContentContainer classes="bg-[#dae9ee] md:px-[10rem]">
<ContentContainer
classes="bg-[#dae9ee] md:px-[10rem]"
sectionClasses="bg-[#dae9ee]"
>
<div className="flex flex-col gap-y-6 pb-6">
<div className="flex flex-col gap-y-2">
<h2 className="text-[#14333d]">
Expand Down Expand Up @@ -231,6 +232,7 @@ function DataPipeline() {
imgSrc={`${basePath}/icons/products/validation.svg`}
/>
</DataPipelineGrid>
<Break />
<DataSectionText>For data enrichment</DataSectionText>
<DataPipelineGrid>
<DataPipelineCard
Expand All @@ -249,6 +251,7 @@ function DataPipeline() {
imgSrc={`${basePath}/icons/products/recordLinkage.svg`}
/>
</DataPipelineGrid>
<Break />
<DataSectionText>For data transformation</DataSectionText>
<DataPipelineGrid>
<DataPipelineCard
Expand Down Expand Up @@ -276,3 +279,11 @@ const DataSectionText = ({ children }: DataSectionText) => {
</p>
);
};

const Break = () => {
return (
<div className="py-10">
<hr className="border border-[#6499af]" />
</div>
);
};

0 comments on commit 7badfbd

Please sign in to comment.