Skip to content

Commit 74ee713

Browse files
committed
Merge branch 'dev' into all-contributors/add-SaratAngajalaoffl
2 parents 66cadda + d025e76 commit 74ee713

File tree

34 files changed

+1660
-1151
lines changed

34 files changed

+1660
-1151
lines changed

.all-contributorsrc

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9882,6 +9882,79 @@
98829882
"contributions": [
98839883
"doc"
98849884
]
9885+
},
9886+
{
9887+
"login": "questions",
9888+
"name": "questions",
9889+
"avatar_url": "https://avatars.githubusercontent.com/u/3233328?v=4",
9890+
"profile": "https://github.com/Questions",
9891+
"contributions": [
9892+
"projectManagement",
9893+
"question"
9894+
]
9895+
},
9896+
{
9897+
"login": "machin3boy",
9898+
"name": "machin3boy",
9899+
"avatar_url": "https://avatars.githubusercontent.com/u/78896694?v=4",
9900+
"profile": "https://github.com/machin3boy",
9901+
"contributions": [
9902+
"content"
9903+
]
9904+
},
9905+
{
9906+
"login": "nsexer",
9907+
"name": "nethan",
9908+
"avatar_url": "https://avatars.githubusercontent.com/u/30265113?v=4",
9909+
"profile": "https://github.com/nsexer",
9910+
"contributions": [
9911+
"content"
9912+
]
9913+
},
9914+
{
9915+
"login": "MrJithil",
9916+
"name": "Jithil P Ponnan",
9917+
"avatar_url": "https://avatars.githubusercontent.com/u/26359740?v=4",
9918+
"profile": "https://www.linkedin.com/in/jithil",
9919+
"contributions": [
9920+
"doc"
9921+
]
9922+
},
9923+
{
9924+
"login": "chocolatesuit",
9925+
"name": "chocolatesuit",
9926+
"avatar_url": "https://avatars.githubusercontent.com/u/120116662?v=4",
9927+
"profile": "https://github.com/chocolatesuit",
9928+
"contributions": [
9929+
"content"
9930+
]
9931+
},
9932+
{
9933+
"login": "apinanyogaratnam",
9934+
"name": "Apinan Yogaratnam",
9935+
"avatar_url": "https://avatars.githubusercontent.com/u/72412733?v=4",
9936+
"profile": "http://apinanyogaratnam.github.io/my-personal-website-v2.0/",
9937+
"contributions": [
9938+
"content"
9939+
]
9940+
},
9941+
{
9942+
"login": "trevorsc19",
9943+
"name": "trevorsc19",
9944+
"avatar_url": "https://avatars.githubusercontent.com/u/30576577?v=4",
9945+
"profile": "http://trevorscanlon.eth.xyz",
9946+
"contributions": [
9947+
"content"
9948+
]
9949+
},
9950+
{
9951+
"login": "thouravi",
9952+
"name": "ImThour",
9953+
"avatar_url": "https://avatars.githubusercontent.com/u/15676184?v=4",
9954+
"profile": "https://github.com/thouravi",
9955+
"contributions": [
9956+
"code"
9957+
]
98859958
}
98869959
],
98879960
"contributorsPerLine": 7,

README.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,45 +51,45 @@ If you're ready to contribute and create your PR, it will help to set up a local
5151
If this is your first time forking our repo, this is all you need to do for this step:
5252

5353
```sh
54-
$ git clone git@github.com:[your_github_handle]/ethereum-org-website.git && cd ethereum-org-website
54+
git clone git@github.com:[your_github_handle]/ethereum-org-website.git && cd ethereum-org-website
5555
```
5656

5757
If you've already forked the repo, you'll want to ensure your fork is configured and that it's up to date. This will save you the headache of potential merge conflicts.
5858

5959
To [configure your fork](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/configuring-a-remote-for-a-fork):
6060

6161
```sh
62-
$ git remote add upstream https://github.com/ethereum/ethereum-org-website.git
62+
git remote add upstream https://github.com/ethereum/ethereum-org-website.git
6363
```
6464

6565
To [sync your fork with the latest changes](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork):
6666

6767
```sh
68-
$ git checkout dev
69-
$ git fetch upstream
70-
$ git merge upstream/dev
68+
git checkout dev
69+
git fetch upstream
70+
git merge upstream/dev
7171
```
7272

7373
3. Install dependencies
7474

