-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from TritonSE/feature/step4Application
Feature/step4 application
- Loading branch information
Showing
12 changed files
with
597 additions
and
8 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,47 @@ | ||
.dropDown { | ||
cursor: pointer; | ||
background-color: white; | ||
font-size: 16px; | ||
color: var(--color-ccidc-placeholder); | ||
height: 40px; | ||
|
||
border-radius: 4px; | ||
border: 1px solid #d8d8d8; | ||
background-image: url("../assets/dropDownIcon.svg"); | ||
background-repeat: no-repeat, repeat; | ||
background-position: | ||
right 0.7em top 50%, | ||
0 0; | ||
} | ||
|
||
.dpContent { | ||
position: relative; | ||
top: 25%; | ||
width: 100%; | ||
background: white; | ||
gap: 1em; | ||
border: 1px solid #d8d8d8; | ||
font-size: 16px; | ||
} | ||
|
||
.dpItem { | ||
padding: 10px; | ||
border: 0.5px solid #d8d8d8; | ||
color: black; | ||
cursor: pointer; | ||
} | ||
|
||
.selectOne { | ||
margin-left: 15px; | ||
margin-top: 10px; | ||
} | ||
|
||
.selectedOption { | ||
color: black; | ||
margin-left: 15px; | ||
margin-top: 10px; | ||
} | ||
|
||
.dpItem:hover { | ||
background-color: #ebebeb; | ||
} |
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,56 @@ | ||
import { useState } from "react"; | ||
|
||
import styles from "./Dropdown.module.css"; | ||
|
||
export function Dropdown(props: { | ||
options: string[]; | ||
onSelect: (value: string) => void; | ||
required?: boolean; | ||
}) { | ||
const [selected, setSelected] = useState("Select One"); | ||
const [isActive, setIsActive] = useState(false); | ||
|
||
const handleOptionClick = (option: string) => { | ||
setSelected(option); | ||
setIsActive(false); | ||
props.onSelect(option); | ||
}; | ||
|
||
return ( | ||
<div | ||
className={styles.dropDown} | ||
onClick={() => { | ||
setIsActive(!isActive); | ||
}} | ||
role="button" | ||
tabIndex={0} | ||
onKeyDown={() => { | ||
setIsActive(!isActive); | ||
}} | ||
> | ||
<div className={selected === "Select One" ? styles.selectOne : styles.selectedOption}> | ||
{selected ?? "Select One"} | ||
</div> | ||
{isActive && ( | ||
<div className={styles.dpContent}> | ||
{props.options.map((option, index) => ( | ||
<div | ||
onClick={() => { | ||
handleOptionClick(option); | ||
}} | ||
className={styles.dpItem} | ||
role="button" | ||
tabIndex={0} | ||
key={index} | ||
onKeyDown={() => { | ||
setIsActive(!isActive); | ||
}} | ||
> | ||
{option} | ||
</div> | ||
))} | ||
</div> | ||
)} | ||
</div> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
.formContainer { | ||
background-color: var(--color-text-secondary); | ||
box-shadow: 0px 0px 4px 0px #00000040; | ||
} | ||
|
||
.formSection { | ||
margin: 0 auto !important; | ||
padding-bottom: 50px; | ||
width: 80%; | ||
} | ||
|
||
.applyFacts { | ||
width: 80%; | ||
margin: 0 auto !important; | ||
padding: 50px 0; | ||
} | ||
|
||
.bulletPoint { | ||
list-style-type: disc; | ||
color: var(--color-ccidc-red); | ||
} | ||
|
||
.warningMessage { | ||
color: #ad281f; | ||
margin-top: 2rem; | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.warningText { | ||
margin-top: 0 !important; | ||
} | ||
|
||
.addressText { | ||
margin-top: 1em; | ||
} | ||
|
||
.upload { | ||
font-family: "Rubik"; | ||
font-size: 15px; | ||
background-color: white; | ||
border: 1px solid black; | ||
border-radius: 4px; | ||
height: 48px; | ||
text-align: left; | ||
align-items: center; | ||
display: flex; | ||
margin-top: 1rem; | ||
padding: 16px; | ||
justify-content: space-between; | ||
column-gap: 8px; | ||
} | ||
|
||
.uploadButton { | ||
width: 24px; | ||
height: 24px; | ||
} | ||
|
||
/* form section styling*/ | ||
|
||
.formSectionContainer { | ||
display: grid; | ||
grid-template-columns: repeat(2, 1fr); | ||
column-gap: 4rem; | ||
} | ||
|
||
.sectionTitle { | ||
font-size: 18px; | ||
font-weight: 700; | ||
} | ||
|
||
.inputBox { | ||
margin-top: 1rem; | ||
} | ||
|
||
.inputTitle { | ||
font-size: 12px; | ||
color: #6c6c6c; | ||
} | ||
|
||
::placeholder { | ||
color: var(--color-accent); | ||
opacity: 1; /* Firefox */ | ||
} | ||
|
||
.inputText { | ||
width: 100%; | ||
padding: 8px 48px 8px 16px; | ||
margin-top: 4px; | ||
font-size: 16px; | ||
line-height: 24px; | ||
color: var(--color-text-primary); | ||
font: var(--font-body); | ||
border: 1px solid var(--color-shadow); | ||
border-radius: 5px; | ||
} | ||
|
||
.inputText:focus-visible { | ||
border: #782420 solid 1px; | ||
outline: none; | ||
} | ||
|
||
select.inputText { | ||
appearance: none; | ||
background-image: url("../assets/dropArrow.svg"); | ||
background-repeat: no-repeat; | ||
background-position: right top 50%; | ||
cursor: pointer; | ||
} | ||
.selectInput { | ||
border: 0; | ||
vertical-align: middle; | ||
background: transparent; | ||
-webkit-appearance: none; | ||
appearance: none; | ||
padding-left: 5px; | ||
} | ||
|
||
.optionDefault { | ||
color: var(--color-accent); | ||
} | ||
|
||
.optionSelected { | ||
color: var(--color-text-primary); | ||
} | ||
|
||
.titleContainer { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
|
||
.titleContainer h2 { | ||
align-self: center; | ||
} | ||
|
||
hr { | ||
border: 1px solid var(--color-shadow); | ||
} | ||
|
||
.boldRed { | ||
color: var(--color-ccidc-red); | ||
} | ||
|
||
.lightBlue { | ||
color: var(--color-ccidc-blue); | ||
} | ||
|
||
input[type="checkbox"] { | ||
width: 1.5em; | ||
height: 1.5em; | ||
accent-color: var(--color-ccidc-red); | ||
outline: 4px auto var(--color-ccidc-red); | ||
border-radius: 5px; | ||
} | ||
|
||
input[type="checkbox"]:hover { | ||
box-shadow: 0 0 5px 0px var(--color-ccidc-red) inset; | ||
} | ||
|
||
.checkboxLabel { | ||
display: block; | ||
white-space: nowrap; | ||
margin: 10px 0; | ||
} | ||
|
||
.checkboxLabel input { | ||
vertical-align: middle; | ||
top: 2px; | ||
} | ||
.checkboxLabel span { | ||
display: inline-block; | ||
white-space: normal; | ||
vertical-align: top; | ||
position: relative; | ||
left: 15px; | ||
} | ||
/* Add if DropDown required. Hides default input, still shows Required warning */ | ||
|
||
.felonyLabel { | ||
position: relative; | ||
} | ||
.customDropDown { | ||
position: absolute; | ||
bottom: 0.5rem; | ||
left: 0.5rem; | ||
/* Forcefully hide */ | ||
opacity: 0; | ||
pointer-events: none; | ||
} |
Oops, something went wrong.