update areaDetail with data from d3 CDN (#547)

* update areaDetail with data from d3 CDN

- updated constants with d3 CDN info
- placed AreaDetail component in folder
- fixed J40Alert padding-left console warning
- added tests for both J40Alert rendering

* udpates FE to percentile data

* testing CORS on PR'd URL

* testing PR'd URL
This commit is contained in:
Vim 2021-08-18 08:47:34 -07:00 committed by GitHub
commit d449e9c554
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 85 additions and 40 deletions

View file

@ -1,156 +0,0 @@
@import "./utils.scss";
$sidePanelLabelFontColor: #171716;
$featureSelectBorderColor: #00bde3;
@mixin sidePanelLabelStyle {
font-size: small;
color: $sidePanelLabelFontColor;
font-weight: 600;
}
@mixin categorizationCircleStyle {
height: 0.6rem;
width: 0.6rem;
border-radius: 100%;
align-self: center;
margin-top: 0.8rem;
margin-right: 0.5rem;
opacity: 0.6;
}
.areaDetailContainer {
display: flex;
flex-direction: column;
}
// top row styles
.topRow {
display: flex;
}
.cumulativeIndexScore,
.categorization {
display: flex;
flex-direction: column;
align-items: center;
height: 7.7rem;
border-bottom: $sidePanelBorder;
flex: 1 0 50%;
padding-top: 2rem;
}
.topRowTitle,
.censusLabel {
@include sidePanelLabelStyle;
}
.topRowSubTitle {
font-size: small;
color: $sidePanelLabelFontColor;
}
.score {
font-size: xx-large;
font-weight: bolder;
}
.scoreSuperscript {
font-size: large;
padding-bottom: 1rem;
}
.categorization {
border-left: $sidePanelBorder;
}
.priority {
display: flex;
}
.prioritized {
@include categorizationCircleStyle;
background: #1a4480;
border: 1px solid $featureSelectBorderColor;
}
.threshold {
@include categorizationCircleStyle;
background: #d7dde7;
border: 1px solid $featureSelectBorderColor;
}
.nonPrioritized {
@include categorizationCircleStyle;
border: 1px solid $featureSelectBorderColor;
}
.prioritization {
font-size: large;
font-weight: bold;
padding-top: 0.8rem;
}
.censusRow {
display: flex;
flex-direction: column;
border-bottom: $sidePanelBorder;
list-style: none;
margin: 0;
}
//census row styles
.censusRow {
padding: 1rem;
}
.censusText,
.indicatorDescription {
font-size: small;
}
//Divider styles
.divider {
@include sidePanelLabelStyle;
display: flex;
justify-content: space-between;
border-bottom: $sidePanelBorder;
padding: 0.3rem 0.5rem 0.3rem 1rem;
background-color: #edeef0;
}
//Indicator box styles
.indicatorBox {
display: flex;
padding: 1.5rem 1rem;
border-bottom: $sidePanelBorder;
@media screen and (max-width: $mobileBreakpoint) {
justify-content: space-between;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
}
.indicatorBox:last-child {
border-bottom: none;
}
.indicatorTitle {
font-size: large;
font-weight: bolder;
}
.indicatorValue {
flex: 1 0 37%;
align-self: center;
padding-left: 2.4rem;
font-size: large;
@media screen and (max-width: $mobileBreakpoint) {
flex: 1 0 40%;
align-self: inherit;
padding-left: 3rem;
padding-top: 1rem;
}
}