diff --git a/client/src/components/__snapshots__/scoreStepsList.test.tsx.snap b/client/src/components/__snapshots__/scoreStepsList.test.tsx.snap new file mode 100644 index 00000000..7c8c915f --- /dev/null +++ b/client/src/components/__snapshots__/scoreStepsList.test.tsx.snap @@ -0,0 +1,123 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`rendering of the component should match the snapshot of the MapIntroduction component 1`] = ` + +
+ +
+
+`; diff --git a/client/src/components/scoreStepsList.test.tsx b/client/src/components/scoreStepsList.test.tsx new file mode 100644 index 00000000..07db0b70 --- /dev/null +++ b/client/src/components/scoreStepsList.test.tsx @@ -0,0 +1,16 @@ +import * as React from 'react'; +import {render} from '@testing-library/react'; +import ScoreStepsList from './scoreStepsList'; +import {LocalizedComponent} from '../test/testHelpers'; + +describe('rendering of the component', () => { + const {asFragment} = render( + + + , + ); + + it('should match the snapshot of the MapIntroduction component', () => { + expect(asFragment()).toMatchSnapshot(); + }); +}); diff --git a/client/src/components/scoreStepsList.tsx b/client/src/components/scoreStepsList.tsx new file mode 100644 index 00000000..ed442978 --- /dev/null +++ b/client/src/components/scoreStepsList.tsx @@ -0,0 +1,88 @@ +import React from 'react'; +import {GridContainer, Grid} from '@trussworks/react-uswds'; + +const ScoreStepsList = () => { + return (<> +
+ +
+ + ); +}; + +export default ScoreStepsList; diff --git a/client/src/pages/methodology.tsx b/client/src/pages/methodology.tsx index 772c2a9f..6db5d380 100644 --- a/client/src/pages/methodology.tsx +++ b/client/src/pages/methodology.tsx @@ -5,6 +5,7 @@ import AlertWrapper from '../components/AlertWrapper'; import DatasetContainer from '../components/DatasetContainer'; import J40MainGridContainer from '../components/J40MainGridContainer'; import Layout from '../components/layout'; +import ScoreStepsList from '../components/scoreStepsList'; interface MethodPageProps { location: Location; @@ -61,6 +62,11 @@ const IndexPage = ({location}: MethodPageProps) => { + + + + + ); }; diff --git a/client/src/styles/global.scss b/client/src/styles/global.scss index ce63d3c5..b16209ef 100644 --- a/client/src/styles/global.scss +++ b/client/src/styles/global.scss @@ -68,6 +68,7 @@ $primary-color: #112f4e; @include at-media("mobile-lg") { .j40-grid-container { + line-height: 1.5rem; padding-right: 0; } } @@ -102,9 +103,9 @@ $primary-color: #112f4e; // this actual site logo .sitelogo { float: left; // allows vertical centering on logo and text - margin-right: 0.5em; // space between logo and text - width: 4em; - padding: 0.5em; // this will change the size of the logo too + margin-right: 0.5rem; // space between logo and text + width: 4rem; + padding: 0.5rem; // this will change the size of the logo too } // nav menu item font @@ -191,6 +192,7 @@ $primary-color: #112f4e; h1 { font-size: 2.7rem; } + h2 { font-size: 1.46rem; } @@ -217,7 +219,7 @@ $primary-color: #112f4e; h3, h4 { font-family: Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, - sans-serif; + sans-serif; } p, @@ -329,3 +331,89 @@ $primary-color: #112f4e; } } } + + +/* the > is for child only syntax in css. This is required so that lists that are nested under the + list are not affected (e.g.