-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port using-gatsby-image site to image plugin (#28489)
* Moving examples to new plugin * wip * wip * wip * feat(gatsby-plugin-image): Add useArtDirection hook * Use hook from package * wip * update code and copy * got stuck ong atsby dev versions * address comments * rework * Fix image crop and alt * Fix version Co-authored-by: Laurie <laurie@gatsbyjs.com>
- Loading branch information
Showing
19 changed files
with
449 additions
and
358 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
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,81 +1,81 @@ | ||
- url: https://images.unsplash.com/photo-1534432586043-ead5b99229fb | ||
- url: https://images.unsplash.com/photo-1534432586043-ead5b99229fb?w=1920 | ||
title: Pug with hoodie | ||
credit: Charles Deluvio | ||
- url: https://images.unsplash.com/photo-1530041539828-114de669390e | ||
- url: https://images.unsplash.com/photo-1530041539828-114de669390e?w=1920 | ||
title: Pug with yellow raincoat | ||
credit: Charles Deluvio | ||
- url: https://images.unsplash.com/photo-1495121553079-4c61bcce1894 | ||
- url: https://images.unsplash.com/photo-1495121553079-4c61bcce1894?w=1920 | ||
title: Vintage camera | ||
credit: Alexander Andrews | ||
- url: https://images.unsplash.com/photo-1517519014922-8fc06b814a0e | ||
- url: https://images.unsplash.com/photo-1517519014922-8fc06b814a0e?w=1920 | ||
title: Pug with red hat | ||
credit: Charles Deluvio | ||
- url: https://images.unsplash.com/photo-1530041587872-d823b3d4bed7 | ||
- url: https://images.unsplash.com/photo-1530041587872-d823b3d4bed7?w=1920 | ||
title: Pug without hoodie | ||
credit: Charles Deluvio | ||
|
||
# gallery specific | ||
- url: https://images.unsplash.com/photo-1528475478853-5b89bed65c4c | ||
- url: https://images.unsplash.com/photo-1528475478853-5b89bed65c4c?w=1920 | ||
title: Cactus | ||
credit: Charles Deluvio | ||
gallery: true | ||
- url: https://images.unsplash.com/photo-1528476625962-40d0763c921f | ||
- url: https://images.unsplash.com/photo-1528476625962-40d0763c921f?w=1920 | ||
title: Cacti | ||
credit: Charles Deluvio | ||
gallery: true | ||
- url: https://images.unsplash.com/photo-1525498128493-380d1990a112 | ||
- url: https://images.unsplash.com/photo-1525498128493-380d1990a112?w=1920 | ||
title: Leaves | ||
credit: Chris Lee | ||
gallery: true | ||
- url: https://images.unsplash.com/photo-1539656262152-6cb9103f1a33 | ||
- url: https://images.unsplash.com/photo-1539656262152-6cb9103f1a33?w=1920 | ||
title: City from above | ||
credit: chuttersnap | ||
gallery: true | ||
- url: https://images.unsplash.com/photo-1501004318641-b39e6451bec6 | ||
- url: https://images.unsplash.com/photo-1501004318641-b39e6451bec6?w=1920 | ||
title: Plant with leaves | ||
credit: Igor Son | ||
gallery: true | ||
- url: https://images.unsplash.com/photo-1469201039728-6c8998f9872a | ||
- url: https://images.unsplash.com/photo-1469201039728-6c8998f9872a?w=1920 | ||
title: Alien in the forest | ||
credit: Martin Reisch | ||
gallery: true | ||
- url: https://images.unsplash.com/photo-1483728788451-2708e0270131 | ||
- url: https://images.unsplash.com/photo-1483728788451-2708e0270131?w=1920 | ||
title: Person in center from above | ||
credit: Martin Reisch | ||
gallery: true | ||
- url: https://images.unsplash.com/photo-1485827031228-b1736cb1fd06 | ||
- url: https://images.unsplash.com/photo-1485827031228-b1736cb1fd06?w=1920 | ||
title: Person on football field from above | ||
credit: Martin Reisch | ||
gallery: true | ||
- url: https://images.unsplash.com/photo-1496241028573-69327bf8f9d5 | ||
- url: https://images.unsplash.com/photo-1496241028573-69327bf8f9d5?w=1920 | ||
title: Person on roof from above | ||
credit: Martin Reisch | ||
gallery: true | ||
- url: https://images.unsplash.com/photo-1479859546309-cd77fa21c8f6 | ||
- url: https://images.unsplash.com/photo-1479859546309-cd77fa21c8f6?w=1920 | ||
title: Tennis court | ||
credit: Michele Feola | ||
gallery: true | ||
- url: https://images.unsplash.com/photo-1504981775868-badb3c4ec2bd | ||
- url: https://images.unsplash.com/photo-1504981775868-badb3c4ec2bd?w=1920 | ||
title: Beach | ||
credit: Ryan Christodoulou | ||
gallery: true | ||
- url: https://images.unsplash.com/photo-1505903658795-8d3cc48039e4 | ||
- url: https://images.unsplash.com/photo-1505903658795-8d3cc48039e4?w=1920 | ||
title: Top of house | ||
credit: Simone Hutsch | ||
gallery: true | ||
- url: https://images.unsplash.com/photo-1505904909252-8ce17de9f287 | ||
- url: https://images.unsplash.com/photo-1505904909252-8ce17de9f287?w=1920 | ||
title: Gala | ||
credit: Simone Hutsch | ||
gallery: true | ||
- url: https://images.unsplash.com/photo-1504492729478-4ea346b648ae | ||
- url: https://images.unsplash.com/photo-1504492729478-4ea346b648ae?w=1920 | ||
title: Pool from above | ||
credit: Spencer Watson | ||
gallery: true | ||
- url: https://images.unsplash.com/photo-1498248193836-88f8c8d70a3f | ||
- url: https://images.unsplash.com/photo-1498248193836-88f8c8d70a3f?w=1920 | ||
title: Beach and tents from above | ||
credit: Syd Sujuaan | ||
gallery: true | ||
- url: https://images.unsplash.com/photo-1516962126636-27ad087061cc | ||
- url: https://images.unsplash.com/photo-1516962126636-27ad087061cc?w=1920 | ||
title: Polaroid Pronto 600 | ||
credit: Yoann Siloine | ||
gallery: true |
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
57 changes: 0 additions & 57 deletions
57
examples/using-gatsby-image/src/components/floating-image.js
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@media screen and (max-width: 1024px) { | ||
.art-directed { | ||
width: 400px; | ||
height: 300px; | ||
} | ||
} |
Oops, something went wrong.