Skip to content

Commit ec56371

Browse files
Merge pull request #99 from DSACMS/DSACMS/nat/form-styling
Form: Updated instructions to include 4 options and styling
2 parents 89f9520 + 992e102 commit ec56371

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

css/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ textarea {
1212
padding: 10px 20px;
1313
padding-bottom: 25px;
1414
margin-bottom: 20px;
15-
background: #e6e6e6;
15+
background: #f4f4f4;
1616
width: 100%;
1717
max-width: 1300px;
1818
box-sizing: border-box;

js/generateFormComponents.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,19 +262,28 @@ function createComponent(fieldName, fieldObject, requiredArray, prefix) {
262262
// Adds heading containing schema information
263263
function createFormHeading(agency) {
264264
const agencyTitle = (agency === "gov") ? agency.charAt(0).toUpperCase() + agency.slice(1) : agency.toUpperCase();
265-
const agencyDescription = (agency !== "gov") ? agencyTitle : agency;
265+
const agencyDescription = (agency !== "gov") ? agencyTitle : "government";
266266

267267
const container = document.getElementById('form-header');
268268
container.innerHTML = `
269269
<h1>Welcome to ${agencyTitle} Code.json Generator!</h1>\n
270-
<h2>code.json generator is a web form designed to help ${agencyDescription} teams create a code.json file containing project metadata in compliance with the SHARE IT Act.
271-
Visit the <a
270+
<p><strong>code.json generator</strong> is a web form designed to help ${agencyDescription} teams create a code.json file containing project metadata in compliance with the SHARE IT Act.</p>\n
271+
<p>Complete the form below to create a code.json file for your project.</p>\n
272+
<p>Afterwards, the code.json file must be added to the repository. To save the file, you can:
273+
<ul>
274+
<li>copy its contents</li>
275+
<li>download the file locally</li>
276+
<li>create a pull request to the repository</li>
277+
<li>email the file</li>
278+
</ul>
279+
</p>\n
280+
<p>Visit the <a
272281
class="usa-link usa-link--external"
273282
rel="noreferrer"
274283
target="_blank"
275284
href="https://dsacms.github.io/share-it-act-lp/">
276-
SHARE IT Act Landing Page</a> for more information.</h2>\n
277-
<h3>Complete the form below to create a code.json file for your project:</h3>\n
285+
SHARE IT Act Landing Page</a> for more information.
286+
</p>
278287
`;
279288
}
280289

0 commit comments

Comments
 (0)