diff --git a/client/src/components/AboutCard/AboutCard.test.tsx b/client/src/components/AboutCard/AboutCard.test.tsx
new file mode 100644
index 00000000..51edbcb2
--- /dev/null
+++ b/client/src/components/AboutCard/AboutCard.test.tsx
@@ -0,0 +1,22 @@
+import * as React from 'react';
+import {render} from '@testing-library/react';
+import {LocalizedComponent} from '../../test/testHelpers';
+import AboutCard from './AboutCard';
+
+describe('rendering of the AboutCard', () => {
+ const {asFragment} = render(
+
+
+ Content body of the action card.
+
+ ,
+ );
+
+ it('checks if component renders', () => {
+ expect(asFragment()).toMatchSnapshot();
+ });
+});
diff --git a/client/src/components/AboutCard/AboutCard.tsx b/client/src/components/AboutCard/AboutCard.tsx
new file mode 100644
index 00000000..4821515e
--- /dev/null
+++ b/client/src/components/AboutCard/AboutCard.tsx
@@ -0,0 +1,77 @@
+import React from 'react';
+import {Grid} from '@trussworks/react-uswds';
+
+// the "body" section is the child object to allow for html versus just text
+interface AboutCardProps {
+ imgSrc: string;
+ header: string;
+ size?: 'small' | 'large';
+ actionText?: string;
+ actionUrl?: string;
+ actionOpenInNewTab?: boolean;
+ className?: string;
+}
+
+const AboutCard = (props: React.PropsWithChildren) => {
+ if (props.size === 'large') {
+ // large are the cards on top
+ // note it uses a top className='j40-aboutcard-lg-card'
+ return (
+
+
+
+
+
+
+
+
+
{props.header}
+
{props.children}
+
+
+
+
+
+ );
+ } else {
+ // small are the cards on the bottom
+ // note it uses a top className='j40-aboutcard-sm-card'
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Download the screening tool’s draft list of prioritized
+ communities and information on how to use it for your program in
+ the future on the data and methodology page.
+
-
-
-
-
+
+ Find your community or communities that you may be familiar with
+ and check their prioritization information on the map.
+
+
+
+
+
+
+
+
+ Have ideas about how to acknowledge the on-the-ground experiences
+ of your community?
+
+
+
+ The screening tool’s code is open source, which means it is
+ available for the public to view and contribute to. Anyone can
+ view and contribute on GitHub.
+
+ );
};
diff --git a/client/src/styles/global.scss b/client/src/styles/global.scss
index 06cecaf8..055b7e4f 100644
--- a/client/src/styles/global.scss
+++ b/client/src/styles/global.scss
@@ -29,43 +29,12 @@ $theme-font-role-heading: "sans";
// Custom SASS/CSS goes here
$j40-max-width: 80ex;
$primary-color: #112f4e;
+$j40-blue-background-color: #EFF6FB;
#main-content {
border-top: 0;
}
-.j40-two-column {
- overflow: hidden;
- padding: 0;
-
- @media (min-width: 40em) {
- column-count: 2;
- column-gap: 1em;
- }
- @media (max-width: 40em) {
- column-count: 1;
- column-gap: 0;
- }
-}
-
-.j40-two-column > * {
- display: inline-flex;
- width: 90%;
- padding-bottom: 1.2em; /* space between items */
- padding-left: 1em;
-}
-
-.j40-two-column-icons-spacing {
- padding-right: 1em;
- width: 2.3em;
- max-width: revert;
-}
-
-.j40-two-column-confine {
- display: inline-flex;
- max-width: fit-content;
-}
-
@include at-media("mobile-lg") {
.j40-grid-container {
line-height: 1.5rem;
@@ -198,6 +167,25 @@ $primary-color: #112f4e;
}
}
+// we can use to to make all section headers consistent
+.j40-section-sm-header {
+ font-weight: bold;
+ padding-bottom: 0.24rem;
+ padding-right: 0.24rem;
+}
+
+.j40-section-sm-body {
+ line-height: 1.5;
+ padding-bottom: 1.2rem;
+ padding-right: 1.2rem;
+
+}
+
+.j40-section-sm-footer {
+ padding-bottom: 0.5rem;
+}
+
+
// This should really be part of uswds and use $theme-step-indicator-segment-color-complete
// The Progress element doesn't really support color changing the line connecting progress
// (like the Steps element does) and the checkbox.
@@ -337,6 +325,7 @@ $primary-color: #112f4e;
list are not affected (e.g.