Skip to content

Commit 3c16a12

Browse files
authored
Landing, nav, and style changes (#318)
* landing and style changes * Update style.css * Update landing-fixes.md
1 parent f67e25e commit 3c16a12

6 files changed

Lines changed: 85 additions & 2 deletions

File tree

docs.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919
}
2020
}
2121
},
22+
"navbar": {
23+
"links": [
24+
{ "label": "Cosmos SDK", "href": "/sdk/latest/learn" },
25+
{ "label": "Cosmos EVM", "href": "/evm/latest/documentation/overview" },
26+
{ "label": "IBC", "href": "/ibc/latest/intro" },
27+
{ "label": "CometBFT", "href": "/cometbft/latest/docs/README" },
28+
{ "label": "Cosmos Enterprise", "href": "/enterprise/overview" }
29+
]
30+
},
2231
"interaction": {
2332
"drilldown": false
2433
},

index.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ import { ThemeToggle } from '/snippets/theme-toggle.jsx';
6666
>
6767
IBC
6868
</a>
69+
<a
70+
href="/cometbft/latest/docs/README"
71+
className="text-gray-900 dark:text-white px-5 py-2.5 hover:[text-shadow:0_0_8px_rgba(255,255,255,0.8)] transition-all duration-300"
72+
>
73+
CometBFT
74+
</a>
6975
<a
7076
href="/enterprise/overview"
7177
className="text-gray-900 dark:text-white px-5 py-2.5 hover:[text-shadow:0_0_8px_rgba(255,255,255,0.8)] transition-all duration-300"

snippets/docs-navigation-drawer.jsx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,26 @@ export const DocsNavigationDrawer = () => {
210210
opacity: isAnimating ? 1 : 0,
211211
transform: isAnimating ? 'translateY(0)' : 'translateY(20px)',
212212
transition: 'opacity 0.4s ease-out 0.4s, transform 0.4s ease-out 0.4s'
213+
}}>
214+
<a
215+
href="/cometbft/latest/docs/README"
216+
className="text-black dark:text-white hover:opacity-70"
217+
style={{
218+
textDecoration: 'none',
219+
fontSize: '48px',
220+
fontWeight: '300',
221+
display: 'block',
222+
transition: 'opacity 0.2s'
223+
}}
224+
>
225+
CometBFT
226+
</a>
227+
</li>
228+
<li style={{
229+
marginBottom: '32px',
230+
opacity: isAnimating ? 1 : 0,
231+
transform: isAnimating ? 'translateY(0)' : 'translateY(20px)',
232+
transition: 'opacity 0.4s ease-out 0.5s, transform 0.4s ease-out 0.5s'
213233
}}>
214234
<a
215235
href="/enterprise/overview"
@@ -237,7 +257,7 @@ export const DocsNavigationDrawer = () => {
237257
gap: '32px',
238258
flexWrap: 'wrap',
239259
opacity: isAnimating ? 1 : 0,
240-
transition: 'opacity 0.4s ease-out 0.5s'
260+
transition: 'opacity 0.4s ease-out 0.6s'
241261
}}
242262
>
243263
<a

snippets/mobile-menu-drawer.jsx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,26 @@ export const MobileMenuDrawer = () => {
211211
opacity: isAnimating ? 1 : 0,
212212
transform: isAnimating ? 'translateY(0)' : 'translateY(20px)',
213213
transition: 'opacity 0.4s ease-out 0.4s, transform 0.4s ease-out 0.4s'
214+
}}>
215+
<a
216+
href="/cometbft/latest/docs/README"
217+
className="text-black dark:text-white hover:opacity-70"
218+
style={{
219+
textDecoration: 'none',
220+
fontSize: '48px',
221+
fontWeight: '300',
222+
display: 'block',
223+
transition: 'opacity 0.2s'
224+
}}
225+
>
226+
CometBFT
227+
</a>
228+
</li>
229+
<li style={{
230+
marginBottom: '32px',
231+
opacity: isAnimating ? 1 : 0,
232+
transform: isAnimating ? 'translateY(0)' : 'translateY(20px)',
233+
transition: 'opacity 0.4s ease-out 0.5s, transform 0.4s ease-out 0.5s'
214234
}}>
215235
<a
216236
href="/enterprise/overview"
@@ -238,7 +258,7 @@ export const MobileMenuDrawer = () => {
238258
gap: '32px',
239259
flexWrap: 'wrap',
240260
opacity: isAnimating ? 1 : 0,
241-
transition: 'opacity 0.4s ease-out 0.5s'
261+
transition: 'opacity 0.4s ease-out 0.6s'
242262
}}
243263
>
244264
<a

style.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
:root {
2+
--background-light: 255 255 255;
3+
}
4+
5+
/* Accent color overrides */
6+
.bg-primary\/10 {
7+
background-color: #40b3ff;
8+
}
9+
10+
.dark .bg-primary\/10 {
11+
background-color: #4251fa;
12+
}
13+
14+
.bg-primary\/10.text-primary,
15+
.bg-primary\/10 .text-primary {
16+
color: white;
17+
}
18+
19+
.dark\:bg-primary-light\/10:is(.dark *) {
20+
background-color: #4251fa;
21+
}
22+
123
/* The Future Font Family */
224
@font-face {
325
font-family: 'The Future';

work-log/landing-fixes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## 2026-05-29
2+
3+
- Added CometBFT to landing page top nav, mobile menu drawer, and docs navigation drawer — it was already in the DocCard grid but missing from all nav menus
4+
- Added `navbar.links` to docs.json with all five products so the nav links appear on every docs page, not just the landing page
5+
- Changed light theme background to white by overriding `--background-light` in style.css
6+
- Added accent color overrides in style.css: `.bg-primary/10` → cyan (#40b3ff) in light mode, cobalt (#4251fa) in dark mode; scoped white text to `.bg-primary/10` elements only to avoid invisible text in the product dropdown

0 commit comments

Comments
 (0)