Skip to content

Commit b670c75

Browse files
authored
Merge pull request #16063 from ethereum/dev
Release candidate v10.10.0
2 parents 5cd2acc + 2d88945 commit b670c75

File tree

799 files changed

+25164
-18772
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

799 files changed

+25164
-18772
lines changed

.all-contributorsrc

Lines changed: 71 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,7 +2748,9 @@
27482748
"avatar_url": "https://avatars.githubusercontent.com/u/2653167?v=4",
27492749
"profile": "http://austingriffith.com",
27502750
"contributions": [
2751-
"content"
2751+
"content",
2752+
"tool",
2753+
"maintenance"
27522754
]
27532755
},
27542756
{
@@ -12365,7 +12367,8 @@
1236512367
"avatar_url": "https://avatars.githubusercontent.com/u/82784104?v=4",
1236612368
"profile": "https://github.com/JoshDavisLight",
1236712369
"contributions": [
12368-
"content"
12370+
"content",
12371+
"maintenance"
1236912372
]
1237012373
},
1237112374
{
@@ -12672,7 +12675,9 @@
1267212675
"avatar_url": "https://avatars.githubusercontent.com/u/171761102?v=4",
1267312676
"profile": "https://github.com/JoeChenJ",
1267412677
"contributions": [
12675-
"content"
12678+
"content",
12679+
"bug",
12680+
"code"
1267612681
]
1267712682
},
1267812683
{
@@ -12857,6 +12862,15 @@
1285712862
"content"
1285812863
]
1285912864
},
12865+
{
12866+
"login": "Tri-stone",
12867+
"name": "Tri-stone",
12868+
"avatar_url": "https://avatars.githubusercontent.com/u/17921243?v=4",
12869+
"profile": "https://github.com/Tri-stone",
12870+
"contributions": [
12871+
"maintenance"
12872+
]
12873+
},
1286012874
{
1286112875
"login": "deca12x",
1286212876
"name": "deca",
@@ -13047,6 +13061,60 @@
1304713061
"contributions": [
1304813062
"maintenance"
1304913063
]
13064+
},
13065+
{
13066+
"login": "Co1nB3e",
13067+
"name": "Co1nB3e",
13068+
"avatar_url": "https://avatars.githubusercontent.com/u/91367832?v=4",
13069+
"profile": "https://github.com/Co1nB3e",
13070+
"contributions": [
13071+
"maintenance"
13072+
]
13073+
},
13074+
{
13075+
"login": "Verestra",
13076+
"name": "Revo Arya",
13077+
"avatar_url": "https://avatars.githubusercontent.com/u/44845508?v=4",
13078+
"profile": "https://github.com/Verestra",
13079+
"contributions": [
13080+
"maintenance"
13081+
]
13082+
},
13083+
{
13084+
"login": "teniolafatunmbi",
13085+
"name": "Teniola Fatunmbi",
13086+
"avatar_url": "https://avatars.githubusercontent.com/u/70762806?v=4",
13087+
"profile": "http://teniolafatunmbi.com",
13088+
"contributions": [
13089+
"maintenance"
13090+
]
13091+
},
13092+
{
13093+
"login": "dinitheth",
13094+
"name": "Dinith",
13095+
"avatar_url": "https://avatars.githubusercontent.com/u/170238361?v=4",
13096+
"profile": "https://github.com/dinitheth",
13097+
"contributions": [
13098+
"maintenance"
13099+
]
13100+
},
13101+
{
13102+
"login": "julio4",
13103+
"name": "Julio",
13104+
"avatar_url": "https://avatars.githubusercontent.com/u/30329843?v=4",
13105+
"profile": "https://github.com/julio4",
13106+
"contributions": [
13107+
"maintenance"
13108+
]
13109+
},
13110+
{
13111+
"login": "abeldotam",
13112+
"name": "Abel Derderian",
13113+
"avatar_url": "https://avatars.githubusercontent.com/u/5216201?v=4",
13114+
"profile": "http://abel.fr",
13115+
"contributions": [
13116+
"maintenance"
13117+
]
1305013118
}
1305113119
],
1305213120
"contributorsPerLine": 7,

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
# Google API key and Calendar ID (required to fetch Calendar events)
2323
# GOOGLE_API_KEY=
2424
# GOOGLE_CALENDAR_ID=
25+
# GOOGLE_SHEET_ID_DAPPS=
2526

