generated from cloud-gov/pages-uswds-11ty
-
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 #11 from GSA-TTS/site-style-and-content-updates
Site style and content updates
- Loading branch information
Showing
70 changed files
with
5,674 additions
and
4,149 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,4 +119,5 @@ web_modules/ | |
# 11ty Related | ||
_site | ||
public | ||
node_modules | ||
/node_modules | ||
/.pnp |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
{ | ||
"admin.js": "/assets/js/admin-44W43542.js", | ||
"admin.map": "/assets/js/admin-44W43542.js.map", | ||
"app.js": "/assets/js/app-XWR645AF.js", | ||
"app.map": "/assets/js/app-XWR645AF.js.map", | ||
"uswds.js": "/assets/js/uswds-init.js", | ||
"styles.css": "/assets/styles/styles-TAZ5TOFI.css", | ||
"styles.map": "/assets/styles/styles-TAZ5TOFI.css.map" | ||
"admin.js": "/assets/js/admin-C7YAUYZM.js", | ||
"admin.map": "/assets/js/admin-C7YAUYZM.js.map", | ||
"app.js": "/assets/js/app-DBWFVBND.js", | ||
"app.map": "/assets/js/app-DBWFVBND.js.map", | ||
"index.css": "/assets/styles/index-KNHDIH2P.css", | ||
"index.map": "/assets/styles/index-KNHDIH2P.css.map" | ||
} |
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,11 @@ | ||
const fs = require('fs'); | ||
const { parse } = require('csv-parse/sync'); | ||
|
||
module.exports = async function() { | ||
const csv = fs.readFileSync('./_data/Stantec_MABD_Export.csv', 'utf8'); | ||
const data = parse(csv, { | ||
columns: true, | ||
skip_empty_lines: true | ||
}); | ||
return data; | ||
}; |
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 |
---|---|---|
@@ -1,11 +1,9 @@ | ||
title: Agency Name | ||
email: [email protected] | ||
description: >- # this means to ignore newlines | ||
Agency Name (EAC) Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Aenean et sapien a leo auctor scelerisque quis nec magna. Sed dictum ante a risus vehicula facilisis. | ||
title: Bringing Mutual Aid | ||
description: Bringing Mutual Aid ia a portal could increase the use of mutual aid for building depts., support congressional legislation on disaster resilience, and help communities build back better. | ||
url: "https://bma.gsa.gov" | ||
|
||
# Twitter handle. Only the handle, not the URL. | ||
twitter: 18F | ||
# twitter: 18F | ||
|
||
################################################################# | ||
# | ||
|
@@ -53,45 +51,24 @@ ga: | |
# Site Navigation | ||
primary_navigation: | ||
- name: Find assistance | ||
children: | ||
- name: Credentialed experts | ||
url: /posts/experts/ | ||
- name: Inspections & permits | ||
url: /posts/inspections/ | ||
- name: Building code knowledge | ||
url: /posts/codes/ | ||
- name: Navigating disaster recovery | ||
url: /posts/recovery/ | ||
url: /posts/find-assistance/ | ||
- name: Training & resources | ||
children: | ||
- name: Credentialed experts | ||
url: /posts/experts/ | ||
- name: Inspections & permits | ||
url: /posts/inspections/ | ||
- name: Building code knowledge | ||
url: /posts/codes/ | ||
- name: Navigating disaster recovery | ||
url: /posts/recovery/ | ||
url: /posts/training/ | ||
- name: FAQs | ||
children: | ||
- name: Credentialed experts | ||
url: /posts/experts/ | ||
- name: Inspections & permits | ||
url: /posts/inspections/ | ||
- name: Building code knowledge | ||
url: /posts/codes/ | ||
- name: Navigating disaster recovery | ||
url: /posts/recovery/ | ||
url: /posts/faq/ | ||
- name: Contacts | ||
children: | ||
- name: Credentialed experts | ||
url: /posts/experts/ | ||
- name: Inspections & permits | ||
url: /posts/inspections/ | ||
- name: Building code knowledge | ||
url: /posts/codes/ | ||
- name: Navigating disaster recovery | ||
url: /posts/recovery/ | ||
url: /posts/contacts/ | ||
|
||
# Add choldren if adding a sub menu | ||
# children: | ||
# - name: Credentialed experts | ||
# url: /posts/experts/ | ||
# - name: Inspections & permits | ||
# url: /posts/inspections/ | ||
# - name: Building code knowledge | ||
# url: /posts/codes/ | ||
# - name: Navigating disaster recovery | ||
# url: /posts/recovery/ | ||
|
||
|
||
|
||
|
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
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 |
---|---|---|
@@ -1,14 +1,53 @@ | ||
{% comment %} | ||
This will be displayed on the homepage. Ideally, you want to highlight key goals of the website | ||
{% endcomment %} | ||
|
||
<section class="usa-hero" style="text-align: center;"> | ||
<div style="background-image: linear-gradient(rgb(0, 0, 0), rgba(255,0,0,0));""> | ||
<h1 class="ma-h2" style="color: white; padding: 40px 0 60px 0;">Your rebuilding journey starts here</h1> | ||
<div style="width: 360px; background-color: #565c65; padding: 15px; margin: auto; text-align: left;"> | ||
Find mutual aid partners to help supplement your community's building department functions during post-disaster recovery. | ||
</div> | ||
<a class="usa-button" href="{{ '/location/' | url }}" style="margin: 50px 0 50px 0;">Find help now</a> | ||
<section class="usa-hero" aria-label="Introduction"> | ||
<div class="grid-container"> | ||
<div class="usa-hero__callout"> | ||
<h1 class="usa-hero__heading margin-bottom-4"> | ||
Find mutual aid resources to help your local building department | ||
</h1> | ||
<div class="grid-container"> | ||
<form class="usa-form" id="stateForm"> | ||
<fieldset class="usa-fieldset"> | ||
<legend class="usa-legend margin-bottom-1"> | ||
Enter your location to discover mutual aid resources available in your area to assist post-disaster | ||
rebuilding. | ||
</legend> | ||
|
||
<label class="usa-label" for="state"> | ||
State or Territory | ||
</label> | ||
<div class="grid-row grid-gap-2"> | ||
<span class="desktop:grid-col-7 mobile:grid-col-12 margin-bottom-2"> | ||
<select class="usa-select" id="state" name="state"> | ||
<option value>- Select -</option> | ||
{% for item in csvData %} | ||
<option value="{{ item.Abbr | slug }}">{{ item.Abbr }} - {{ item.State }}</option> | ||
{% endfor %} | ||
</select> | ||
</span> | ||
<span class="desktop:grid-col-5 mobile:grid-col-12"> | ||
<input class="usa-button" type="submit" value="View aid options" /> | ||
</span> | ||
</div> | ||
|
||
</fieldset> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<script> | ||
document.getElementById('stateForm').addEventListener('submit', function (event) { | ||
event.preventDefault(); | ||
var selectedState = document.getElementById('state').value; | ||
|
||
// Validate the input | ||
if (/^[A-Za-z]{2}$/.test(selectedState)) { | ||
var encodedState = encodeURIComponent(selectedState); | ||
|
||
window.location.href = '/states/' + encodedState + '/'; | ||
} else { | ||
console.error('Invalid state selected'); | ||
} | ||
}); | ||
</script> |
Oops, something went wrong.