Skip to content

Commit

Permalink
use image aspect ratio, make card wider
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewheeler committed Oct 28, 2024
1 parent 068ee85 commit 9c0df4c
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 33 deletions.
74 changes: 41 additions & 33 deletions src/app/our-products/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function StandaloneProducts() {
return (
<section className="usa-section">
<GridContainer>
<h2 className="ml-5">Standalone Products</h2>
<h2>Standalone Products</h2>
<CardGroup>
<Card
gridLayout={{
Expand All @@ -52,14 +52,16 @@ function StandaloneProducts() {
}}
containerProps={{ className: 'border-0' }}
>
<CardBody>
<CardBody className={styles.cardBody}>
<div className="flex flex-col gap-y-4">
<Image
src={`${basePath}/images/placeholder.png`}
width="540"
height="280"
alt="Placeholder"
/>
<div className="add-aspect-16x9">
<Image
src={`${basePath}/images/placeholder.png`}
width="540"
height="280"
alt="Placeholder"
/>
</div>
<h3>eCR Viewer</h3>
<p>
Graphic headings can be used a few different ways, depending
Expand All @@ -68,7 +70,7 @@ function StandaloneProducts() {
</p>
</div>
</CardBody>
<CardFooter>
<CardFooter className={styles.cardFooter}>
<Link href="#" className={classNames('usa-button', styles.btn)}>
Learn more about eCR Viewer
</Link>
Expand All @@ -82,14 +84,16 @@ function StandaloneProducts() {
}}
containerProps={{ className: 'border-0' }}
>
<CardBody>
<CardBody className={styles.cardBody}>
<div className="flex flex-col gap-y-4">
<Image
src={`${basePath}/images/placeholder.png`}
width="540"
height="280"
alt="Placeholder"
/>
<div className="add-aspect-16x9">
<Image
src={`${basePath}/images/placeholder.png`}
width="540"
height="280"
alt="Placeholder"
/>
</div>
<h3>Query Connector</h3>
<p>
Allows public health staff to query a wide network of
Expand All @@ -100,7 +104,7 @@ function StandaloneProducts() {
</p>
</div>
</CardBody>
<CardFooter>
<CardFooter className={styles.cardFooter}>
<Button type="button" disabled>
Learn more about Query Connector
</Button>
Expand All @@ -114,14 +118,16 @@ function StandaloneProducts() {
}}
containerProps={{ className: 'border-0' }}
>
<CardBody>
<CardBody className={styles.cardBody}>
<div className="flex flex-col gap-y-4">
<Image
src={`${basePath}/images/placeholder.png`}
width="540"
height="280"
alt="Placeholder"
/>
<div className="add-aspect-16x9">
<Image
src={`${basePath}/images/placeholder.png`}
width="540"
height="280"
alt="Placeholder"
/>
</div>
<h3>eCR Parser</h3>
<p>
Enables public health staff to extract relevant data from eCR
Expand All @@ -131,7 +137,7 @@ function StandaloneProducts() {
</p>
</div>
</CardBody>
<CardFooter>
<CardFooter className={styles.cardFooter}>
<Button type="button" disabled>
Learn more about eCR Parser
</Button>
Expand All @@ -145,14 +151,16 @@ function StandaloneProducts() {
}}
containerProps={{ className: 'border-0' }}
>
<CardBody>
<CardBody className={styles.cardBody}>
<div className="flex flex-col gap-y-4">
<Image
src={`${basePath}/images/placeholder.png`}
width="540"
height="280"
alt="Placeholder"
/>
<div className="add-aspect-16x9">
<Image
src={`${basePath}/images/placeholder.png`}
width="540"
height="280"
alt="Placeholder"
/>
</div>
<h3>eCR Refiner</h3>
<p>
Reduces eCR files down to only the most useful, necessary
Expand All @@ -162,7 +170,7 @@ function StandaloneProducts() {
</p>
</div>
</CardBody>
<CardFooter>
<CardFooter className={styles.cardFooter}>
<Button type="button" disabled>
Learn more about eCR Refiner
</Button>
Expand Down
4 changes: 4 additions & 0 deletions src/app/styles/OurProducts.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@

.dataPipelineImage {
max-height: 160px;
}

.cardBody, .cardFooter {
padding: 0;
}

0 comments on commit 9c0df4c

Please sign in to comment.