Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Section 508 header and Footer for Open ACR #62

Closed
wants to merge 138 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
90c7419
Add empty file
istankevychgsa Feb 21, 2024
3950700
Add docker-compose for local development
istankevychgsa Feb 22, 2024
53cc03d
ECASOGP-11018: Add Section508 header and footer blocks
istankevychgsa Feb 27, 2024
7986d8d
ECASOGP-11018: Add changes to Section508 header and footer blocks
istankevychgsa Feb 29, 2024
a283930
Merge 7986d8d61beb134b00d2ea1ace5cf0851c4d28d4 into b9b2a98972ca82388…
istankevychgsa Feb 29, 2024
666a930
Merge pull request #1 from GSA/story/seaction508
istankevychgsa Feb 29, 2024
5e883dc
pre-commit fixes
Feb 29, 2024
99a0127
ECASOGP-11018: change path prefix to /openacr-editor-stage
istankevychgsa Feb 29, 2024
06d9467
Merge branch 'story/seaction508' of github.com:GSA/openacr-editor-sta…
istankevychgsa Feb 29, 2024
ed239d9
Merge pull request #2 from GSA/story/seaction508
istankevychgsa Feb 29, 2024
2569a31
ECASOGP-11018: Add class for external blocks
istankevychgsa Feb 29, 2024
8a1f923
Merge pull request #3 from GSA/story/seaction508
istankevychgsa Feb 29, 2024
4827223
ECASOGP-11018: Change styles order
istankevychgsa Feb 29, 2024
2f9430c
Merge pull request #4 from GSA/story/seaction508
istankevychgsa Feb 29, 2024
b8b674d
ACR Logo
HarikaMunipalle Mar 6, 2024
bbc2dc0
Merge b8b674dc0b8ef1f2a0f461756cb6b671f8da3e5e into 2f9430cc5e866c5a0…
HarikaMunipalle Mar 6, 2024
8dc5e1b
pre-commit fixes
Mar 6, 2024
0b41231
Merge pull request #5 from GSA/feature/ECASOGP-11057
istankevychgsa Mar 7, 2024
23c9f27
fonts
HarikaMunipalle Mar 7, 2024
fee8b30
Merge branch 'feature/ECASOGP-11057' of https://github.com/GSA/openac…
HarikaMunipalle Mar 7, 2024
189a675
fonts
HarikaMunipalle Mar 7, 2024
e770893
fonts
HarikaMunipalle Mar 7, 2024
3bd3747
fonts
HarikaMunipalle Mar 8, 2024
db6b686
Merge pull request #6 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 8, 2024
cfc88c4
fonts
HarikaMunipalle Mar 8, 2024
13e1992
Merge pull request #7 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 8, 2024
3ffe485
footer padding
HarikaMunipalle Mar 11, 2024
ffd04c3
Merge 3ffe4858e7d521caed59583d6155e0fd44d0547e into 13e1992bd9838414b…
HarikaMunipalle Mar 11, 2024
16b7257
pre-commit fixes
Mar 11, 2024
1b275fc
Merge pull request #8 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 11, 2024
3269756
Header sticky
HarikaMunipalle Mar 11, 2024
3351f57
Header sticky
HarikaMunipalle Mar 11, 2024
289cb84
Header Sticky
HarikaMunipalle Mar 11, 2024
53843fc
Merge 289cb84a3294898b05857036903d65c938f6f97a into 1b275fc3472c266b1…
HarikaMunipalle Mar 11, 2024
8656e7e
pre-commit fixes
Mar 11, 2024
c76a4c5
Merge pull request #9 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 11, 2024
6d70d50
Footer CSS
HarikaMunipalle Mar 12, 2024
20534d2
Merge branch 'feature/ECASOGP-11057' of https://github.com/GSA/openac…
HarikaMunipalle Mar 12, 2024
f1b38f0
Merge 20534d2d8c817e249e6fde2a7c6d4e79f358b64e into c76a4c57e7672f2fd…
HarikaMunipalle Mar 12, 2024
9c7b556
pre-commit fixes
Mar 12, 2024
cea238a
Merge pull request #10 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 12, 2024
6163b28
footer CSS
HarikaMunipalle Mar 12, 2024
1bbeeaf
Merge branch 'feature/ECASOGP-11057' of https://github.com/GSA/openac…
HarikaMunipalle Mar 12, 2024
e05e4c7
Merge 1bbeeaf9599df3aec0ce682c940e2a3c63000320 into cea238a479ce3b4cf…
HarikaMunipalle Mar 12, 2024
03dd2a2
Merge pull request #11 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 12, 2024
47b0562
pre-commit fixes
Mar 12, 2024
1e15402
Open ACR logo
HarikaMunipalle Mar 12, 2024
6d2c1a2
Merge branch 'feature/ECASOGP-11057' of https://github.com/GSA/openac…
HarikaMunipalle Mar 12, 2024
c9ec0d3
Merge pull request #12 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 13, 2024
1221a37
footer
HarikaMunipalle Mar 13, 2024
334f3c4
Merge 1221a37892bb0ba5a58db720d3af732c1f473ec0 into c9ec0d313e5493f9a…
HarikaMunipalle Mar 13, 2024
2f46621
pre-commit fixes
Mar 13, 2024
f9227c8
Merge pull request #13 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 13, 2024
32d1351
favicon
HarikaMunipalle Mar 14, 2024
9719c57
favicon
HarikaMunipalle Mar 14, 2024
914a7de
Merge 9719c573f2553389038cf1eca9e8d7e2132584ff into f9227c86fd9e74059…
HarikaMunipalle Mar 14, 2024
3e0287d
pre-commit fixes
Mar 14, 2024
e155392
Merge pull request #14 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 14, 2024
c996498
GSA alt text
HarikaMunipalle Mar 14, 2024
8936749
Merge branch 'feature/ECASOGP-11057' of https://github.com/GSA/openac…
HarikaMunipalle Mar 14, 2024
2a00f82
Merge pull request #15 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 14, 2024
33d7d62
header and report
HarikaMunipalle Mar 19, 2024
20545ca
Merge 33d7d62a4dcac886bfe84c4b236b2edbb9ea7d27 into 2a00f829f9615682e…
HarikaMunipalle Mar 19, 2024
5290990
pre-commit fixes
Mar 19, 2024
ef23c7a
Merge pull request #16 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 19, 2024
3de470d
header
HarikaMunipalle Mar 19, 2024
0945037
Merge branch 'feature/ECASOGP-11057' of https://github.com/GSA/openac…
HarikaMunipalle Mar 19, 2024
0060c54
Merge 09450374bae109848440cce189d8dcb44cee5e5a into ef23c7a0354da52d7…
HarikaMunipalle Mar 19, 2024
6809acf
pre-commit fixes
Mar 19, 2024
06a7644
Merge pull request #17 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 19, 2024
3379170
header
HarikaMunipalle Mar 19, 2024
115ee1b
header
HarikaMunipalle Mar 19, 2024
1721532
Merge 115ee1ba12a89999f19743a21ed059f81c626d8b into 06a76447b219dc171…
HarikaMunipalle Mar 19, 2024
1f18a49
pre-commit fixes
Mar 19, 2024
aeda920
Merge pull request #18 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 19, 2024
29a69d7
header and report page
HarikaMunipalle Mar 19, 2024
db8ea2c
header and report
HarikaMunipalle Mar 19, 2024
148aaa2
Merge pull request #19 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 19, 2024
b255019
Header and alert
HarikaMunipalle Mar 20, 2024
53b9a96
Merge b255019eae32184d79ce96f4ffa1bd353b3b9de5 into 148aaa256435e22ed…
HarikaMunipalle Mar 20, 2024
cb86698
pre-commit fixes
Mar 20, 2024
363c031
Merge pull request #20 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 20, 2024
4502e26
navigation
HarikaMunipalle Mar 20, 2024
bf3d2ce
navigation
HarikaMunipalle Mar 20, 2024
85dbf7e
Merge bf3d2ce2c6fb8a3574a97471825fd664b1b8005f into 363c031880ea8634a…
HarikaMunipalle Mar 20, 2024
8acd1b5
Merge pull request #21 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 20, 2024
4943bcb
pre-commit fixes
Mar 20, 2024
b457b51
paadding
HarikaMunipalle Mar 20, 2024
6538d7c
padding
HarikaMunipalle Mar 20, 2024
557f9bb
Merge 6538d7c208eb175791e83e28f9663afb47578a1b into 8acd1b5f89c441bf7…
HarikaMunipalle Mar 20, 2024
107b6f5
Merge pull request #22 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 20, 2024
c8cadce
pre-commit fixes
Mar 20, 2024
8bd271a
alert
HarikaMunipalle Mar 20, 2024
9230faf
Merge branch 'feature/ECASOGP-11057' of https://github.com/GSA/openac…
HarikaMunipalle Mar 20, 2024
0227886
Merge pull request #23 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 20, 2024
c5f703e
alert for navigation
HarikaMunipalle Mar 20, 2024
ddf9529
Merge c5f703e234fc9d69167ec978079d8ac2aa781cbb into 0227886f016d3c455…
HarikaMunipalle Mar 20, 2024
ffcd575
pre-commit fixes
Mar 20, 2024
d8c1793
Merge pull request #24 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 20, 2024
64eabb4
alert
HarikaMunipalle Mar 20, 2024
f01f002
Merge branch 'feature/ECASOGP-11057' of https://github.com/GSA/openac…
HarikaMunipalle Mar 20, 2024
ff08779
alert
HarikaMunipalle Mar 20, 2024
a8641f7
Merge pull request #25 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 20, 2024
cbdde47
new image
HarikaMunipalle Mar 21, 2024
27a05af
Merge cbdde47f13f0db27d48019c41a604cd948872160 into a8641f7233201117b…
HarikaMunipalle Mar 21, 2024
defcf42
pre-commit fixes
Mar 21, 2024
0ef6c93
Merge pull request #26 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 21, 2024
863f89f
navigation header
HarikaMunipalle Mar 22, 2024
448f2fc
Merge branch 'feature/ECASOGP-11057' of https://github.com/GSA/openac…
HarikaMunipalle Mar 22, 2024
5759e3f
Merge 448f2fc2f1616283a42a46237c47e5aecb2ca165 into 0ef6c932a1aee5c96…
HarikaMunipalle Mar 22, 2024
a8b00ef
pre-commit fixes
Mar 22, 2024
edf799c
Merge pull request #27 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 22, 2024
a50ed48
nav link
HarikaMunipalle Mar 28, 2024
e97dff0
Merge branch 'feature/ECASOGP-11057' of https://github.com/GSA/openac…
HarikaMunipalle Mar 28, 2024
72fd288
Merge e97dff0c169b3b8f015abebca2d72517097bbc5a into edf799ca96459715f…
HarikaMunipalle Mar 28, 2024
81ce351
pre-commit fixes
Mar 28, 2024
f4fef76
Merge pull request #28 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 28, 2024
fcecf11
navigation
HarikaMunipalle Mar 28, 2024
59b3ef2
navigation
HarikaMunipalle Mar 28, 2024
679daaa
Merge 59b3ef29e453785f90f23ddc1d83696b28397f2d into f4fef766e4440a254…
HarikaMunipalle Mar 28, 2024
3a849bc
Merge pull request #29 from GSA/feature/ECASOGP-11057
HarikaMunipalle Mar 28, 2024
104d947
pre-commit fixes
Mar 28, 2024
75a76d7
UAT feedback
HarikaMunipalle Apr 2, 2024
628382e
UAT feedback
HarikaMunipalle Apr 2, 2024
63d49aa
Merge 628382e90a2c6c67f649e8ce24524bbdc0283ba6 into 3a849bce610b7d9d7…
HarikaMunipalle Apr 2, 2024
c331409
pre-commit fixes
Apr 2, 2024
f0dbc1e
Merge pull request #30 from GSA/feature/ECASOGP-11057
HarikaMunipalle Apr 2, 2024
366c839
Date and version updated
HarikaMunipalle Apr 2, 2024
71bf900
Merge pull request #31 from GSA/feature/ECASOGP-11057
HarikaMunipalle Apr 2, 2024
593d3f3
Documentation for Section 508 header and footer in Open ACR
HarikaMunipalle Apr 3, 2024
55004d5
Merge 593d3f317e82642ba85f886d37d2844bc217f080 into 71bf900e89b7eab54…
HarikaMunipalle Apr 3, 2024
1ec01fe
pre-commit fixes
Apr 3, 2024
7978fa7
Merge pull request #32 from GSA/feature/ECASOGP-11057
HarikaMunipalle Apr 3, 2024
51d74af
alt text for ACR Editor
HarikaMunipalle Apr 3, 2024
bd170d3
Merge branch 'feature/ECASOGP-11057' of https://github.com/GSA/openac…
HarikaMunipalle Apr 3, 2024
e56301c
Merge pull request #33 from GSA/feature/ECASOGP-11057
HarikaMunipalle Apr 3, 2024
7a13171
section 508 prod link has been added
HarikaMunipalle Apr 11, 2024
bcce32d
Merge pull request #34 from GSA/feature/ECASOGP-11057
HarikaMunipalle Apr 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#Dockerfile

