Skip to content

Commit e56014f

Browse files
authored
fix: category cards mobile responsive wrapping and ef favicon (#123)
- Fixed category cards' responsiveness - Ef favicon Before: <img width="389" height="1156" alt="Captura de pantalla 2025-11-24 a las 15 28 32" src="https://github.com/user-attachments/assets/c7095b2e-8fa2-4554-9706-4089c51cb6eb" /> After: <img width="371" height="1142" alt="Captura de pantalla 2025-11-24 a las 15 28 02" src="https://github.com/user-attachments/assets/5fdf681d-be5a-4091-bd4c-d70da777b692" />
1 parent 2955e28 commit e56014f

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ export default function CategoryCards({
5858
const currentTheme = theme || defaultTheme;
5959

6060
return (
61-
<div
61+
<div
6262
className={styles.categoryCards}
6363
style={{
64-
gridTemplateColumns: `repeat(${columns}, 1fr)`
65-
}}
64+
'--columns': columns
65+
} as React.CSSProperties}
6666
>
6767
{categories.map((category) => (
6868
<Link

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
.categoryCards {
33
display: grid;
4-
grid-template-columns: repeat(4, 1fr);
4+
grid-template-columns: repeat(var(--columns, 4), 1fr);
55
gap: 1.25rem;
66
width: 100%;
77
margin-top: 1.5rem;

sites/ef/docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const localConfig: Config = {
1313
title: "Ethereum Foundation Handbook",
1414
tagline:
1515
"Exploring privacy initiatives and interoperability solutions advancing the Ethereum ecosystem.",
16-
favicon: "img/favicon.ico",
16+
favicon: "common/img/favicon.svg",
1717

1818
// Set the production url of your site here
1919
url: "https://ef.handbook.wonderland.xyz",

0 commit comments

Comments
 (0)