-
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.
* Update footer links, responsiveness * Update * Update footer, item rendering * Update feature generation * Add logo to homepage * Add footer links, update styles * Refactor code * Fix image rendering, meta tags * Refactor file structure * Update peer dependancies * Update netlify configs * Modify build command * Update image compression
- Loading branch information
Showing
18 changed files
with
7,255 additions
and
3,480 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
File renamed without changes.
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,8 +1,8 @@ | ||
[build] | ||
publish = "public" | ||
command = "npm run build" | ||
command = "yarn build" | ||
functions = "lambda" | ||
[build.environment] | ||
NODE_VERSION = "12" | ||
YARN_VERSION = "1.22.4" | ||
NODE_VERSION = "15.5.0" | ||
YARN_VERSION = "1.22.10" | ||
YARN_FLAGS = "--no-ignore-optional" |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
const sharp = require(`sharp`) | ||
const glob = require(`glob`) | ||
const fs = require(`fs-extra`) | ||
|
||
const matches = glob.sync(`static/img/*.{png,jpg,jpeg}`) | ||
const MAX_WIDTH = 1800 | ||
const QUALITY = 70 | ||
|
||
Promise.all( | ||
matches.map(async match => { | ||
const stream = sharp(match) | ||
const info = await stream.metadata() | ||
|
||
if (info.width < MAX_WIDTH) { | ||
return | ||
} | ||
|
||
const optimizedName = match.replace( | ||
/(\..+)$/, | ||
(match, ext) => `-optimized${ext}` | ||
) | ||
|
||
await stream | ||
.resize(MAX_WIDTH) | ||
.jpeg({ quality: QUALITY }) | ||
.toFile(optimizedName) | ||
|
||
return fs.rename(optimizedName, match) | ||
}) | ||
) |
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
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 |
---|---|---|
|
@@ -9,6 +9,4 @@ links: | |
text: ARTWORK | ||
- link: /about | ||
text: ABOUT | ||
- link: /contact | ||
text: CONTACT | ||
--- |
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
Oops, something went wrong.