Allows the user to download CBG list (#318)

* adds initial download CBG box

* componentize download packet, adds e2e tests

* changes download file url in test to smaller size

* improve testing functions

* removes underline, colors icon

* replace csv with zip for safari security issue
This commit is contained in:
Vim 2021-07-15 11:01:10 -07:00 committed by GitHub
commit 33c3288160
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 195 additions and 24 deletions

View file

@ -1,5 +1,12 @@
$primary-color: #112f4e;
.disclaimer {
margin-top: 24px;
margin-bottom: 21px;
margin-left: 49px;
display: flex;
flex-wrap: wrap;
line-height: 25px;
.textBox {
flex: 2;
max-width: 700px;
}
}

View file

@ -1,6 +1,7 @@
declare namespace CejstModuleScssNamespace {
export interface ICejstModuleScss {
disclaimer: string;
textBox: string;
}
}

View file

@ -3,37 +3,58 @@ import Layout from '../components/layout';
import MapWrapper from '../components/mapWrapper';
import HowYouCanHelp from '../components/HowYouCanHelp';
import MapLegend from '../components/mapLegend';
import DownloadPacket from '../components/downloadPacket';
import * as styles from './cejst.module.scss';
interface IMapPageProps {
location: Location;
}
const CEJSTPage = ({location}: IMapPageProps) => {
// We temporarily removed MapControls, which would enable you to `setFeatures` also, for now
// We will bring back later when we have interactive controls.
return (
<Layout location={location}>
<main id="main-content" role="main">
<h2>Just Progress communities</h2>
<p className={styles.disclaimer}>
Just Progress helps identify and prioritize communities across the
United States and U.S. territories that have been historically
overburdened and underserved. These communities will receive 40% of
the benefits from investments in key areas outlined by the
<a
href={'https://www.whitehouse.gov/briefing-room/' +
'presidential-actions/2021/01/27/' +
'executive-order-on-tackling-the-climate-' +
'crisis-at-home-and-abroad/'}
target={'_blank'}
rel={'noreferrer'}>
Executive Order on Tackling the Climate Crisis at Home and
Abroad</a>.
</p>
<section>
<h2>Just Progress communities</h2>
<div className={styles.disclaimer}>
<div className={styles.textBox}>
<p>
Just Progress helps identify and prioritize communities across the United States and U.S. territories
that have been historically overburdened and underserved. These communities will receive 40% of
the benefits from investments in key areas outlined by the
&nbsp;
<a
href={'https://www.whitehouse.gov/briefing-room/' +
'presidential-actions/2021/01/27/' +
'executive-order-on-tackling-the-climate-' +
'crisis-at-home-and-abroad/'}
target={'_blank'}
rel={'noreferrer'}>
Executive Order on Tackling the Climate Crisis at Home and Abroad
</a>.
</p>
<p>
Download the Just Progress packet or explore the map below to see the list of prioritized communites. To
learn more about how these communities were prioritized check out the
&nbsp;
<a
href={'./methodology'}>
Methodology
</a>
&nbsp;
page.
</p>
</div>
<DownloadPacket />
</div>
</section>
<h2>Explore the Tool</h2>
<MapWrapper/>
<MapWrapper />
<MapLegend />
<HowYouCanHelp />
</main>