# Use this image as the platform to build the app
FROM node:18-alpine AS external-website

# A small line inside the image to show who made it
LABEL Developers="Illia Stankevych & Harika Munipalle"

# The WORKDIR instruction sets the working directory for everything that will happen next
WORKDIR /app

# Copy all local files into the image
COPY . .

# Clean install all node modules
RUN npm ci

# Build SvelteKit app
RUN export NODE_ENV=development; npm run dev

# Delete source code files that were used to build the app that are no longer needed
# RUN rm -rf src/ static/ emailTemplates/ docker-compose.yml

# The USER instruction sets the user name to use as the default user for the remainder of the current stage
USER node:node

# This is the command that will be run inside the image when you tell Docker to start the container
CMD ["node","build/index.js"]
67 changes: 67 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,70 @@ The vars are now in the `vars` object, you can reference them with `vars.variabl
## Data structure

The editor uses the OpenACR [schema](https://github.com/GSA/openacr/tree/main/schema) and [catalog](https://github.com/GSA/open-product-accessibility-template/tree/main/catalog) as data structures.

# External Blocks Integration Documentation

## Overview

The External Blocks feature provided by Section 508 offers functionality to seamlessly integrate the header and footer elements from the Section 508 website into external projects. This documentation outlines the steps required to incorporate Section 508 header and footer elements into your website.

## Integration Steps

To integrate the Section 508 header and footer into your website, follow these steps:

### 1. Include Stylesheet and JavaScript Files

Add the following stylesheet and JavaScript files to your website's HTML code:

```html
<link
rel="stylesheet"
href="https://www.section508.gov/assets/css/external-blocks.css"
/>
<script
defer
src="https://www.section508.gov/assets/js/external-508-blocks.js"
></script>
<script defer src="https://www.section508.gov/assets/js/uswds.min.js"></script>
```

### Example

Here's an example of how to integrate the Section 508 header and footer into your HTML code:

```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Website</title>
<!-- Include Section 508 stylesheet and JavaScript after Open ACR-->
<link
rel="stylesheet"
href="https://www.section508.gov/assets/css/external-blocks.css"
/>
<script
defer
src="https://www.section508.gov/assets/js/external-508-blocks.js"
></script>
<script
defer
src="https://www.section508.gov/assets/js/uswds.min.js"
></script>
</head>
<body>
<!-- Section 508 Header -->
<div id="header-508"></div>

