Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L2 revamp #14251

Merged
merged 183 commits into from
Dec 5, 2024
Merged
Changes from 1 commit
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
40867bc
Begin migration to shadcn and l2 epic update of layer-2 page to /laye…
corwintines Sep 23, 2024
ae3d3e7
Add what is layer 1 section
corwintines Sep 24, 2024
014276d
why do we need layer 2 section
corwintines Sep 24, 2024
d31bb6c
Setup layer-2-cards section
corwintines Sep 24, 2024
24f9726
How does layer 2 work section
corwintines Sep 24, 2024
a1d2dab
rollup card section
corwintines Sep 24, 2024
f3fc6b0
dyor section
corwintines Sep 24, 2024
7ba1bbe
add note on alt l1 section
corwintines Sep 24, 2024
fd679eb
convert Callout component to shadcn and any updates needed in areas u…
corwintines Sep 24, 2024
f514730
Add callout section
corwintines Sep 24, 2024
1ba5063
add quiz
corwintines Sep 24, 2024
32b6afb
matomo events
corwintines Sep 25, 2024
45cb4b6
remove comment
corwintines Sep 25, 2024
f2e6109
Wrap up todo's
corwintines Sep 25, 2024
87c9123
setup work for layer 2 hub page
corwintines Sep 25, 2024
b11f291
PageMetaData
corwintines Sep 25, 2024
704b616
Hero
corwintines Sep 26, 2024
b1e85a7
Update src/components/Callout.tsx
corwintines Oct 4, 2024
a6359e2
Merge branch 'dev' into l2Hub
corwintines Oct 17, 2024
e18e647
Merge branch 'l2Learn' into l2Hub
corwintines Oct 17, 2024
b6b9df2
CalloutCards
corwintines Oct 17, 2024
9c44baf
Ready to start
corwintines Oct 17, 2024
f64a7d2
outline
corwintines Oct 17, 2024
8570feb
Why do we need multiple networks section
corwintines Oct 17, 2024
f75b8cd
why do we need multiple networks section
corwintines Oct 17, 2024
ed709ce
callout cards
corwintines Oct 17, 2024
75623a9
FAQ
corwintines Oct 17, 2024
eb20fa9
Powered by Ethereum section
corwintines Oct 20, 2024
2ee7a8f
comment
corwintines Oct 20, 2024
a0a9981
Merge branch 'dev' into l2Hub
corwintines Oct 21, 2024
88f7dae
setup l2 data
corwintines Oct 24, 2024
348f04f
L2 CTA
corwintines Oct 25, 2024
8f54114
Network of networks
corwintines Oct 27, 2024
aa527e5
todo
corwintines Oct 27, 2024
073c9c6
Stats box
corwintines Oct 28, 2024
cc4a783
Merge branch 'dev' into l2Hub
corwintines Oct 28, 2024
c5977aa
adjust responsive styling
corwintines Oct 28, 2024
522cbe7
responsive design
corwintines Oct 28, 2024
ecab26d
fetch data for stats box
corwintines Oct 28, 2024
dba6656
comment
corwintines Oct 29, 2024
ea4cd6c
faq matomo
corwintines Oct 29, 2024
09df945
matomo events
corwintines Oct 29, 2024
d04ebfc
Merge pull request #13987 from ethereum/l2Learn
corwintines Oct 29, 2024
b6b98e1
Merge branch 'dev' into l2revamp
corwintines Oct 29, 2024
50e6a57
Merge branch 'l2revamp' into l2Hub
corwintines Oct 29, 2024
eef7d30
Merge pull request #14252 from ethereum/l2Hub
corwintines Oct 29, 2024
c710875
fix build errors
corwintines Oct 29, 2024
e9be961
Merge pull request #14255 from ethereum/l2Hub
corwintines Oct 29, 2024
6100db3
update mock data
corwintines Oct 29, 2024
f912fa7
setup networks page
corwintines Oct 29, 2024
6112988
fix broken build
corwintines Oct 29, 2024
d0494ae
comment out badge
corwintines Oct 30, 2024
18cee67
Merge branch 'l2revamp' into l2networks
corwintines Oct 30, 2024
9468f9f
Hero
corwintines Oct 30, 2024
0d52456
setup Layer2NetworksTable
corwintines Oct 30, 2024
17b27ce
setup Layer2NetworksTable
corwintines Oct 30, 2024
042769d
setup translations
corwintines Oct 30, 2024
9675027
set useNetworkFilters setup
corwintines Oct 30, 2024
cbc8196
initial useNetworkFilters hooks setup
corwintines Oct 30, 2024
e98ac39
Merge branch 'dev' into l2revamp
corwintines Oct 31, 2024
339c13c
Merge branch 'dev' into l2networks
corwintines Oct 31, 2024
00b5542
Add icons to project
corwintines Nov 1, 2024
6ca92bf
setup filters
corwintines Nov 1, 2024
cc18c03
delete unused component
corwintines Nov 1, 2024
114f628
refactor columns for DataTable to use meta
corwintines Nov 7, 2024
4fc7271
setup columns
corwintines Nov 9, 2024
7597f58
Add logo and name
corwintines Nov 9, 2024
a197c3c
average tx fee
corwintines Nov 9, 2024
8c7647f
setup l2beat fetch and market share
corwintines Nov 9, 2024
fe326cb
mock data l2beat
corwintines Nov 9, 2024
abbd26d
callout cards
corwintines Nov 9, 2024
777d9bd
advanced cta
corwintines Nov 9, 2024
9223db5
maturity rating
corwintines Nov 9, 2024
2a43f0e
arrow
corwintines Nov 9, 2024
037673b
mobile styling
corwintines Nov 9, 2024
ddaefff
setup subcomponent
corwintines Nov 9, 2024
0ef20d4
subcomponent progress
corwintines Nov 9, 2024
a733b76
padding
corwintines Nov 9, 2024
7838145
stats box and data fetching
corwintines Nov 9, 2024
44f698d
get launch date
corwintines Nov 9, 2024
32a342e
launch date
corwintines Nov 9, 2024
e6e301d
comma separete tokens
corwintines Nov 9, 2024
bc04462
fix icon props
corwintines Nov 10, 2024
be678aa
blockspace data fetch
corwintines Nov 11, 2024
c1437ae
Add shadcn charts
corwintines Nov 11, 2024
16f8ba4
making chart
corwintines Nov 11, 2024
9e2e63f
filtering
corwintines Nov 11, 2024
3dbe312
wallet network support data
corwintines Nov 11, 2024
b1ea9a4
Merge branch 'dev' into l2revamp
corwintines Nov 11, 2024
7467a00
Merge branch 'l2revamp' into l2networks
corwintines Nov 11, 2024
a58a0ed
Merge pull request #14345 from ethereum/l2networks
corwintines Nov 11, 2024
70fbcb9
fix link area bug
corwintines Nov 18, 2024
e9c4496
update network maturity function
corwintines Nov 20, 2024
618b71c
Merge branch 'dev' into l2revamp
corwintines Nov 21, 2024
aff6d7e
Merge branch 'dev' into l2revamp
corwintines Nov 21, 2024
5090ab9
setup wallet data on networks page
corwintines Nov 21, 2024
5937983
Wallet stat
corwintines Nov 21, 2024
897f232
setup NetworksWalletSelectInput
corwintines Nov 22, 2024
f2d1101
support filtering for wallets
corwintines Nov 22, 2024
6e7d5aa
sorting data
corwintines Nov 22, 2024
a5546e6
add more logos
corwintines Nov 22, 2024
4149013
typescript fixes for building
corwintines Nov 22, 2024
ebff2b9
change speeds for rotation to be more dynamic
corwintines Nov 22, 2024
b1d5221
hero button update
corwintines Nov 22, 2024
1cdc528
update maturity descriptions
corwintines Nov 22, 2024
70b2b1c
mock data
corwintines Nov 22, 2024
a3fc673
fix type
corwintines Nov 22, 2024
3bd4064
render logos for layer2 on wallets
corwintines Nov 22, 2024
ca96cb6
type
corwintines Nov 22, 2024
ed636cf
mock data
corwintines Nov 23, 2024
333189d
setup filter components
corwintines Nov 23, 2024
5922afc
network filtering
corwintines Nov 23, 2024
bfdac8b
query param support updated for networks
corwintines Nov 23, 2024
e6ee3ff
rotation speed, and growthepie data bug
corwintines Nov 25, 2024
7c7d8be
rotation speed
corwintines Nov 25, 2024
85f0652
Add ethereum network data and refactor data file name
corwintines Nov 25, 2024
f9ed3f4
fix build issues
corwintines Nov 25, 2024
3e8ebfe
adjust rings
corwintines Nov 26, 2024
f129b53
rounded logo on orbit
corwintines Nov 26, 2024
61deeda
test
corwintines Nov 26, 2024
a6de55b
badge border fix
corwintines Nov 26, 2024
539a644
fix color for MaturingIcon to support dark mode
corwintines Nov 26, 2024
07ac521
fix overflowing select content
corwintines Nov 26, 2024
d8cb4b8
soft wallets and add number of network support number
corwintines Nov 26, 2024
626aa29
button fix in network info
corwintines Nov 27, 2024
9cab200
fox gradient
corwintines Nov 27, 2024
e23c1fc
Ethereum network data added to find-wallets for logo
corwintines Nov 27, 2024
a489da0
Nav menu
corwintines Nov 27, 2024
86e3168
unify chevron
corwintines Nov 29, 2024
5d0178c
filter bug fixed
corwintines Nov 29, 2024
f80bbab
remove console.log
corwintines Nov 29, 2024
dcc6b96
tooltip badge
corwintines Nov 29, 2024
33ae420
no result state
corwintines Nov 29, 2024
99964e9
chart fixes
corwintines Nov 29, 2024
e05eb44
fix images
corwintines Dec 1, 2024
c26e434
Merge branch 'dev' into l2revamp
corwintines Dec 1, 2024
7a246ae
Update src/pages/layer-2/index.tsx
corwintines Dec 1, 2024
e7baa13
Update src/pages/layer-2/index.tsx
corwintines Dec 1, 2024
43c95ad
wackerow change requests
corwintines Dec 1, 2024
fbf361c
Update src/pages/layer-2/learn.tsx
corwintines Dec 1, 2024
4bd5a47
Update src/components/Layer2NetworksTable/NetworkUsageChart.tsx
corwintines Dec 1, 2024
0f39622
change requests
corwintines Dec 1, 2024
1961c61
refactor callout
corwintines Dec 1, 2024
16e691c
remove try/catch
corwintines Dec 2, 2024
c519ed0
fix hydration issue
corwintines Dec 2, 2024
5cbeb69
render error
corwintines Dec 2, 2024
503bfde
max w for FAQ
corwintines Dec 2, 2024
04506e9
Update src/components/Layer2NetworksTable/hooks/useNetworkColumns.tsx
corwintines Dec 2, 2024
46a4d53
Update src/components/Layer2NetworksTable/hooks/useNetworkColumns.tsx
corwintines Dec 2, 2024
fda30b1
Update src/components/Layer2NetworksTable/hooks/useNetworkColumns.tsx
corwintines Dec 2, 2024
a3e3f94
Update src/components/Layer2NetworksTable/hooks/useNetworkColumns.tsx
corwintines Dec 2, 2024
16e22d9
Update src/components/Layer2NetworksTable/hooks/useNetworkColumns.tsx
corwintines Dec 2, 2024
c0e0317
Update src/components/Layer2NetworksTable/hooks/useNetworkColumns.tsx
corwintines Dec 2, 2024
839363a
Update src/components/Layer2NetworksTable/hooks/useNetworkColumns.tsx
corwintines Dec 2, 2024
1f4c661
fix build error
corwintines Dec 2, 2024
37cf33b
update what is ethereum content
corwintines Dec 2, 2024
5704c2f
fix expand bug
corwintines Dec 2, 2024
aaf2509
logo sizes
corwintines Dec 2, 2024
694bbcb
chart edits
corwintines Dec 2, 2024
a2780f9
fix build issue
corwintines Dec 2, 2024
123a4d6
Searchable select on networks table
corwintines Dec 3, 2024
8f1ae6d
remove chevron where not needed, and fix mobile styling for chevron
corwintines Dec 3, 2024
4b88803
1% floor for chart
corwintines Dec 3, 2024
be54715
decimal point below 1
corwintines Dec 3, 2024
7e828c0
growthepie.com -> growthepie.xyz
corwintines Dec 3, 2024
d583e55
fix links
corwintines Dec 3, 2024
cb18841
checkbox label selectable
corwintines Dec 3, 2024
d3c3d9b
tooltip for network logos
corwintines Dec 3, 2024
45595de
matomo fixes /layer-2
corwintines Dec 3, 2024
acdb3b9
matomo events /layer-2/learn
corwintines Dec 3, 2024
765298c
/learn card changes security -> ethereum networks
corwintines Dec 3, 2024
3099f34
nav menu updates
corwintines Dec 4, 2024
22a53d3
flip layer-2-powered-by-ethereum
corwintines Dec 4, 2024
581e55a
padding
corwintines Dec 4, 2024
485f828
hover styles
corwintines Dec 4, 2024
5b949bc
maturity badge
corwintines Dec 4, 2024
d5a57a2
wallet data and filter updates
corwintines Dec 5, 2024
ccc93fe
filters button mobile view
corwintines Dec 5, 2024
96bc881
quizzes key
corwintines Dec 5, 2024
f092bfe
close expanded rows on filter change
corwintines Dec 5, 2024
cf51b17
Filter count
corwintines Dec 5, 2024
04a56ad
matomo events on /layer-2/networks
corwintines Dec 5, 2024
2964ea0
fix build issues
corwintines Dec 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
maturity badge
corwintines committed Dec 4, 2024
commit 5b949bc71e39dc436959af2aacc5141b81985981
Original file line number Diff line number Diff line change
@@ -5,6 +5,10 @@ import { Badge, BadgeProps } from "@/components/ui/badge"

