Fix lints and remove console log

This commit is contained in:
Chuck Dries 2021-06-16 18:58:09 -07:00
parent d2943105f8
commit bb198b54fe
No known key found for this signature in database
GPG Key ID: 4E6B9B2DCEC64BA9
3 changed files with 5 additions and 13 deletions

View File

@ -51,8 +51,6 @@ function transformMetaToNodeData(exifData, iptcData, vibrantData) {
// }) // })
, vibrantData); , vibrantData);
console.log(vibrant);
return { return {
exif: exifData?.exif, exif: exifData?.exif,
gps, gps,

View File

@ -7,13 +7,6 @@ import { HeroA } from '../components/IndexComponents';
const IndexPage = ({ data }) => { const IndexPage = ({ data }) => {
const images = data.allFile.edges.map((edge) => edge.node); const images = data.allFile.edges.map((edge) => edge.node);
const [palette, setPalette] = React.useState([
[0, 0, 0],
[254, 254, 254],
[200, 200, 200],
[200, 200, 200],
[180, 180, 180],
]);
const image = React.useRef(images[Math.floor(Math.random() * images.length)]).current; const image = React.useRef(images[Math.floor(Math.random() * images.length)]).current;
const vibrant = getVibrant(image); const vibrant = getVibrant(image);
console.log('vibrant', getVibrant(image)); console.log('vibrant', getVibrant(image));
@ -69,7 +62,7 @@ export const query = graphql`
allFile( allFile(
filter: { filter: {
sourceInstanceName: {eq: "gallery"}, sourceInstanceName: {eq: "gallery"},
base: {in: ["DSC00201.jpg", "DSC05851.jpg", "DSC4180.jpg", "DSC08521.jpg", "DSC06245.jpg", "_DSC4949.jpg"]} # base: {in: ["DSC00201.jpg", "DSC05851.jpg", "DSC4180.jpg", "DSC08521.jpg", "DSC06245.jpg", "_DSC4949.jpg"]}
} }
) { ) {
edges { edges {
@ -80,8 +73,9 @@ export const query = graphql`
gatsbyImageData( gatsbyImageData(
layout: FULL_WIDTH layout: FULL_WIDTH
# placeholder: BLURRED # placeholder: BLURRED
placeholder: NONE placeholder: TRACED_SVG
# blurredOptions: {width: 200} # placeholder: NONE
# blurredOptions: {width: 50}
breakpoints: [750, 1080, 1366, 1920, 2560, 3840] breakpoints: [750, 1080, 1366, 1920, 2560, 3840]
) )
fields { fields {

View File

@ -20,7 +20,7 @@ export const getVibrantToHelmetSafeBodyStyle = (vibrant) => {
'--vibrant': vibrant.Vibrant, '--vibrant': vibrant.Vibrant,
'--dark-vibrant': vibrant.DarkVibrant, '--dark-vibrant': vibrant.DarkVibrant,
'--light-vibrant': vibrant.LightVibrant, '--light-vibrant': vibrant.LightVibrant,
} };
if (typeof window === 'undefined') { if (typeof window === 'undefined') {
return style; return style;
} }