Skip to content

Commit

Permalink
Layout work and homepage wip (#39)
Browse files Browse the repository at this point in the history
* parse markdown content

* type

* fix

* next folder

* revert

* test

* export

* rename

* working nav

* wip homepage

* delete old images

* delete old files

* update scss

* fix errors

* Update src/app/components/Footer.tsx

Co-authored-by: Jake Wheeler <[email protected]>

* Update src/app/components/Footer.tsx

Co-authored-by: Jake Wheeler <[email protected]>

* Update src/app/components/NavbarUSWDS.tsx

Co-authored-by: Jake Wheeler <[email protected]>

* updates based on comments

* prettier

* basepath

* adjust links

---------

Co-authored-by: Jake Wheeler <[email protected]>
  • Loading branch information
nickbristow and jakewheeler authored Oct 24, 2024
1 parent cd5afbf commit d0e363d
Show file tree
Hide file tree
Showing 69 changed files with 3,622 additions and 298 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ jobs:
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@v9
with:
configPath: './lighthouserc.yml'
configPath: "./lighthouserc.yml"
uploadArtifacts: false # save results as an action artifacts
temporaryPublicStorage: false # upload lighthouse report to the temporary storage



1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore artifacts:
build
coverage
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
6 changes: 3 additions & 3 deletions akamai-loader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const normalizeSrc = (src) => src[0] === '/' ? src.slice(1) : src
const normalizeSrc = (src) => (src[0] === "/" ? src.slice(1) : src);
export default function akamaiLoader({ src, width, quality }) {
return '/' + normalizeSrc(src) + '?imwidth=' + width
}
return "/" + normalizeSrc(src) + "?imwidth=" + width;
}
4 changes: 2 additions & 2 deletions lighthouserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ ci:
staticDistDir: "./out"
assert:
assertions:
categories:accessibility: [error, {minScore: 1}]
categories:accessibility: [error, { minScore: 1 }]
upload:
# upload options here
server:
# server options here
wizard:
# wizard options here
# wizard options here
21 changes: 21 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const path = require("path");

/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
output: "export",
reactStrictMode: true,
swcMinify: true,
images: {
loader: "custom",
loaderFile: "./akamai-loader.js",
},
basePath: "/dibbs-site",
assetPrefix: "/dibbs-site",
sassOptions: {
includePaths: [path.join(__dirname, "styles")],
},
};

module.exports = nextConfig;
4 changes: 0 additions & 4 deletions next.config.mjs

This file was deleted.

Loading

0 comments on commit d0e363d

Please sign in to comment.