1
+ import type { GetStaticProps } from "next/types"
2
+ import { type SSRConfig , useTranslation } from "next-i18next"
3
+ import { serverSideTranslations } from "next-i18next/serverSideTranslations"
1
4
import {
2
5
Box ,
3
6
Center ,
4
7
Flex ,
5
8
Heading ,
6
- SimpleGrid ,
7
9
type HeadingProps ,
10
+ SimpleGrid ,
8
11
type SimpleGridProps ,
9
12
useColorModeValue ,
10
13
} from "@chakra-ui/react"
11
- import { type SSRConfig , useTranslation } from "next-i18next"
12
- import type { GetStaticProps } from "next/types"
13
- import { serverSideTranslations } from "next-i18next/serverSideTranslations"
14
+
15
+ import type { ChildOnlyProp } from "@/lib/types"
14
16
15
17
import AssetDownload from "@/components/AssetDownload"
16
- import InlineLink from "@/components/Link"
17
- import PageMetadata from "@/components/PageMetadata"
18
18
import FeedbackCard from "@/components/FeedbackCard"
19
- import OldHeading from "@/components/OldHeading"
20
19
import { Image } from "@/components/Image"
20
+ import InlineLink from "@/components/Link"
21
+ import OldHeading from "@/components/OldHeading"
22
+ import PageMetadata from "@/components/PageMetadata"
23
+
24
+ import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
25
+ // import efLogo from "@/public/ef-logo.png"
26
+ // import efLogoWhite from "@/public/ef-logo-white.png"
27
+ // import ethDiamondBlackHero from "@/public/assets/eth-diamond-black.png"
28
+ // import ethDiamondPurpleHero from "@/public/assets/eth-diamond-purple.png"
29
+ // import ethGifCat from "@/public/eth-gif-cat.png"
30
+ // import ethGifChalk from "@/public/eth-gif-chalk.png"
31
+ // import ethGifSun from "@/public/eth-gif-sun.png"
32
+ // import ethGifWaves from "@/public/eth-gif-waves.png"
33
+ // import ethPortraitPurpleWhite from "@/public/assets/ethereum-logo-portrait-purple-white.png"
34
+ // import leslieTheRhino from "@/public/upgrades/upgrade_rhino.png"
35
+ import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
21
36
22
- import beaconChain from "@/public/upgrades/core.png"
23
- import dao from "@/public/use-cases/dao-2.png"
24
- import defi from "@/public/use-cases/defi.png"
25
- import developers from "@/public/developers-eth-blocks.png"
26
- import doge from "@/public/doge-computer.png"
27
- import enterprise from "@/public/enterprise-eth.png"
28
- import eth from "@/public/eth.png"
29
37
import ethDiamondBlack from "@/public/assets/eth-diamond-black.png"
30
38
import ethDiamondBlackGray from "@/public/assets/eth-diamond-black-gray.png"
31
39
import ethDiamondBlackWhite from "@/public/assets/eth-diamond-black-white.jpg"
32
- import ethDiamondColor from "@/public/assets/eth-diamond-rainbow.png"
33
40
import ethDiamondGlyph from "@/public/assets/eth-diamond-glyph.png"
34
41
import ethDiamondPurple from "@/public/assets/eth-diamond-purple.png"
35
42
import ethDiamondPurplePurple from "@/public/assets/eth-diamond-purple-purple.png"
36
43
import ethDiamondPurpleWhite from "@/public/assets/eth-diamond-purple-white.jpg"
44
+ import ethDiamondColor from "@/public/assets/eth-diamond-rainbow.png"
37
45
import ethGlyphColored from "@/public/assets/eth-glyph-colored.png"
38
46
import ethLandscapeBlack from "@/public/assets/ethereum-logo-landscape-black.png"
39
47
import ethLandscapeBlackGray from "@/public/assets/ethereum-logo-landscape-black-gray.png"
@@ -49,33 +57,26 @@ import ethWordmarkBlackGray from "@/public/assets/ethereum-wordmark-black-gray.p
49
57
import ethWordmarkPurple from "@/public/assets/ethereum-wordmark-purple.png"
50
58
import ethWordmarkPurplePurple from "@/public/assets/ethereum-wordmark-purple-purple.png"
51
59
import ethWordmarkPurpleWhite from "@/public/assets/ethereum-wordmark-purple-white.png"
60
+ import developers from "@/public/developers-eth-blocks.png"
61
+ import doge from "@/public/doge-computer.png"
62
+ import enterprise from "@/public/enterprise-eth.png"
63
+ import eth from "@/public/eth.png"
52
64
import finance from "@/public/finance_transparent.png"
53
65
import future from "@/public/future_transparent.png"
54
66
import hackathon from "@/public/hackathon_transparent.png"
55
67
import hero from "@/public/home/hero.png"
56
68
import heroPanda from "@/public/home/hero-panda.png"
69
+ import mergePanda from "@/public/home/merge-panda.png"
57
70
import impact from "@/public/impact_transparent.png"
58
71
import infrastructure from "@/public/infrastructure_transparent.png"
72
+ import beaconChain from "@/public/upgrades/core.png"
59
73
import merge from "@/public/upgrades/merge.png"
60
- import mergePanda from "@/public/home/merge-panda.png"
61
74
import newRings from "@/public/upgrades/newrings.png"
62
75
import oldShip from "@/public/upgrades/oldship.png"
76
+ import dao from "@/public/use-cases/dao-2.png"
77
+ import defi from "@/public/use-cases/defi.png"
63
78
import wallet from "@/public/wallet.png"
64
79
import whatIsEthereum from "@/public/what-is-ethereum.png"
65
- // import efLogo from "@/public/ef-logo.png"
66
- // import efLogoWhite from "@/public/ef-logo-white.png"
67
- // import ethDiamondBlackHero from "@/public/assets/eth-diamond-black.png"
68
- // import ethDiamondPurpleHero from "@/public/assets/eth-diamond-purple.png"
69
- // import ethGifCat from "@/public/eth-gif-cat.png"
70
- // import ethGifChalk from "@/public/eth-gif-chalk.png"
71
- // import ethGifSun from "@/public/eth-gif-sun.png"
72
- // import ethGifWaves from "@/public/eth-gif-waves.png"
73
- // import ethPortraitPurpleWhite from "@/public/assets/ethereum-logo-portrait-purple-white.png"
74
- // import leslieTheRhino from "@/public/upgrades/upgrade_rhino.png"
75
-
76
- import { getRequiredNamespacesForPath } from "@/lib/utils/translations"
77
- import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
78
- import type { ChildOnlyProp } from "@/lib/types"
79
80
80
81
const Row = ( props : SimpleGridProps ) => (
81
82
< SimpleGrid
@@ -109,7 +110,7 @@ const H3 = (props: ChildOnlyProp) => (
109
110
export const getStaticProps = ( async ( context ) => {
110
111
const { locale } = context
111
112
// load i18n required namespaces for the given page
112
- const requiredNamespaces = getRequiredNamespacesForPath ( "/ assets")
113
+ const requiredNamespaces = getRequiredNamespacesForPage ( " assets")
113
114
const lastDeployDate = getLastDeployDate ( )
114
115
115
116
return {
0 commit comments