File tree Expand file tree Collapse file tree 3 files changed +32
-10
lines changed
Expand file tree Collapse file tree 3 files changed +32
-10
lines changed Original file line number Diff line number Diff line change 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/"
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 ]
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments