From 808d6b94eb8d806e60bc46623e61996e8e0348d9 Mon Sep 17 00:00:00 2001 From: Joris Date: Tue, 1 Sep 2020 20:03:41 +0200 Subject: [PATCH] [EXAMPLE] with-framer-motion: fix broken images (#16714) * refactor: remove useless console.log * fix: replace broken images * Updated title Co-authored-by: Luis Alvarez Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- examples/with-framer-motion/components/Gallery.js | 8 ++++---- .../with-framer-motion/components/SingleImage.js | 2 +- examples/with-framer-motion/constants.js | 12 ++++++------ examples/with-framer-motion/pages/image/[index].js | 1 - 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/examples/with-framer-motion/components/Gallery.js b/examples/with-framer-motion/components/Gallery.js index b0e2e770d5463..bf7d8c0901518 100644 --- a/examples/with-framer-motion/components/Gallery.js +++ b/examples/with-framer-motion/components/Gallery.js @@ -35,7 +35,7 @@ const Thumbnail = ({ id, i }) => ( > ( const Gallery = () => ( <> -

Barbican

+

Motion

( bottom: -130px; } } - + @media screen and (min-width: 800px) { h1 { font-size: 180px; bottom: -170px; } } - + @media screen and (min-width: 1000px) { h1 { font-size: 220px; diff --git a/examples/with-framer-motion/components/SingleImage.js b/examples/with-framer-motion/components/SingleImage.js index b14569934c8f2..e1e23d53a94f5 100644 --- a/examples/with-framer-motion/components/SingleImage.js +++ b/examples/with-framer-motion/components/SingleImage.js @@ -28,7 +28,7 @@ const SingleImage = ({ index }) => ( diff --git a/examples/with-framer-motion/constants.js b/examples/with-framer-motion/constants.js index 6ef78bfd1998b..7e48c3ec64b81 100644 --- a/examples/with-framer-motion/constants.js +++ b/examples/with-framer-motion/constants.js @@ -1,8 +1,8 @@ export const images = [ - '5b5a3938562fa764113169a6/1532639559620/DSCF3338', - '5b5a3628f950b7390fbfc5f8/1532639027872/DSCF3246', - '5b5a3741575d1fccb5ac6b3f/1532639066455/DSCF3268', - '5b5a376b0e2e728eeeaca8e4/1532683586969/DSCF3274', - '5b5c228403ce64f3c80d4d8e/1532764845121/DSCF3348', - '5b5a3b800e2e728eeead9575/1532640158813/DSCF3375', + 'photo-1520517601640-32ec514e4a15', + 'photo-1518780535463-bc357fa46e64', + 'photo-1555068178-89125fb6356d', + 'photo-1553503359-d4ff2537a6ea', + 'photo-1585211751845-37663b4ab614', + 'photo-1496467115032-c504ef76521b', ] diff --git a/examples/with-framer-motion/pages/image/[index].js b/examples/with-framer-motion/pages/image/[index].js index d997d5f94f40f..e4e64af882922 100644 --- a/examples/with-framer-motion/pages/image/[index].js +++ b/examples/with-framer-motion/pages/image/[index].js @@ -17,7 +17,6 @@ export async function getStaticProps({ params }) { export async function getStaticPaths() { return { paths: images.map((_id, index) => { - console.log(index) return { params: { index: `${index}`,