<!-- Your Website Content Goes Here -->

<!-- Section 508 Footer -->
<div id="footer-508"></div>
</body>
</html>
```

### Notes

- Ensure that your website's design accommodates the integration of the Section 508 header and footer appropriately.
2 changes: 1 addition & 1 deletion config/ghpages.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"pathPrefix": "/openacr-editor"
"pathPrefix": "/openacr-editor-stage"
}
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: "3.4"
services:
node:
image: node:14-alpine
volumes:
- type: bind
source: ./
target: /app
working_dir: /app
command: npm run dev
ports:
- "5000:5000"
environment:
- NODE_ENV=development
- PORT=5000
- HOST=0.0.0.0
Binary file added public/fonts/public-sans/PublicSans-Bold.ttf
Binary file not shown.
Binary file added public/fonts/public-sans/PublicSans-Bold.woff
Binary file not shown.
Binary file added public/fonts/public-sans/PublicSans-Bold.woff2
Binary file not shown.
Binary file not shown.
Binary file added public/fonts/public-sans/PublicSans-Regular.woff
Binary file not shown.
Binary file added public/fonts/public-sans/PublicSans-Regular.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
Empty file added src/.empty-file
Empty file.
2 changes: 1 addition & 1 deletion src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
function setInteracted(e) {
if (e.target.type != "file") {
window.removeEventListener("input", setInteracted);
window.onbeforeunload = closeEditorWarning;
//window.onbeforeunload = closeEditorWarning;
}
}

Expand Down
36 changes: 18 additions & 18 deletions src/components/Nav.svelte
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<style>
.nav {
-ms-grid-column: 2;
-ms-grid-column-span: 8;
grid-column: 2 / span 8;
-ms-grid-row: 1;
-ms-grid-row-span: 1;
grid-row: 1;
overflow: auto;
margin: -32px 0 40px;
background-color: #d0e1f1;
background-color: var(--cloudy-subtle);
}
.nav ul {
display: flex;
flex-direction: row;
margin: 0;
padding: 0;
}
.nav {
-ms-grid-column: 2;
-ms-grid-column-span: 8;
grid-column: 2 / span 8;
-ms-grid-row: 1;
-ms-grid-row-span: 1;
grid-row: 1;
overflow: auto;
margin: -32px 0 40px;
background-color: #d0e1f1;
background-color: var(--cloudy-subtle);
}
.nav ul {
display: flex;
flex-direction: row;
margin: 0;
padding: 0;
}
</style>

<nav class="nav" aria-label="Steps">
Expand Down
4 changes: 2 additions & 2 deletions src/components/YourReport.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

function clear() {
window.onbeforeunload = null;
//window.onbeforeunload = null;
if (
window.confirm(
"This will clear the current OpenACR and start a new one. Are you sure that's what you'd like to do?"
Expand Down Expand Up @@ -77,7 +77,7 @@
@media (min-width: 60em) {
.your-report--expanded {
position: sticky;
top: 1em;
top: 4em;
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/report/ReportChapter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
thead {
position: sticky;
top: 0;
top: 3em;
z-index: 1;
}
thead th {
Expand All @@ -44,7 +44,7 @@
{/if}

{#if $evaluation['chapters'][chapterId]['criteria'] && !$evaluation['chapters'][chapterId]['disabled'] }
<table class="usa-table">
<table>
<thead>
<tr>
<th>Criteria</th>
Expand Down
2 changes: 1 addition & 1 deletion src/components/report/ReportHeader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Based on {catalog.title}
<HeaderWithAnchor id="applicable-standards-guidelines" level=2 {download}>Applicable Standards/Guidelines</HeaderWithAnchor>
This report covers the degree of conformance for the following accessibility standard/guidelines:

<table class="usa-table">
<table>
<thead>
<tr>
<th>Standard/Guideline</th>
Expand Down
Loading
Loading