2627
# Dune Analytics API key (required for total eth staked)
2728
# DUNE_API_KEY=

README.md

Lines changed: 15 additions & 6 deletions
Large diffs are not rendered by default.

app/[locale]/10years/_components/NFTMintCard/index.tsx

Lines changed: 56 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,75 @@
1-
"use client"
2-
3-
import { useMemo, useState } from "react"
4-
51
import { Alert, AlertContent, AlertTitle } from "@/components/ui/alert"
62
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
73

84
import { cn } from "@/lib/utils/cn"
95

10-
import CountDown from "../CountDown"
11-
12-
import Connection from "./Connection"
13-
import GasFeeInformation from "./GasFeeInformation"
14-
156
import Curved10YearsText from "@/public/images/10-year-anniversary/10y-curved-heading.svg"
167

178
interface NFTMintCardProps {
189
className?: string
1910
}
2011

21-
const endTimestamp = process.env.NEXT_PUBLIC_MINT_TIMESTAMP_END
22-
23-
if (!endTimestamp) {
24-
throw new Error("NEXT_PUBLIC_MINT_TIMESTAMP_END is not set")
25-
}
26-
2712
const NFTMintCard = ({ className }: NFTMintCardProps) => {
28-
const endDateTime = useMemo(() => {
29-
return new Date(Number(endTimestamp) * 1000).toISOString()
30-
}, [])
31-
32-
const [isExpired, setIsExpired] = useState(false)
33-
34-
const handleExpired = () => {
35-
setIsExpired(true)
36-
}
37-
3813
return (
39-
<>
40-
<Card
41-
className={cn(
42-
"w-full overflow-hidden rounded-3xl bg-gradient-to-b from-[#A66BFF20] to-[#EED9FE16] shadow-lg",
43-
className
44-
)}
45-
>
46-
<CardHeader className="gap-4 pb-0">
47-
<div className="relative">
48-
{/* Torch/flame video */}
49-
<div className="flex items-center justify-center pt-12">
50-
<div className="relative max-h-[200px] max-w-[200px] overflow-hidden rounded-full border-4 border-white bg-white">
51-
<video
52-
className="pointer-events-none h-full w-full select-none rounded-full object-cover"
53-
src="/videos/10y-video.mp4"
54-
aria-label="10th anniversary video"
55-
autoPlay
56-
loop
57-
muted
58-
poster="/images/10-year-anniversary/10y-cover.png"
59-
controlsList="nodownload"
60-
disablePictureInPicture
61-
playsInline
62-
/>
63-
</div>
14+
<Card
15+
className={cn(
16+
"w-full overflow-hidden rounded-3xl bg-gradient-to-b from-[#A66BFF20] to-[#EED9FE16] shadow-lg",
17+
className
18+
)}
19+
>
20+
<CardHeader className="gap-4 pb-0">
21+
<div className="relative">
22+
{/* Torch/flame video */}
23+
<div className="flex items-center justify-center pt-12">
24+
<div className="relative max-h-[200px] max-w-[200px] overflow-hidden rounded-full border-4 border-white bg-white">
25+
<video
26+
className="pointer-events-none h-full w-full select-none rounded-full object-cover"
27+
src="/videos/10y-video.mp4"
28+
aria-label="10th anniversary video"
29+
autoPlay
30+
loop
31+
muted
32+
poster="/images/10-year-anniversary/10y-cover.png"
33+
controlsList="nodownload"
34+
disablePictureInPicture
35+
playsInline
36+
/>
6437
</div>
65-
66-
{/* Curved text */}
67-
<Curved10YearsText
68-
viewBox="0 0 313 186"
69-
className="absolute left-1/2 top-0 h-min w-full max-w-[300px] -translate-x-1/2 fill-primary"
70-
width="100%"
71-
height="auto"
72-
/>
7338
</div>
7439

75-
<CardTitle className="text-center">Mint the moment</CardTitle>
76-
</CardHeader>
77-
78-
<CardContent className="space-y-6 p-6 text-center">
79-
<p className="text-body-medium">
80-
Celebrate a decade of decentralization with a free, limited-time
81-
10th anniversary NFT. Mint yours before time runs out.
82-
</p>
83-
84-
{isExpired ? (
85-
<Alert
86-
variant="update"
87-
className="w-full rounded-none border-none text-center"
88-
>
89-
<AlertContent>
90-
<AlertTitle className="!text-primary">
91-
The claim period has ended
92-
</AlertTitle>
93-
<p className="text-primary">
94-
Thank you all for joining the celebration
95-
</p>
96-
</AlertContent>
97-
</Alert>
98-
) : (
99-
<>
100-
<div className="space-y-2">
101-
<CountDown
102-
className="text-primary"
103-
dateTime={endDateTime}
104-
onExpired={handleExpired}
105-
hideZeroUnits
106-
timeLeftLabels={{
107-
days: { singular: "day", plural: "days" },
108-
hours: { singular: "hour", plural: "hours" },
109-
minutes: { singular: "minute", plural: "minutes" },
110-
seconds: { singular: "second", plural: "seconds" },
111-
}}
112-
expiredLabel="Minting has ended"
113-
/>
114-
<p className="text-sm text-body-medium">
115-
Time remaining to mint
116-
</p>
117-
</div>
118-
119-
<GasFeeInformation />
120-
121-
<Connection />
122-
</>
123-
)}
124-
</CardContent>
125-
</Card>
126-
</>
40+
{/* Curved text */}
41+
<Curved10YearsText
42+
viewBox="0 0 313 186"
43+
className="absolute left-1/2 top-0 h-min w-full max-w-[300px] -translate-x-1/2 fill-primary"
44+
width="100%"
45+
height="auto"
46+
/>
47+
</div>
48+
49+
<CardTitle className="text-center">Mint the moment</CardTitle>
50+
</CardHeader>
51+
52+
<CardContent className="space-y-6 p-6 text-center">
53+
<p className="text-body-medium">
54+
Celebrate a decade of decentralization with a free, limited-time 10th
55+
anniversary NFT. Mint yours before time runs out.
56+
</p>
57+
58+
<Alert
59+
variant="update"
60+
className="w-full rounded-none border-none text-center"
61+
>
62+
<AlertContent>
63+
<AlertTitle className="!text-primary">
64+
The claim period has ended
65+
</AlertTitle>
66+
<p className="text-primary">
67+
Thank you all for joining the celebration
68+
</p>
69+
</AlertContent>
70+
</Alert>
71+
</CardContent>
72+
</Card>
12773
)
12874
}
12975

app/[locale]/10years/_components/NFTMintCardWrapper.tsx

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

app/[locale]/10years/_components/UserStories/index.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,15 @@
22

33
import { useState } from "react"
44

5+
import { Story } from "@/lib/types"
6+
57
import Twitter from "@/components/icons/twitter.svg"
68
import { Button, ButtonLink } from "@/components/ui/buttons/Button"
79

810
import { cn } from "@/lib/utils/cn"
911

1012
import { useTranslation } from "@/hooks/useTranslation"
1113

12-
type Story = {
13-
name: string
14-
storyEnglish: string
15-
storyOriginal: string | null
16-
twitter?: string
17-
country: string
18-
date: string
19-
}
20-
2114
type StoriesProps = {
2215
stories: Story[]
2316
}

app/[locale]/10years/_components/utils/nftMintDate.ts

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

0 commit comments

Comments
 (0)