Skip to content

Commit 6aefa06

Browse files
authored
fix: aztec banner (#118)
1 parent 67fbdd7 commit 6aefa06

7 files changed

Lines changed: 19 additions & 7 deletions

File tree

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,15 @@ function HandbookCard({ handbook, isDefault = false }: HandbookCardProps) {
6565
style={{ backgroundColor: handbook.background.color }}
6666
></div>
6767
)}
68-
<img src={handbook.image} alt="" className={styles.handbooksCardIcon} />
68+
<img
69+
src={handbook.image}
70+
alt=""
71+
className={`${styles.handbooksCardIcon} ${
72+
handbook.title.toLowerCase().includes("aztec")
73+
? styles.handbooksCardIconAztec
74+
: ""
75+
}`}
76+
/>
6977
</a>
7078
);
7179
}

packages/common-config/src/components/HandbookSection/styles.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ a.handbooksCard:hover {
162162
position: relative;
163163
}
164164

165+
.handbooksCardIconAztec {
166+
max-width: 65%;
167+
}
168+
165169
.colorOverlay {
166170
position: absolute;
167171
top: 0;
633 KB
Loading
Binary file not shown.

sites/ef/src/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ const efHandbooks: Handbook[] = [
6161
image: "/common/img/aztec-handbook.svg",
6262
href: "https://aztec.handbook.wonderland.xyz",
6363
background: {
64-
bgType: "wonderland",
65-
color: "#625CBFD1",
64+
bgType: "other",
65+
bgImage: "/common/img/aztec-background-handbook-card.jpg",
6666
},
6767
},
6868
];

sites/optimism/src/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ const optimismHandbooks: Handbook[] = [
5959
image: "/common/img/aztec-handbook.svg",
6060
href: "https://aztec.handbook.wonderland.xyz",
6161
background: {
62-
bgType: "wonderland",
63-
color: "#625CBFD1",
62+
bgType: "other",
63+
bgImage: "/common/img/aztec-background-handbook-card.jpg",
6464
},
6565
},
6666
{

sites/wonderland/src/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ const wonderlandHandbooks: Handbook[] = [
6464
image: "/common/img/aztec-handbook.svg",
6565
href: "https://aztec.handbook.wonderland.xyz",
6666
background: {
67-
bgType: "wonderland",
68-
color: "#625CBFD1",
67+
bgType: "other",
68+
bgImage: "/common/img/aztec-background-handbook-card.jpg",
6969
},
7070
},
7171
{

0 commit comments

Comments
 (0)