Skip to content

Commit fff5ed4

Browse files
committed
[mktg-2855][c] update navbar for April 17 release
1 parent 7c59a5c commit fff5ed4

File tree

3 files changed

+32
-10
lines changed

3 files changed

+32
-10
lines changed

build/navbarDev.json

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,29 @@
2828
]
2929
},
3030
{
31-
"title": "API Platform Features",
31+
"title": "Features",
3232
"subItemsCol": [
3333
{
34-
"title": "AI Agent Builder",
35-
"url": "https://www.postman.com/product/ai-agent-builder/"
34+
"title": "Platform Overview",
35+
"url": "https://www.postman.com/product/platform/"
36+
},
37+
{
38+
"title": "Spec Hub",
39+
"url": "https://www.postman.com/product/spec-hub/",
40+
"badge": "new"
3641
},
3742
{
3843
"title": "Collections",
39-
"url": "https://www.postman.com/collection/"
44+
"url": "https://www.postman.com/product/collections/"
4045
},
4146
{
4247
"title": "Workspaces",
4348
"url": "https://www.postman.com/product/workspaces/"
4449
},
50+
{
51+
"title": "API Client",
52+
"url": "https://www.postman.com/product/api-client/"
53+
},
4554
{
4655
"title": "Partner Workspaces",
4756
"url": "https://www.postman.com/product/partner-workspaces/"
@@ -51,11 +60,11 @@
5160
"url": "https://www.postman.com/product/postbot/"
5261
},
5362
{
54-
"title": "API Client",
55-
"url": "https://www.postman.com/product/api-client/"
63+
"title": "AI Agent Builder",
64+
"url": "https://www.postman.com/product/ai-agent-builder/"
5665
},
5766
{
58-
"title": "Browse API Tools",
67+
"title": "More Resources",
5968
"url": "https://www.postman.com/product/tools/"
6069
}
6170
]

src/components/Header/Header.jsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const Header = (props) => {
100100
const [beta, setBeta] = useState('');
101101
const [cookie, setCookie] = useState('');
102102
const [hidden, setHidden] = useState(true);
103-
const [data, setData] = useState(navbarData);
103+
const [data, setData] = useState(navbarDataLocal);
104104
const [dataDropdown, setDataDropdown] = useState(navbarData);
105105
const [visibleHelloBar] = useState();
106106

@@ -115,7 +115,7 @@ const Header = (props) => {
115115
const navtopicsdropdownKeys = ['items', 'type']
116116

117117
if (navbarKeys.every(key => Object.keys(navbarData).includes(key))) {
118-
setData(navbarData)
118+
setData(navbarDataLocal)
119119
} else {
120120
setData(navbarDataLocal)
121121
}
@@ -334,7 +334,10 @@ const Header = (props) => {
334334
href={link.url}
335335
key={link.title}
336336
>
337-
{link.title}
337+
<span>{link.title}</span>
338+
{link.badge && (
339+
<span className="dropdown__badge">{link.badge}</span>
340+
)}
338341
</a>
339342
))}
340343
</div>

src/components/Header/HeaderStyles.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,16 @@ export const DropdownStyles = styled.div`
671671
font-weight: 600;
672672
margin-bottom: 0px;
673673
}
674+
675+
.dropdown__badge {
676+
margin-left: 0.5rem; /* ml-2 */
677+
border-radius: 0.25rem; /* rounded */
678+
border: 1px solid #e4d8f6; /* border border-[#e4d8f6] */
679+
padding: 0.5rem; /* px-1 */
680+
font-size: 10px; /* text-[10px] */
681+
text-transform: uppercase; /* uppercase */
682+
color: #623497; /* text-[#623497] */
683+
}
674684
`
675685

676686

0 commit comments

Comments
 (0)