Skip to content

Commit 452f64f

Browse files
authored
Merge branch 'dev' into acknowledgements-page
2 parents 57c959d + f8c1d5f commit 452f64f

File tree

14 files changed

+1117
-228
lines changed

14 files changed

+1117
-228
lines changed

next.config.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ module.exports = (phase, { defaultConfig }) => {
2929
test: /\.svg$/,
3030
use: "@svgr/webpack",
3131
})
32-
config.module.rules.push({
33-
test: /\.mp4$/,
34-
use: {
35-
loader: 'file-loader',
36-
options: {
37-
name: '[name].[ext]',
38-
},
39-
},
40-
});
4132

4233
return config
4334
},

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"@emotion/styled": "^11.11.0",
2424
"clipboard": "^2.0.11",
2525
"ethereum-blockies-base64": "^1.0.2",
26-
"file-loader": "^6.2.0",
2726
"focus-trap-react": "^10.2.3",
2827
"framer-motion": "^10.13.0",
2928
"gray-matter": "^4.0.3",

src/components/EthVideo.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { Box, useColorModeValue } from "@chakra-ui/react"
22

3-
import darkVideo from "@/public/ethereum-hero-dark.mp4"
4-
import lightVideo from "@/public/ethereum-hero-light.mp4"
5-
63
const EthVideo = () => {
7-
const src = useColorModeValue(lightVideo, darkVideo)
4+
const src = useColorModeValue("ethereum-hero-light.mp4", "ethereum-hero-dark.mp4")
85

96
return (
107
<Box>

src/components/Layer2/Layer2Onboard.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { useState } from "react"
2+
import { StaticImageData } from "next/image"
23
import { useTranslation } from "next-i18next"
34
import {
45
Box,
@@ -10,17 +11,20 @@ import {
1011
UnorderedList,
1112
} from "@chakra-ui/react"
1213

14+
import type { ChildOnlyProp } from "@/lib/types"
15+
16+
import { Image } from "@/components/Image"
17+
18+
import { trackCustomEvent } from "@/lib/utils/matomo"
19+
1320
// Data
1421
import {
1522
CexOnboard,
1623
cexOnboardData,
1724
} from "../../data/layer-2/cex-layer-2-onboard"
1825
import cexSupport from "../../data/layer-2/cex-layer-2-support.json"
19-
import { ChildOnlyProp } from "../../types"
20-
import { trackCustomEvent } from "../../utils/matomo"
2126
// Components
2227
import { ButtonLink } from "../Buttons"
23-
import GatsbyImage from "../GatsbyImage"
2428
import InlineLink from "../Link"
2529
import OldHeading from "../OldHeading"
2630
import Text from "../OldText"
@@ -110,7 +114,7 @@ interface CexOnboardOption extends Option {
110114

111115
export interface IProps {
112116
layer2DataCombined: Array<Layer2>
113-
ethIcon: IGatsbyImageData
117+
ethIcon: StaticImageData
114118
ethIconAlt: string
115119
}
116120

@@ -351,11 +355,11 @@ const Layer2Onboard: React.FC<IProps> = ({
351355
)}
352356
{/* EthLogo */}
353357
<Box {...gridContentPlacementStyles.logo}>
354-
<GatsbyImage
355-
image={ethIcon}
356-
objectFit="contain"
358+
<Image
359+
src={ethIcon}
357360
alt={ethIconAlt}
358-
w="full"
361+
width={50}
362+
style={{ objectFit: "contain" }}
359363
/>
360364
</Box>
361365
</SimpleGrid>

src/components/Layer2ProductCard.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
// Libraries
2+
import { StaticImageData } from "next/image"
23
import { useTranslation } from "next-i18next"
34
import { Box, Center, Flex, Heading } from "@chakra-ui/react"
45

5-
import { ButtonLink } from "./Buttons"
6-
import GatsbyImage from "./GatsbyImage"
7-
import InlineLink from "./Link"
8-
import Text from "./OldText"
6+
import { ButtonLink } from "@/components/Buttons"
7+
import { Image } from "@/components/Image"
8+
import InlineLink from "@/components/Link"
9+
import Text from "@/components/OldText"
910

1011
export interface IProps {
1112
children?: React.ReactNode
1213
url?: string
1314
background: string
14-
image: IGatsbyImageData
15+
image: StaticImageData
1516
name: string
1617
description: string
1718
note?: string
@@ -54,13 +55,12 @@ const Layer2ProductCard: React.FC<IProps> = ({
5455
boxShadow="inset 0px -1px 0px rgba(0, 0, 0, 0.1)"
5556
minH="200px"
5657
>
57-
<GatsbyImage
58-
image={image}
58+
<Image
59+
src={image}
5960
alt={alt}
60-
objectFit="contain"
61-
alignSelf="center"
62-
maxW={{ base: "311px", sm: "372px" }}
61+
width={100}
6362
maxH={"257px"}
63+
style={{ objectFit: "contain" }}
6464
/>
6565
</Center>
6666
<Flex p={6} h="100%" direction="column">

src/components/ProductList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const ProductList = ({ content, category }: ProductListProps) => {
9797
borderRadius="sm"
9898
marginTop={{ base: 4, sm: 0 }}
9999
>
100-
<Translation id="page-dapps:page-dapps-ready-button" />
100+
<Translation id="page-layer-2:page-dapps-ready-button" />
101101
<VisuallyHidden>to {title} website</VisuallyHidden>
102102
</ButtonLink>
103103
)}

src/components/RollupProductDevDoc.tsx

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,13 @@
11
import React from "react"
22
import { Box, Flex, Heading, ListItem, UnorderedList } from "@chakra-ui/react"
33

4-
import type { TranslationKey } from "@/lib/types"
5-
6-
import _rollups from "../data/layer-2/layer-2.json"
4+
import { layer2Data, Rollups,RollupType } from "@/data/layer-2/layer-2"
75

86
import InlineLink from "./Link"
97
import Text from "./OldText"
108
import Translation from "./Translation"
119

12-
type RollupType = "optimistic" | "zk"
13-
14-
interface Rollup {
15-
name: string
16-
website: string
17-
developerDocs: string
18-
l2beat: string
19-
bridge: string
20-
bridgeWallets: Array<string>
21-
blockExplorer: string
22-
ecosystemPortal: string
23-
tokenLists: string
24-
noteKey: TranslationKey
25-
purpose: Array<string>
26-
descriptionKey: string
27-
imageKey: string
28-
background: string
29-
}
30-
31-
type Rollups = { [type in RollupType]: Array<Rollup> }
32-
33-
const rollups = _rollups as Rollups
10+
const rollups = layer2Data as Rollups
3411

3512
export interface IProps {
3613
rollupType: RollupType

src/data/layer-2/layer-2.json

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

0 commit comments

Comments
 (0)