From 992e1021aa57341d7284eb7962abfa1f26d909d1 Mon Sep 17 00:00:00 2001
From: Natalia Luzuriaga
Date: Wed, 17 Sep 2025 16:06:56 -0700
Subject: [PATCH] Updated instructions to include 4 options and styling
Signed-off-by: Natalia Luzuriaga
---
css/styles.css | 2 +-
js/generateFormComponents.js | 19 ++++++++++++++-----
2 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/css/styles.css b/css/styles.css
index 14a7ac5..c851cf3 100644
--- a/css/styles.css
+++ b/css/styles.css
@@ -12,7 +12,7 @@ textarea {
padding: 10px 20px;
padding-bottom: 25px;
margin-bottom: 20px;
- background: #e6e6e6;
+ background: #f4f4f4;
width: 100%;
max-width: 1300px;
box-sizing: border-box;
diff --git a/js/generateFormComponents.js b/js/generateFormComponents.js
index dc671a6..167c649 100644
--- a/js/generateFormComponents.js
+++ b/js/generateFormComponents.js
@@ -262,19 +262,28 @@ function createComponent(fieldName, fieldObject, requiredArray, prefix) {
// Adds heading containing schema information
function createFormHeading(agency) {
const agencyTitle = (agency === "gov") ? agency.charAt(0).toUpperCase() + agency.slice(1) : agency.toUpperCase();
- const agencyDescription = (agency !== "gov") ? agencyTitle : agency;
+ const agencyDescription = (agency !== "gov") ? agencyTitle : "government";
const container = document.getElementById('form-header');
container.innerHTML = `
Welcome to ${agencyTitle} Code.json Generator!
\n
-
\n
+ Complete the form below to create a code.json file for your project.
\n
+ Afterwards, the code.json file must be added to the repository. To save the file, you can:
+
+ - copy its contents
+ - download the file locally
+ - create a pull request to the repository
+ - email the file
+
+ \n
+ Visit the
- SHARE IT Act Landing Page for more information.\n
-
Complete the form below to create a code.json file for your project:
\n
+ SHARE IT Act Landing Page for more information.
+
`;
}