-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
965 additions
and
334 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.gi-bill-container{ | ||
@include media-maxwidth($small-screen) { | ||
padding-inline: 24px; | ||
} | ||
|
||
&__bread-crumbs{ | ||
@include media-maxwidth($small-screen) { | ||
margin-left: -8px !important; | ||
} | ||
} | ||
} | ||
.flex-container{ | ||
@include media-maxwidth($small-screen) { | ||
flex-direction: column; | ||
} | ||
} | ||
.border-bottom{ | ||
border-bottom: 1px solid var(--vads-color-base-light); | ||
border-top: 1px solid var(--vads-color-base-light); | ||
border-width: 100%; | ||
} | ||
.links{ | ||
font-size: 0.85rem; | ||
} |
25 changes: 25 additions & 0 deletions
25
src/applications/gi/updated-gi/components/AboutThisTool.jsx
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,25 @@ | ||
import React from 'react'; | ||
|
||
export const AboutThisTool = () => { | ||
return ( | ||
<div> | ||
<a | ||
href="https://www.benefits.va.gov/gibill/comparison_tool/about_this_tool.asp" | ||
target="_blank" | ||
className="links" | ||
rel="noopener noreferrer" | ||
id="about-this-tool" | ||
> | ||
About this tool | ||
</a> | ||
|
||
<a | ||
href="https://www.benefits.va.gov/GIBILL/docs/job_aids/ComparisonToolData.xlsx" | ||
id="download-all-data" | ||
className="links vads-u-margin-left--2" | ||
> | ||
Download data on all schools (XLS) | ||
</a> | ||
</div> | ||
); | ||
}; |
26 changes: 26 additions & 0 deletions
26
src/applications/gi/updated-gi/components/GiBillBreadcrumbs.jsx
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 @@ | ||
import React from 'react'; | ||
import { VaBreadcrumbs } from '@department-of-veterans-affairs/web-components/react-bindings'; | ||
|
||
const GiBillBreadcrumbs = () => { | ||
const crumbs = [ | ||
{ | ||
href: '/', | ||
label: 'Home', | ||
}, | ||
{ | ||
href: '/education', | ||
label: 'Education and training', | ||
}, | ||
{ | ||
href: '/education/gi-bill-comparison-tool/', | ||
label: 'GI Bill® Comparison Tool', | ||
}, | ||
]; | ||
return ( | ||
<div className="gi-bill-container__bread-crumbs"> | ||
<VaBreadcrumbs uswds breadcrumbList={crumbs} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default GiBillBreadcrumbs; |
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,33 @@ | ||
import React from 'react'; | ||
import LinkWithDescription from './LinkWithDescription'; | ||
|
||
const HomePage = () => { | ||
return ( | ||
<div className="vads-u-margin-bottom--8"> | ||
<p | ||
className="vads-u-color--gray-dark vads-u-font-family--serif vads-u-margin-bottom--4" | ||
data-testid="comparison-tool-description" | ||
> | ||
Discover how your GI Bill benefits can support your education. Search | ||
and compare approved schools, employers, exams, licenses, and | ||
certifications to see how much your VA benefits can help cover. | ||
</p> | ||
<div className="vads-u-display--flex flex-container"> | ||
<LinkWithDescription | ||
text="Schools and employers" | ||
description="Search and compare public and private schools. Filter by on-the-job training, apprenticeships, and more." | ||
/> | ||
<LinkWithDescription | ||
text="Licenses and certifications" | ||
description="Search for licenses, certifications, and prep courses. You can submit a form to get reimbursed." | ||
/> | ||
<LinkWithDescription | ||
text="National Exams" | ||
description="Take national exams such as SAT, ACT, GRE, GMAT, and more. You can submit a form to get reimbursed." | ||
/> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default HomePage; |
41 changes: 41 additions & 0 deletions
41
src/applications/gi/updated-gi/components/InfoDisclaimer.jsx
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,41 @@ | ||
import React from 'react'; | ||
|
||
const InfoDisclaimer = () => { | ||
return ( | ||
<div className="border-bottom vads-u-margin-top--3 vads-u-margin-bottom--2 "> | ||
<p | ||
className="vads-u-font-family--sans vads-u-color--gray-dark" | ||
data-testid="info-disclaimer" | ||
> | ||
Please note: Content on this Web page is for informational purposes | ||
only. It is not intended to provide legal advice or to be a | ||
comprehensive statement or analysis of applicable statutes, regulations, | ||
and case law governing this topic. Rather, it’s a plain-language | ||
summary. If you are seeking claims assistance, your local VA regional | ||
office, a VA-recognized Veterans Service Organization, or a | ||
VA-accredited attorney or agent can help.{' '} | ||
<a | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href="https://www.va.gov/ogc/apps/accreditation/index.asp" | ||
id="disclaimer-link" | ||
> | ||
Search Accredited Attorneys, Claims Agents, or Veterans Service | ||
Organizations (VSO) Representatives | ||
</a> | ||
. | ||
<span> | ||
{' '} | ||
If you need technical assistance or have questions about the GI Bill | ||
Comparison Tool, email us at{' '} | ||
<a href="mailto: [email protected]"> | ||
[email protected] | ||
</a> | ||
. | ||
</span> | ||
</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default InfoDisclaimer; |
24 changes: 24 additions & 0 deletions
24
src/applications/gi/updated-gi/components/LinkWithDescription.jsx
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,24 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { VaLink } from '@department-of-veterans-affairs/component-library/dist/react-bindings'; | ||
|
||
const LinkWithDescription = ({ text, description }) => ( | ||
<div className="vads-u-flex--1 site-grid-example"> | ||
<VaLink | ||
active | ||
className="vads-u-font-weight--bold vads-u-font-family--serif" | ||
text={text} | ||
href="#" | ||
/> | ||
<p className="vads-u-margin-top--1p5 vads-u-font-family--sans vads-u-color--gray-dark"> | ||
{description} | ||
</p> | ||
</div> | ||
); | ||
|
||
LinkWithDescription.propTypes = { | ||
description: PropTypes.string.isRequired, | ||
text: PropTypes.string.isRequired, | ||
}; | ||
|
||
export default LinkWithDescription; |
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 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
import { AboutThisTool } from '../components/AboutThisTool'; | ||
import InfoDisclaimer from '../components/InfoDisclaimer'; | ||
import GiBillBreadcrumbs from '../components/GiBillBreadcrumbs'; | ||
|
||
const NewGiApp = ({ children }) => { | ||
return ( | ||
<div className="row gi-bill-container"> | ||
<GiBillBreadcrumbs /> | ||
<div className="vads-u-margin-left--neg1"> | ||
<h1 data-testid="comparison-tool-title">GI Bill® Comparison Tool</h1> | ||
{children} | ||
<AboutThisTool /> | ||
<InfoDisclaimer /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
NewGiApp.propTypes = { | ||
children: PropTypes.node.isRequired, | ||
}; | ||
|
||
export default NewGiApp; |
23 changes: 23 additions & 0 deletions
23
src/applications/gi/updated-gi/tests/components/Homepage.unit.spec.jsx
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 React from 'react'; | ||
import sinon from 'sinon'; | ||
import { expect } from 'chai'; | ||
import * as featureToggles from 'platform/utilities/feature-toggles'; | ||
import { shallow } from 'enzyme'; | ||
import HomePage from '../../components/Homepage'; | ||
|
||
describe('<HomePage />', () => { | ||
let useFeatureToggleStub; | ||
|
||
beforeEach(() => { | ||
useFeatureToggleStub = sinon.stub(featureToggles, 'useFeatureToggle'); | ||
}); | ||
|
||
it('should behave correctly when feature toggle is enabled', () => { | ||
useFeatureToggleStub.returns(true); | ||
|
||
const wrapper = shallow(<HomePage />); | ||
expect(wrapper.find('[data-testid="comparison-tool-description"]').exists()) | ||
.to.be.true; | ||
wrapper.unmount(); | ||
}); | ||
}); |
22 changes: 22 additions & 0 deletions
22
src/applications/gi/updated-gi/tests/components/InfoDisclaimer.unit.spec.jsx
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,22 @@ | ||
import React from 'react'; | ||
import sinon from 'sinon'; | ||
import { expect } from 'chai'; | ||
import * as featureToggles from 'platform/utilities/feature-toggles'; | ||
import { shallow } from 'enzyme'; | ||
import InfoDisclaimer from '../../components/InfoDisclaimer'; | ||
|
||
describe('<HomePage />', () => { | ||
let useFeatureToggleStub; | ||
|
||
beforeEach(() => { | ||
useFeatureToggleStub = sinon.stub(featureToggles, 'useFeatureToggle'); | ||
}); | ||
|
||
it('should behave correctly when feature toggle is enabled', () => { | ||
useFeatureToggleStub.returns(true); | ||
|
||
const wrapper = shallow(<InfoDisclaimer />); | ||
expect(wrapper.find('[data-testid="info-disclaimer"]').exists()).to.be.true; | ||
wrapper.unmount(); | ||
}); | ||
}); |
Oops, something went wrong.