File tree Expand file tree Collapse file tree 7 files changed +25
-9
lines changed Expand file tree Collapse file tree 7 files changed +25
-9
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ const PageHero: React.FC<IProps> = ({
100
100
// global styles in `src/@chakra-ui/gatsby-plugin/styles.ts`
101
101
< Wrap spacing = { 2 } overflow = "visible" sx = { { ul : { m : 0 } } } >
102
102
{ buttons . map ( ( button , idx ) => {
103
+ const isSecondary = idx !== 0
103
104
if ( isButtonLink ( button ) ) {
104
105
return (
105
106
< WrapItem key = { idx } >
@@ -113,6 +114,7 @@ const PageHero: React.FC<IProps> = ({
113
114
eventName : button . matomo . eventName ,
114
115
} )
115
116
}
117
+ isSecondary = { isSecondary }
116
118
>
117
119
{ button . content }
118
120
</ ButtonLink >
@@ -133,6 +135,7 @@ const PageHero: React.FC<IProps> = ({
133
135
eventName : button . matomo . eventName ,
134
136
} )
135
137
}
138
+ isSecondary = { isSecondary }
136
139
>
137
140
{ button . content }
138
141
</ Button >
Original file line number Diff line number Diff line change @@ -651,7 +651,7 @@ const WhatIsEthereumPage = ({
651
651
< ButtonLink to = "/smart-contracts/" >
652
652
< Translation id = "page-what-is-ethereum-more-on-smart-contracts" />
653
653
</ ButtonLink >
654
- < ButtonLink to = "/dapps/" variant = "outline" >
654
+ < ButtonLink to = "/dapps/" variant = "outline" isSecondary >
655
655
< Translation id = "page-what-is-ethereum-explore-dapps" />
656
656
</ ButtonLink >
657
657
</ ButtonRow >
@@ -678,7 +678,7 @@ const WhatIsEthereumPage = ({
678
678
< ButtonLink to = "/eth/" >
679
679
< Translation id = "page-what-is-ethereum-what-is-ether" />
680
680
</ ButtonLink >
681
- < ButtonLink to = "/get-eth/" variant = "outline" >
681
+ < ButtonLink to = "/get-eth/" variant = "outline" isSecondary >
682
682
< Translation id = "page-what-is-ethereum-get-eth" />
683
683
</ ButtonLink >
684
684
</ ButtonRow >
@@ -705,7 +705,7 @@ const WhatIsEthereumPage = ({
705
705
< ButtonLink to = "/energy-consumption/" >
706
706
< Translation id = "page-what-is-ethereum-more-on-energy-consumption" />
707
707
</ ButtonLink >
708
- < ButtonLink to = "/roadmap/merge/" variant = "outline" >
708
+ < ButtonLink to = "/roadmap/merge/" variant = "outline" isSecondary >
709
709
< Translation id = "page-what-is-ethereum-the-merge-update" />
710
710
</ ButtonLink >
711
711
</ ButtonRow >
Original file line number Diff line number Diff line change @@ -460,7 +460,7 @@ const BugBountiesPage = ({
460
460
< StyledButton to = "https://forms.gle/Gnh4gzGh66Yc3V7G8" >
461
461
< Translation id = "page-upgrades-bug-bounty-submit" />
462
462
</ StyledButton >
463
- < StyledButton variant = "outline" to = "#rules" >
463
+ < StyledButton variant = "outline" to = "#rules" isSecondary >
464
464
< Translation id = "page-upgrades-bug-bounty-rules" />
465
465
</ StyledButton >
466
466
</ ButtonRow >
Original file line number Diff line number Diff line change @@ -324,7 +324,11 @@ const CommunityPage = ({
324
324
< ButtonLink to = "/community/get-involved/#ethereum-jobs/" >
325
325
< Translation id = "page-community-find-a-job" />
326
326
</ ButtonLink >
327
- < StyledButtonLink variant = "outline" to = "/community/grants/" >
327
+ < StyledButtonLink
328
+ variant = "outline"
329
+ to = "/community/grants/"
330
+ isSecondary
331
+ >
328
332
< Translation id = "page-community-explore-grants" />
329
333
</ StyledButtonLink >
330
334
</ ButtonRow >
@@ -370,6 +374,7 @@ const CommunityPage = ({
370
374
< StyledButtonLink
371
375
variant = "outline"
372
376
to = "https://github.com/ethereum/ethereum-org-website/"
377
+ isSecondary
373
378
>
374
379
< Translation id = "page-community-contribute-secondary-button" />
375
380
</ StyledButtonLink >
Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ const HomePage = ({
359
359
< ButtonLink to = "/what-is-ethereum/" >
360
360
< Translation id = "page-index-what-is-ethereum-button" />
361
361
</ ButtonLink >
362
- < ButtonLink to = "/eth/" variant = "outline" >
362
+ < ButtonLink to = "/eth/" variant = "outline" isSecondary >
363
363
< Translation id = "page-index-what-is-ethereum-secondary-button" />
364
364
</ ButtonLink >
365
365
</ ButtonLinkRow >
@@ -438,7 +438,7 @@ const HomePage = ({
438
438
< ButtonLink to = "/dapps/?category=technology" >
439
439
< Translation id = "page-index-internet-button" />
440
440
</ ButtonLink >
441
- < ButtonLink to = "/wallets/" variant = "outline" >
441
+ < ButtonLink to = "/wallets/" variant = "outline" isSecondary >
442
442
< Translation id = "page-index-internet-secondary-button" />
443
443
</ ButtonLink >
444
444
</ ButtonLinkRow >
@@ -570,6 +570,7 @@ const HomePage = ({
570
570
to = "https://github.com/ethereum/ethereum-org-website"
571
571
leftIcon = { < Icon as = { FaGithub } fontSize = "2xl" /> }
572
572
variant = "outline"
573
+ isSecondary
573
574
>
574
575
GitHub
575
576
</ ButtonLink >
Original file line number Diff line number Diff line change @@ -809,7 +809,7 @@ const RunANodePage = ({ data }: PageProps<Queries.RunANodePageQuery>) => {
809
809
>
810
810
< Translation id = "page-run-a-node-community-link-1" />
811
811
</ ButtonLink >
812
- < ButtonLink to = "/community/online/" variant = "outline" >
812
+ < ButtonLink to = "/community/online/" variant = "outline" isSecondary >
813
813
< Translation id = "page-run-a-node-community-link-2" />
814
814
</ ButtonLink >
815
815
</ ButtonContainer >
Original file line number Diff line number Diff line change @@ -505,6 +505,7 @@ const StablecoinsPage = ({ data }: PageProps<Queries.StablecoinsPageQuery>) => {
505
505
< ButtonLink
506
506
variant = "outline"
507
507
to = "https://kb.oasis.app/help/what-is-dai"
508
+ isSecondary
508
509
>
509
510
< Translation id = "page-stablecoins-dai-banner-learn-button" />
510
511
</ ButtonLink >
@@ -556,6 +557,7 @@ const StablecoinsPage = ({ data }: PageProps<Queries.StablecoinsPageQuery>) => {
556
557
< ButtonLink
557
558
variant = "outline"
558
559
to = "https://www.coinbase.com/usdc"
560
+ isSecondary
559
561
>
560
562
< Translation id = "page-stablecoins-usdc-banner-learn-button" />
561
563
</ ButtonLink >
@@ -627,7 +629,12 @@ const StablecoinsPage = ({ data }: PageProps<Queries.StablecoinsPageQuery>) => {
627
629
< ButtonLink to = "/dapps/" >
628
630
< Translation id = "page-stablecoins-explore-dapps" />
629
631
</ ButtonLink >
630
- < ButtonLink variant = "outline" to = "/defi/" whiteSpace = "normal" >
632
+ < ButtonLink
633
+ variant = "outline"
634
+ to = "/defi/"
635
+ whiteSpace = "normal"
636
+ isSecondary
637
+ >
631
638
< Translation id = "page-stablecoins-more-defi-button" />
632
639
</ ButtonLink >
633
640
</ Flex >
You can’t perform that action at this time.
0 commit comments