-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init * remaining styling * fix conflicts
- Loading branch information
1 parent
2f9ff91
commit c10fca4
Showing
11 changed files
with
209 additions
and
7 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
.../modernization-ui/src/apps/dedup-config/MatchConfiguration/MatchConfiguration.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
@use 'styles/colors'; | ||
|
||
.wrapper { | ||
display: flex; | ||
margin-right: 1.5rem; | ||
height: 100vh; | ||
|
||
.header { | ||
background-color: colors.$base-white; | ||
padding: 1.5rem; | ||
display: flex; | ||
justify-content: space-between; | ||
|
||
.title { | ||
font-size: 1.375rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: normal; | ||
} | ||
|
||
.backButton { | ||
box-shadow: none; | ||
color: colors.$primary; | ||
} | ||
} | ||
|
||
.configurationListContainer { | ||
display: flex; | ||
gap: 1rem; | ||
} | ||
|
||
.configurationListTitle { | ||
font-size: 0.875rem; | ||
font-style: normal; | ||
font-weight: 500; | ||
line-height: 162%; | ||
color: colors.$base; | ||
} | ||
|
||
.configurationListIcon { | ||
width: 1.5; | ||
} | ||
|
||
.configurationList { | ||
background-color: colors.$base-white; | ||
margin-right: 1rem; | ||
display: flex; | ||
flex-direction: column; | ||
padding: 1.5rem 1rem; | ||
border-right: 1px solid colors.$base-lighter; | ||
width: 18.75rem; | ||
min-height: 100%; | ||
|
||
.noConfigurationText { | ||
font-size: 0.875rem; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 162%; | ||
color: colors.$base; | ||
} | ||
} | ||
|
||
.configurationDetails { | ||
width: 100rem; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
apps/modernization-ui/src/apps/dedup-config/MatchConfiguration/MatchConfiguration.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Button, Icon } from '@trussworks/react-uswds'; | ||
import styles from './MatchConfiguration.module.scss'; | ||
import NoPassConfigurations from './PassConfiguration/NoPassConfigurations'; | ||
|
||
const MatchConfiguration = () => { | ||
return ( | ||
<div className={styles.wrapper}> | ||
<div className={styles.configurationList}> | ||
<h3>Pass configurations</h3> | ||
<p className={styles.noConfigurationText}>No pass configurations have been created.</p> | ||
<Button unstyled type={'button'}> | ||
<Icon.Add /> | ||
Add new pass configuration | ||
</Button> | ||
</div> | ||
<div className={styles.configurationDetails}> | ||
<NoPassConfigurations /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default MatchConfiguration; |
26 changes: 26 additions & 0 deletions
26
...c/apps/dedup-config/MatchConfiguration/PassConfiguration/NoPassConfigurations.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@use 'styles/colors'; | ||
|
||
.content { | ||
padding: 1.5rem; | ||
background-color: colors.$base-white; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin-top: 1rem; | ||
width: 100%; | ||
|
||
.heading { | ||
font-family: 'Public Sans'; | ||
font-size: 1.375rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: normal; | ||
} | ||
|
||
.text { | ||
font-size: 0.875rem; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 162%; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...on-ui/src/apps/dedup-config/MatchConfiguration/PassConfiguration/NoPassConfigurations.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import styles from './NoPassConfigurations.module.scss'; | ||
|
||
const NoPassConfigurations = () => { | ||
return ( | ||
<div className={styles.content}> | ||
<h3 className={styles.heading}>No pass configurations have been created</h3> | ||
<p className={styles.text}> | ||
To get started, select <span>"Add pass configuration"</span> from the left panel. | ||
</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NoPassConfigurations; |
7 changes: 7 additions & 0 deletions
7
.../src/apps/dedup-config/MatchConfiguration/PassConfiguration/PassConfiguration.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@use 'styles/colors'; | ||
|
||
.criteria { | ||
background-color: colors.$base-white; | ||
margin-bottom: 1rem; | ||
padding: 1.5rem; | ||
} |
13 changes: 13 additions & 0 deletions
13
...ation-ui/src/apps/dedup-config/MatchConfiguration/PassConfiguration/PassConfiguration.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import styles from './PassConfiguration.module.scss'; | ||
|
||
const PassConfiguration = () => { | ||
return ( | ||
<div className={styles.configurationDetails}> | ||
<div className={styles.criteria}>Blocking criteria</div> | ||
<div className={styles.criteria}>Matching criteria</div> | ||
<div className={styles.matchingBounds}>Matching criteria</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PassConfiguration; |
21 changes: 21 additions & 0 deletions
21
apps/modernization-ui/src/apps/dedup-config/NoDataElements.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@use 'styles/colors'; | ||
|
||
.content { | ||
display: flex; | ||
padding: 1.5rem; | ||
flex-direction: column; | ||
align-items: center; | ||
background-color: colors.$base-white; | ||
margin: 1rem; | ||
|
||
.heading { | ||
font-size: 1.375rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: normal; | ||
} | ||
|
||
.configButton { | ||
margin-bottom: 2.25rem; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
apps/modernization-ui/src/apps/dedup-config/NoDataElementsContent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Button } from '@trussworks/react-uswds'; | ||
import styles from './NoDataElements.module.scss'; | ||
|
||
type Props = { | ||
onConfigClick: () => void; | ||
}; | ||
|
||
const NoDataElements = ({ onConfigClick }: Props) => { | ||
return ( | ||
<div className={styles.content}> | ||
<h3 className={styles.heading}>Data elements not configured</h3> | ||
<p> | ||
To get started configuring the algorithm, the data elements the algorithm will use must first be | ||
configured. | ||
</p> | ||
<Button type={'button'} onClick={onConfigClick} className={styles.configButton}> | ||
Configure data elements | ||
</Button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NoDataElements; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters