diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c524f4b --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md index 5057b43..8c051b4 100644 --- a/README.md +++ b/README.md @@ -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 + + + +``` + +### Example + +Here's an example of how to integrate the Section 508 header and footer into your HTML code: + +```html + + + + + + My Website + + + + + + + +
+ + + + + + + +``` + +### Notes + +- Ensure that your website's design accommodates the integration of the Section 508 header and footer appropriately. diff --git a/config/ghpages.json b/config/ghpages.json index 11cf49e..009c037 100644 --- a/config/ghpages.json +++ b/config/ghpages.json @@ -1,3 +1,3 @@ { - "pathPrefix": "/openacr-editor" + "pathPrefix": "/openacr-editor-stage" } diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e7bd5fa --- /dev/null +++ b/docker-compose.yml @@ -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 diff --git a/public/fonts/public-sans/PublicSans-Bold.ttf b/public/fonts/public-sans/PublicSans-Bold.ttf new file mode 100644 index 0000000..41ab785 Binary files /dev/null and b/public/fonts/public-sans/PublicSans-Bold.ttf differ diff --git a/public/fonts/public-sans/PublicSans-Bold.woff b/public/fonts/public-sans/PublicSans-Bold.woff new file mode 100644 index 0000000..a6ec97c Binary files /dev/null and b/public/fonts/public-sans/PublicSans-Bold.woff differ diff --git a/public/fonts/public-sans/PublicSans-Bold.woff2 b/public/fonts/public-sans/PublicSans-Bold.woff2 new file mode 100644 index 0000000..ca838bd Binary files /dev/null and b/public/fonts/public-sans/PublicSans-Bold.woff2 differ diff --git a/public/fonts/public-sans/PublicSans-Regular.ttf b/public/fonts/public-sans/PublicSans-Regular.ttf new file mode 100644 index 0000000..2a31b6d Binary files /dev/null and b/public/fonts/public-sans/PublicSans-Regular.ttf differ diff --git a/public/fonts/public-sans/PublicSans-Regular.woff b/public/fonts/public-sans/PublicSans-Regular.woff new file mode 100644 index 0000000..fbe27e2 Binary files /dev/null and b/public/fonts/public-sans/PublicSans-Regular.woff differ diff --git a/public/fonts/public-sans/PublicSans-Regular.woff2 b/public/fonts/public-sans/PublicSans-Regular.woff2 new file mode 100644 index 0000000..8895a8e Binary files /dev/null and b/public/fonts/public-sans/PublicSans-Regular.woff2 differ diff --git a/public/fonts/source-sans-pro/sourcesanspro-bold-webfont.ttf b/public/fonts/source-sans-pro/sourcesanspro-bold-webfont.ttf new file mode 100644 index 0000000..a1147fe Binary files /dev/null and b/public/fonts/source-sans-pro/sourcesanspro-bold-webfont.ttf differ diff --git a/public/fonts/source-sans-pro/sourcesanspro-bold-webfont.woff b/public/fonts/source-sans-pro/sourcesanspro-bold-webfont.woff new file mode 100644 index 0000000..67f86c2 Binary files /dev/null and b/public/fonts/source-sans-pro/sourcesanspro-bold-webfont.woff differ diff --git a/public/fonts/source-sans-pro/sourcesanspro-bold-webfont.woff2 b/public/fonts/source-sans-pro/sourcesanspro-bold-webfont.woff2 new file mode 100644 index 0000000..24e4f50 Binary files /dev/null and b/public/fonts/source-sans-pro/sourcesanspro-bold-webfont.woff2 differ diff --git a/public/fonts/source-sans-pro/sourcesanspro-regular-webfont.ttf b/public/fonts/source-sans-pro/sourcesanspro-regular-webfont.ttf new file mode 100644 index 0000000..23b0fac Binary files /dev/null and b/public/fonts/source-sans-pro/sourcesanspro-regular-webfont.ttf differ diff --git a/public/fonts/source-sans-pro/sourcesanspro-regular-webfont.woff b/public/fonts/source-sans-pro/sourcesanspro-regular-webfont.woff new file mode 100644 index 0000000..a5fff7d Binary files /dev/null and b/public/fonts/source-sans-pro/sourcesanspro-regular-webfont.woff differ diff --git a/public/fonts/source-sans-pro/sourcesanspro-regular-webfont.woff2 b/public/fonts/source-sans-pro/sourcesanspro-regular-webfont.woff2 new file mode 100644 index 0000000..802b8be Binary files /dev/null and b/public/fonts/source-sans-pro/sourcesanspro-regular-webfont.woff2 differ diff --git a/public/images/Accessibility Conformance Report (ACR) A4 Small.png b/public/images/Accessibility Conformance Report (ACR) A4 Small.png new file mode 100644 index 0000000..159dfbf Binary files /dev/null and b/public/images/Accessibility Conformance Report (ACR) A4 Small.png differ diff --git a/public/images/Accessibility Conformance Report A4 White Horizontal (1).png b/public/images/Accessibility Conformance Report A4 White Horizontal (1).png new file mode 100644 index 0000000..4ae7b42 Binary files /dev/null and b/public/images/Accessibility Conformance Report A4 White Horizontal (1).png differ diff --git a/public/images/Accessibility Conformance Report A4 White Horizontal.png b/public/images/Accessibility Conformance Report A4 White Horizontal.png new file mode 100644 index 0000000..f8ee4d1 Binary files /dev/null and b/public/images/Accessibility Conformance Report A4 White Horizontal.png differ diff --git a/src/.empty-file b/src/.empty-file new file mode 100644 index 0000000..e69de29 diff --git a/src/App.svelte b/src/App.svelte index d56da69..d7154b2 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -30,7 +30,7 @@ function setInteracted(e) { if (e.target.type != "file") { window.removeEventListener("input", setInteracted); - window.onbeforeunload = closeEditorWarning; + //window.onbeforeunload = closeEditorWarning; } } diff --git a/src/components/Nav.svelte b/src/components/Nav.svelte index ba373e4..b12e1f4 100644 --- a/src/components/Nav.svelte +++ b/src/components/Nav.svelte @@ -1,22 +1,22 @@