fix build crash
This commit is contained in:
parent
273f3a1d93
commit
c846922baf
@ -1,13 +1,15 @@
|
|||||||
# chuckdries.com
|
# chuckdries.com
|
||||||
|
|
||||||

|
[](https://drone.chuckdries.com/chuckdries/Personal-Website)
|
||||||
|
|
||||||
My personal website.
|
My personal website. Built with
|
||||||
- gatsby
|
- gatsby
|
||||||
- tailwind
|
- tailwind
|
||||||
- node-vibrant
|
- node-vibrant
|
||||||
- react-helmet
|
- react-helmet
|
||||||
|
|
||||||
|
and a totally from-scratch masonry gallery component that I will write a blog post about some day.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
I use node-vibrant in the gatsby OnCreateNode hook to pull colors from the images and store them in the gatsby node structure. I query them in the client, then assign CSS custom properties with react-helmet. In my tailwind config, I define custom colors that use those properties. This gets me classes like `text-vibrant-light` that change colors to vibe with the selected image
|
I use node-vibrant in the gatsby OnCreateNode hook to pull colors from the images and store them in the gatsby node structure. I query them in the client, then assign CSS custom properties with react-helmet. In my tailwind config, I define custom colors that use those properties. This gets me classes like `text-vibrant-light` that change colors to vibe with the selected image
|
@ -84,7 +84,7 @@ export const getGalleryPageUrl = (
|
|||||||
{ keyword, sortKey },
|
{ keyword, sortKey },
|
||||||
hash
|
hash
|
||||||
) => {
|
) => {
|
||||||
const url = new URL(`${window.location.origin}/photogallery/`);
|
const url = new URL(`${window?.location.origin ?? 'https://chuckdries.com'}/photogallery/`);
|
||||||
if (keyword !== undefined) {
|
if (keyword !== undefined) {
|
||||||
if (keyword === null) {
|
if (keyword === null) {
|
||||||
url.searchParams.delete("filter");
|
url.searchParams.delete("filter");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user