-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8038 from ethereum/dev
Deploy v6.6.0
- Loading branch information
Showing
84 changed files
with
2,051 additions
and
803 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
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,6 +1,6 @@ | ||
{ | ||
"name": "ethereum-org-website", | ||
"version": "6.5.0", | ||
"version": "6.6.0", | ||
"description": "Website of ethereum.org", | ||
"main": "index.js", | ||
"repository": "[email protected]:ethereum/ethereum-org-website.git", | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,58 @@ | ||
import React from "react" | ||
import { Flex, Image } from "@chakra-ui/react" | ||
import { useColorMode } from "@chakra-ui/react" | ||
import { useStaticQuery, graphql } from "gatsby" | ||
import { GatsbyImage } from "gatsby-plugin-image" | ||
import { getImage } from "../utils/image" | ||
|
||
export interface IProps {} | ||
|
||
const TranslationChartImage: React.FC<IProps> = () => { | ||
const { colorMode } = useColorMode() | ||
const isDarkTheme = colorMode === "dark" | ||
|
||
const data = useStaticQuery(graphql` | ||
{ | ||
pageviewsLight: file( | ||
relativePath: { eq: "translation-program/pageviews-light.png" } | ||
) { | ||
childImageSharp { | ||
gatsbyImageData( | ||
height: 500 | ||
layout: FIXED | ||
placeholder: BLURRED | ||
quality: 100 | ||
) | ||
} | ||
} | ||
pageviewsDark: file( | ||
relativePath: { eq: "translation-program/pageviews-dark.png" } | ||
) { | ||
childImageSharp { | ||
gatsbyImageData( | ||
height: 500 | ||
layout: FIXED | ||
placeholder: BLURRED | ||
quality: 100 | ||
) | ||
} | ||
} | ||
} | ||
`) | ||
|
||
const ethImage = isDarkTheme ? data.pageviewsDark : data.pageviewsLight | ||
|
||
return ( | ||
<Flex justifyContent="center" objectFit="contain"> | ||
<Image | ||
as={GatsbyImage} | ||
image={getImage(ethImage)!} | ||
alt="" | ||
fit="contain" | ||
minW="263px" | ||
/> | ||
</Flex> | ||
) | ||
} | ||
|
||
export default TranslationChartImage |
Oops, something went wrong.