const NetworkMaturityTooltip = ({ maturity }: { maturity: MaturityLevel }) => {
const maturityDescription = {
"n/a": {
label: "N/A",
description: "Not applicable to Ethereum mainnet.",
},
robust: {
label: "Robust",
description:
1 change: 1 addition & 0 deletions src/components/ui/badge.tsx
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ const badgeVariants = cva(
developing: "bg-blue-400 text-white border-none",
maturing: "bg-blue-200 text-black border-none",
robust: "bg-blue-100 text-black border-none",
"n/a": "hidden lg:block",
},
},
defaultVariants: {
2 changes: 1 addition & 1 deletion src/data/networks/networks.ts
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ export const ethereumNetworkData = {
chainName: "Ethereum Mainnet",
growthepieID: "ethereum",
logo: EthereumLogo,
networkMaturity: "robust",
networkMaturity: "n/a",
canExpand: false,
}

8 changes: 0 additions & 8 deletions tailwind/ui/Switch.tsx
Original file line number Diff line number Diff line change
@@ -9,14 +9,6 @@ const Switch = React.forwardRef<
React.ElementRef<typeof SwitchPrimitives.Root>,
React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>
>(({ className, ...props }, ref) => {
React.useEffect(() => {
const mql = window.matchMedia("(hover: hover)")
console.log("Device supports hover:", mql.matches)

const touch = window.matchMedia("(pointer: coarse)")
console.log("Device is touch-based:", touch.matches)
}, [])

return (
<SwitchPrimitives.Root
className={cn(