@@ -7,20 +7,21 @@ import MainArticle from "@/components/MainArticle"
7
7
import NetworkMaturity from "@/components/NetworkMaturity"
8
8
import { ButtonLink } from "@/components/ui/buttons/Button"
9
9
10
+ import useTranslation from "@/hooks/useTranslation"
10
11
import { usePathname } from "@/i18n/routing"
11
12
import Callout2Image from "@/public/images/layer-2/layer-2-walking.png"
12
13
import Callout1Image from "@/public/images/man-and-dog-playing.png"
13
14
14
15
const Layer2Networks = ( { layer2Data, locale, mainnetData } ) => {
15
16
const pathname = usePathname ( )
17
+ const { t } = useTranslation ( [ "page-layer-2-networks" , "common" ] )
16
18
17
19
const heroProps : ContentHeroProps = {
18
20
breadcrumbs : { slug : pathname , startDepth : 1 } ,
19
21
heroImg : "/images/layer-2/learn-hero.png" ,
20
22
blurDataURL : "/images/layer-2/learn-hero.png" ,
21
- title : "Explore networks" ,
22
- description :
23
- "Using Ethereum today means interacting with hundreds of different networks and apps. All backed by Ethereum as the foundational backbone." ,
23
+ title : t ( "common:nav-networks-explore-networks-label" ) ,
24
+ description : t ( "page-layer-2-networks-hero-description" ) ,
24
25
}
25
26
26
27
return (
@@ -35,23 +36,22 @@ const Layer2Networks = ({ layer2Data, locale, mainnetData }) => {
35
36
36
37
< div id = "more-advanced-cta" className = "w-full px-8 py-9" >
37
38
< div className = "flex flex-col gap-8 bg-main-gradient px-12 py-14" >
38
- < h3 > Looking for more advanced overview? </ h3 >
39
+ < h3 > { t ( "page-layer-2-networks- more- advanced-title" ) } </ h3 >
39
40
< div className = "flex max-w-[768px] flex-col gap-8" >
40
41
< p >
41
- Many of the projects are{ " " }
42
- < strong > still young and somewhat experimental.</ strong >
43
- </ p >
44
- < p >
45
- For more information on the technology, risks and trust
46
- assumptions of these networks, we recommend checking out L2BEAT,
47
- which provides a comprehensive risk assessment framework of each
48
- project and growthepie for general data analysis.
42
+ { t ( "page-layer-2-networks-more-advanced-descripton-1" ) } { " " }
43
+ < strong >
44
+ { t ( "page-layer-2-networks-more-advanced-descripton-2" ) }
45
+ </ strong >
49
46
</ p >
47
+ < p > { t ( "page-layer-2-networks-more-advanced-descripton-3" ) } </ p >
50
48
</ div >
51
49
< div className = "flex flex-col gap-6 sm:flex-row" >
52
- < ButtonLink href = "https://l2beat.com" > Visit l2beat.com</ ButtonLink >
50
+ < ButtonLink href = "https://l2beat.com" >
51
+ { t ( "page-layer-2-networks-more-advanced-link-1" ) }
52
+ </ ButtonLink >
53
53
< ButtonLink href = "https://growthepie.xyz" >
54
- Visit growthepie.xyz
54
+ { t ( "page-layer-2-networks-more-advanced-link-2" ) }
55
55
</ ButtonLink >
56
56
</ div >
57
57
</ div >
@@ -65,10 +65,8 @@ const Layer2Networks = ({ layer2Data, locale, mainnetData }) => {
65
65
>
66
66
< Callout
67
67
image = { Callout1Image }
68
- title = { "What are the benefits?" }
69
- description = {
70
- "Ethereum's strength and security provides a platform for other networks to build upon."
71
- }
68
+ title = { t ( "page-layer-2-networks-callout-1-title" ) }
69
+ description = { t ( "page-layer-2-networks-callout-1-description" ) }
72
70
>
73
71
< div >
74
72
< ButtonLink
@@ -79,16 +77,14 @@ const Layer2Networks = ({ layer2Data, locale, mainnetData }) => {
79
77
eventName : "bottom_hub" ,
80
78
} }
81
79
>
82
- Learn more
80
+ { t ( "common:learn- more" ) }
83
81
</ ButtonLink >
84
82
</ div >
85
83
</ Callout >
86
84
< Callout
87
85
image = { Callout2Image }
88
- title = { "Interested in more details?" }
89
- description = {
90
- "Curious about the technology and reasons for this scaling approach? Learn more about the thinking and different technological approaches."
91
- }
86
+ title = { t ( "page-layer-2-networks-callout-2-title" ) }
87
+ description = { t ( "page-layer-2-networks-callout-2-description" ) }
92
88
>
93
89
< div >
94
90
< ButtonLink
@@ -99,7 +95,7 @@ const Layer2Networks = ({ layer2Data, locale, mainnetData }) => {
99
95
eventName : "bottom_learn" ,
100
96
} }
101
97
>
102
- Learn more
98
+ { t ( "common:learn- more" ) }
103
99
</ ButtonLink >
104
100
</ div >
105
101
</ Callout >
0 commit comments