Skip to content

Commit

Permalink
refactor: rename to Hygraph (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroschmitz authored Jul 28, 2022
1 parent 36abeb8 commit a8b16c5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 align="center">@graphcms/react-image</h1>

<p align="center">Universal lazy-loading, auto-compressed images with React and GraphCMS.</p>
<p align="center">Universal lazy-loading, auto-compressed images with React and Hygraph.</p>

<p align="center">
<a href="https://npmjs.org/package/@graphcms/react-image">
Expand All @@ -9,12 +9,12 @@
<a href="https://npmjs.org/package/@graphcms/react-image">
<img src="https://img.shields.io/npm/dw/@graphcms/react-image.svg" alt="Downloads/week" />
</a>
<a href="https://github.com/GraphCMS/react-image/stargazers">
<img src="https://img.shields.io/github/stars/GraphCMS/react-image" alt="Forks on GitHub" />
<a href="https://github.com/hygraph/react-image/stargazers">
<img src="https://img.shields.io/github/stars/hygraph/react-image" alt="Forks on GitHub" />
</a>
<img src="https://badgen.net/bundlephobia/minzip/@graphcms/react-image" alt="minified + gzip size" />
<br/>
<a href="https://graphcms-image.netlify.com/?down=0">Demo</a> • <a href="https://slack.graphcms.com">Join us on Slack</a> • <a href="https://app.graphcms.com">Login to GraphCMS</a> • <a href="https://twitter.com/GraphCMS">@GraphCMS</a>
<a href="https://graphcms-image.netlify.com/?down=0">Demo</a> • <a href="https://slack.hygraph.com">Join us on Slack</a> • <a href="https://app.hygraph.com">Login to Hygraph</a> • <a href="https://twitter.com/hygraphcom">@hygraphcom</a>
</p>

* Resize large images to the size needed by your design.
Expand All @@ -38,7 +38,7 @@ const IndexPage = () => {
width: 800,
height: 800
}

return <Image image={asset} maxWidth={800} />
}
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0-semantically-released",
"main": "index.js",
"license": "MIT",
"author": "GraphCMS",
"author": "Hygraph",
"contributors": [
"Hugo Meissner <[email protected]>"
],
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const bgColor = backgroundColor =>
typeof backgroundColor === 'boolean' ? 'lightgray' : backgroundColor

// We always keep the resize transform to have matching sizes + aspect ratio
// If used with native height & width from GraphCMS it produces no transform
// If used with native height & width from Hygraph it produces no transform
const resizeImage = ({ width, height, fit }) =>
`resize=w:${width},h:${height},fit:${fit}`

Expand Down

0 comments on commit a8b16c5

Please sign in to comment.