File tree 4 files changed +11
-12
lines changed
examples/with-framer-motion
4 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const Thumbnail = ({ id, i }) => (
35
35
>
36
36
< Link href = "/image/[index]" as = { `/image/${ i } ` } scroll = { false } >
37
37
< motion . img
38
- src = { `https://static1.squarespace .com/static/5b475b2c50a54f54f9b4e1dc/t/ ${ id } .jpg? format=1500w ` }
38
+ src = { `https://images.unsplash .com/${ id } ?auto= format&fit=crop&w=1500 ` }
39
39
alt = "The Barbican"
40
40
variants = { imageVariants }
41
41
transition = { transition }
@@ -69,7 +69,7 @@ const Thumbnail = ({ id, i }) => (
69
69
70
70
const Gallery = ( ) => (
71
71
< >
72
- < h1 > Barbican </ h1 >
72
+ < h1 > Motion </ h1 >
73
73
< div className = "gallery" >
74
74
< motion . div
75
75
className = "thumbnails"
@@ -118,14 +118,14 @@ const Gallery = () => (
118
118
bottom: -130px;
119
119
}
120
120
}
121
-
121
+
122
122
@media screen and (min-width: 800px) {
123
123
h1 {
124
124
font-size: 180px;
125
125
bottom: -170px;
126
126
}
127
127
}
128
-
128
+
129
129
@media screen and (min-width: 1000px) {
130
130
h1 {
131
131
font-size: 220px;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const SingleImage = ({ index }) => (
28
28
< motion . div className = "single" initial = "exit" animate = "enter" exit = "exit" >
29
29
< motion . img
30
30
variants = { imageVariants }
31
- src = { `https://static1.squarespace .com/static/5b475b2c50a54f54f9b4e1dc/t/ ${ images [ index ] } .jpg? format=1500w ` }
31
+ src = { `https://images.unsplash .com/${ images [ index ] } ?auto= format&fit=crop&w=1500 ` }
32
32
alt = "The Barbican"
33
33
/>
34
34
< motion . div className = "back" variants = { backVariants } >
Original file line number Diff line number Diff line change 1
1
export const images = [
2
- '5b5a3938562fa764113169a6/1532639559620/DSCF3338 ' ,
3
- '5b5a3628f950b7390fbfc5f8/1532639027872/DSCF3246 ' ,
4
- '5b5a3741575d1fccb5ac6b3f/1532639066455/DSCF3268 ' ,
5
- '5b5a376b0e2e728eeeaca8e4/1532683586969/DSCF3274 ' ,
6
- '5b5c228403ce64f3c80d4d8e/1532764845121/DSCF3348 ' ,
7
- '5b5a3b800e2e728eeead9575/1532640158813/DSCF3375 ' ,
2
+ 'photo-1520517601640-32ec514e4a15 ' ,
3
+ 'photo-1518780535463-bc357fa46e64 ' ,
4
+ 'photo-1555068178-89125fb6356d ' ,
5
+ 'photo-1553503359-d4ff2537a6ea ' ,
6
+ 'photo-1585211751845-37663b4ab614 ' ,
7
+ 'photo-1496467115032-c504ef76521b ' ,
8
8
]
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ export async function getStaticProps({ params }) {
17
17
export async function getStaticPaths ( ) {
18
18
return {
19
19
paths : images . map ( ( _id , index ) => {
20
- console . log ( index )
21
20
return {
22
21
params : {
23
22
index : `${ index } ` ,
You can’t perform that action at this time.
0 commit comments