Skip to content

Commit 2864e23

Browse files
authored
2 parents 04283e1 + 67fbdd7 commit 2864e23

97 files changed

Lines changed: 2786 additions & 1 deletion

File tree

Some content is hidden

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

packages/common-config/preset/commonDocusaurusConfig.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ const commonDocusaurusConfig: Partial<Config> = {
5656
to: "https://aztec.handbook.wonderland.xyz",
5757
target: "_self",
5858
},
59+
{
60+
label: "Ethereum Foundation",
61+
to: "https://ef.handbook.wonderland.xyz",
62+
target: "_self",
63+
},
5964
],
6065
},
6166
{

packages/common-config/src/components/CategoryCards/index.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ export interface CategoryCardsTheme {
1919
interface CategoryCardsProps {
2020
categories: Category[];
2121
theme?: CategoryCardsTheme;
22+
columns?: number;
2223
}
2324

2425
export default function CategoryCards({
2526
categories,
2627
theme,
28+
columns = 4,
2729
}: CategoryCardsProps): ReactNode {
2830
const handleCardClick = (
2931
e: React.MouseEvent<HTMLAnchorElement>,
@@ -56,7 +58,12 @@ export default function CategoryCards({
5658
const currentTheme = theme || defaultTheme;
5759

5860
return (
59-
<div className={styles.categoryCards}>
61+
<div
62+
className={styles.categoryCards}
63+
style={{
64+
gridTemplateColumns: `repeat(${columns}, 1fr)`
65+
}}
66+
>
6067
{categories.map((category) => (
6168
<Link
6269
key={category.title}
37.8 KB
Loading
166 KB
Loading
Lines changed: 8 additions & 0 deletions
Loading
1.19 MB
Loading

packages/common-config/static/common/styles/global.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,6 +1482,21 @@ div[class*="buttonGroup"] button {
14821482
transition: opacity 0.3s ease;
14831483
}
14841484

1485+
/* Ethereum Foundation logo */
1486+
.dropdown__menu li:nth-child(4) .dropdown__link::before {
1487+
content: "";
1488+
width: 24px;
1489+
height: 24px;
1490+
background-image: url("/common/img/ef-logo.svg");
1491+
background-size: contain;
1492+
background-repeat: no-repeat;
1493+
background-position: center;
1494+
position: absolute;
1495+
left: 1rem;
1496+
opacity: 0.8;
1497+
transition: opacity 0.3s ease;
1498+
}
1499+
14851500
.dropdown__link:hover {
14861501
background: var(--wonderland-blue-900) !important;
14871502
color: var(--wonderland-gray-200) !important;

pnpm-lock.yaml

Lines changed: 76 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sites/aztec/src/pages/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ const aztecHandbooks: Handbook[] = [
6363
bgImage: "/common/img/background-handbook-card.jpg",
6464
},
6565
},
66+
{
67+
title: "Ethereum Foundation Handbook",
68+
image: "/common/img/ef-logo.png",
69+
href: "https://ef.handbook.wonderland.xyz",
70+
background: {
71+
bgType: "other",
72+
bgImage: "/common/img/ef-social-card.png",
73+
},
74+
},
6675
];
6776

6877
const aztecHandbookProps: HandbookSectionProps = {

sites/ef/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Static assets
2+
/static/common/

0 commit comments

Comments
 (0)