7575
We recommend using a node manager to use multiple node versions in your system. We use [Volta](https://volta.sh/). In case you don't use a manager or you use `nvm`, you can check the currently supported versions under the `"volta"` section on our `package.json` file.
7676

7777
```sh
78-
$ yarn
78+
yarn
7979
```
8080

8181
### 4. Make awesome changes!
8282

8383
1. Create new branch for your changes
8484

8585
```sh
86-
$ git checkout -b new_branch_name
86+
git checkout -b new_branch_name
8787
```
8888

8989
2. Start developing!
9090

9191
```sh
92-
$ yarn start
92+
yarn start
9393
```
9494

9595
- Open this directory in your favorite text editor / IDE, and see your changes live by visiting `localhost:8000` from your browser
@@ -102,13 +102,13 @@ By default the script will build all the languages (complete list in `data/trans
102102
3. Commit and prepare for pull request (PR). In your PR commit message, reference the issue it resolves (see [how to link a commit message to an issue using a keyword](https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)).
103103

104104
```sh
105-
$ git commit -m "brief description of changes [Fixes #1234]"
105+
git commit -m "brief description of changes [Fixes #1234]"
106106
```
107107

108108
4. Push to your GitHub account
109109

110110
```sh
111-
$ git push
111+
git push
112112
```
113113

114114
### 5. Local development with lambda functions
@@ -1549,6 +1549,16 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
15491549
<td align="center" valign="top" width="14.28%"><a href="https://github.com/qiuhaohao"><img src="https://avatars.githubusercontent.com/u/22148367?v=4?s=100" width="100px;" alt="qiuhaohao"/><br /><sub><b>qiuhaohao</b></sub></a><br /><a href="#content-qiuhaohao" title="Content">🖋</a></td>
15501550
<td align="center" valign="top" width="14.28%"><a href="https://github.com/debeldami"><img src="https://avatars.githubusercontent.com/u/44111962?v=4?s=100" width="100px;" alt="damilola debel"/><br /><sub><b>damilola debel</b></sub></a><br /><a href="#content-debeldami" title="Content">🖋</a></td>
15511551
<td align="center" valign="top" width="14.28%"><a href="https://github.com/SaratAngajalaoffl"><img src="https://avatars.githubusercontent.com/u/60383339?v=4?s=100" width="100px;" alt="Sarat Angajala"/><br /><sub><b>Sarat Angajala</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=SaratAngajalaoffl" title="Documentation">📖</a></td>
1552+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Questions"><img src="https://avatars.githubusercontent.com/u/3233328?v=4?s=100" width="100px;" alt="questions"/><br /><sub><b>questions</b></sub></a><br /><a href="#projectManagement-questions" title="Project Management">📆</a> <a href="#question-questions" title="Answering Questions">💬</a></td>
1553+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/machin3boy"><img src="https://avatars.githubusercontent.com/u/78896694?v=4?s=100" width="100px;" alt="machin3boy"/><br /><sub><b>machin3boy</b></sub></a><br /><a href="#content-machin3boy" title="Content">🖋</a></td>
1554+
</tr>
1555+
<tr>
1556+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/nsexer"><img src="https://avatars.githubusercontent.com/u/30265113?v=4?s=100" width="100px;" alt="nethan"/><br /><sub><b>nethan</b></sub></a><br /><a href="#content-nsexer" title="Content">🖋</a></td>
1557+
<td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/jithil"><img src="https://avatars.githubusercontent.com/u/26359740?v=4?s=100" width="100px;" alt="Jithil P Ponnan"/><br /><sub><b>Jithil P Ponnan</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=MrJithil" title="Documentation">📖</a></td>
1558+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/chocolatesuit"><img src="https://avatars.githubusercontent.com/u/120116662?v=4?s=100" width="100px;" alt="chocolatesuit"/><br /><sub><b>chocolatesuit</b></sub></a><br /><a href="#content-chocolatesuit" title="Content">🖋</a></td>
1559+
<td align="center" valign="top" width="14.28%"><a href="http://apinanyogaratnam.github.io/my-personal-website-v2.0/"><img src="https://avatars.githubusercontent.com/u/72412733?v=4?s=100" width="100px;" alt="Apinan Yogaratnam"/><br /><sub><b>Apinan Yogaratnam</b></sub></a><br /><a href="#content-apinanyogaratnam" title="Content">🖋</a></td>
1560+
<td align="center" valign="top" width="14.28%"><a href="http://trevorscanlon.eth.xyz"><img src="https://avatars.githubusercontent.com/u/30576577?v=4?s=100" width="100px;" alt="trevorsc19"/><br /><sub><b>trevorsc19</b></sub></a><br /><a href="#content-trevorsc19" title="Content">🖋</a></td>
1561+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/thouravi"><img src="https://avatars.githubusercontent.com/u/15676184?v=4?s=100" width="100px;" alt="ImThour"/><br /><sub><b>ImThour</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=thouravi" title="Code">💻</a></td>
15521562
</tr>
15531563
</tbody>
15541564
</table>

src/api/coinmetrics.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/components/AssetDownload.tsx

Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
import React from "react"
2-
import styled from "@emotion/styled"
32
import { GatsbyImage } from "gatsby-plugin-image"
3+
import {
4+
Box,
5+
Flex,
6+
Container,
7+
Img,
8+
Center,
9+
Heading,
10+
Text,
11+
} from "@chakra-ui/react"
412

513
import Translation from "../components/Translation"
614
import ButtonLink from "./ButtonLink"
7-
import Emoji from "./OldEmoji"
15+
import Emoji from "./Emoji"
816
import Link from "./Link"
917

1018
import { getImage, getSrc, ImageDataLike } from "../utils/image"
@@ -34,56 +42,6 @@ interface IPropsWithImage extends IPropsBase {
3442

3543
export type IProps = IPropsWithImage | IPropsWithSVG
3644

37-
const Container = styled.div<IHide>`
38-
flex: 1 1 45%;
39-
display: flex;
40-
flex-direction: column;
41-
justify-content: space-between;
42-
margin: 1rem;
43-
opacity: ${(props) => (props.shouldHide ? 0 : 1)};
44-
@media (max-width: ${(props) => props.theme.breakpoints.l}) {
45-
display: ${(props) => (props.shouldHide ? `none` : `flex`)};
46-
}
47-
`
48-
49-
const Image = styled(GatsbyImage)`
50-
align-self: center;
51-
width: 100%;
52-
`
53-
54-
const ImageContainer = styled.div`
55-
border: 1px solid ${(props) => props.theme.colors.white700};
56-
width: 100%;
57-
padding: 2rem;
58-
text-align: center;
59-
display: flex;
60-
justify-content: center;
61-
`
62-
63-
const ArtistSubtitle = styled.div`
64-
display: flex;
65-
font-size: ${(props) => props.theme.fontSizes.m};
66-
color: ${(props) => props.theme.colors.text300};
67-
margin-right: 0.5rem;
68-
`
69-
70-
const Caption = styled.div`
71-
display: flex;
72-
justify-content: flex-start;
73-
margin-bottom: 1rem;
74-
width: 100%;
75-
background: ${(props) => props.theme.colors.background};
76-
border-left: 1px solid ${(props) => props.theme.colors.white700};
77-
border-bottom: 1px solid ${(props) => props.theme.colors.white700};
78-
border-right: 1px solid ${(props) => props.theme.colors.white700};
79-
border-radius: 0px 0px 4px 4px;
80-
padding: 0.5rem 1rem;
81-
`
82-
83-
const ButtonContainer = styled.div`
84-
margin-top: 1rem;
85-
`
86-
8745
// TODO add ability to download SVGs
8846
const AssetDownload: React.FC<IProps> = ({
8947
alt,
@@ -102,35 +60,77 @@ const AssetDownload: React.FC<IProps> = ({
10260
const Svg = svg
10361

10462
return (
105-
<Container shouldHide={shouldHide}>
106-
<h4>{title}</h4>
107-
<div>
108-
{children && <ImageContainer>{children}</ImageContainer>}
63+
<Box
64+
display={{
65+
base: shouldHide ? "none" : "flex",
66+
lg: "flex",
67+
}}
68+
maxW="100%"
69+
minW="170px"
70+
flex="1 1 45%"
71+
flexDirection="column"
72+
justifyContent="space-between"
73+
m={4}
74+
p={0}
75+
opacity={shouldHide ? 0 : 1}
76+
>
77+
<Heading as="h4" fontSize={{ base: "md", md: "xl" }} fontWeight="500">
78+
{title}
79+
</Heading>
80+
<Box>
81+
{children && (
82+
<Flex
83+
border="1px"
84+
borderColor="white700"
85+
w="100%"
86+
p={8}
87+
textAlign="center"
88+
justify="center"
89+
>
90+
{children}
91+
</Flex>
92+
)}
10993
{!children && (
110-
<ImageContainer>
94+
<Center border="1px" borderColor="white700" p={8} w="100%">
11195
{Svg && <Svg alt={alt} />}
112-
{image && <Image image={getImage(image)!} alt={alt} />}
113-
</ImageContainer>
96+
{image && (
97+
<Img
98+
as={GatsbyImage}
99+
image={getImage(image)!}
100+
alt={alt}
101+
w="100%"
102+
alignSelf="center"
103+
/>
104+
)}
105+
</Center>
114106
)}
115107
{artistName && (
116-
<Caption>
117-
<ArtistSubtitle>
118-
<Emoji text=":artist_palette:" mr={`0.5em`} />
108+
<Flex
109+
mb={4}
110+
border="1px"
111+
borderTop="none"
112+
borderColor="white700"
113+
py={2}
114+
px={4}
115+
borderRadius="0 0 4px 4px"
116+
>
117+
<Flex mr={2} fontSize="md" textColor="text300">
118+
<Emoji text=":artist_palette:" mr={2} fontSize="2xl" />
119119
<Translation id="page-assets-download-artist" />
120-
</ArtistSubtitle>
120+
</Flex>
121121
{artistUrl && <Link to={artistUrl}>{artistName}</Link>}
122-
{!artistUrl && <span>{artistName}</span>}
123-
</Caption>
122+
{!artistUrl && <Text m={0}>{artistName}</Text>}
123+
</Flex>
124124
)}
125-
</div>
126-
<ButtonContainer>
125+
</Box>
126+
<Box mt={4} p={0}>
127127
{!Svg && (
128128
<ButtonLink to={downloadUrl}>
129129
<Translation id="page-assets-download-download" />
130130
</ButtonLink>
131131
)}
132-
</ButtonContainer>
133-
</Container>
132+
</Box>
133+
</Box>
134134
)
135135
}
136136

0 commit comments

Comments
 (0)