Skip to content

Commit cf9dc37

Browse files
authored
Merge pull request #82 from postmanlabs/markeng-3271
[markeng-3271] update navbar
2 parents 86df3e7 + c067af5 commit cf9dc37

File tree

3 files changed

+45
-57
lines changed

3 files changed

+45
-57
lines changed

build/navbarDev.json

Lines changed: 33 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,59 @@
11
{
22
"type": "header",
3-
"media": "https://voyager.postman.com/logo/postman-logo-white-horiz.svg",
3+
"media": "https://voyager.postman.com/logo/postman-logo-icon-orange.svg",
44
"items": [
55
{
66
"title": "Product",
77
"dropdown": "true",
8+
"isWidthShort": true,
89
"columns": [
910
{
1011
"title": "Getting Started",
12+
"colSize": "short",
1113
"subItemsCol": [
12-
{
13-
"title": "What is Postman?",
14-
"link": "",
15-
"url": "https://www.postman.com/product/what-is-postman/"
16-
},
17-
{
18-
"title": "Customer Stories",
19-
"link": "",
20-
"url": "https://www.postman.com/customers/"
21-
},
22-
{
23-
"title": "Download Postman →",
24-
"link": "app-cta",
25-
"url": "https://www.postman.com/downloads/"
26-
}
14+
{
15+
"title": "What is Postman?",
16+
"link": "",
17+
"url": "https://www.postman.com/product/what-is-postman/",
18+
"width:" : "true"
19+
},
20+
{
21+
"title": "Customer Stories",
22+
"link": "",
23+
"url": "https://www.postman.com/customers/",
24+
"width:" : "true"
25+
},
26+
{
27+
"title": "Download Postman →",
28+
"className": "blue-link",
29+
"link": "app-cta",
30+
"url": "https://www.postman.com/downloads/",
31+
"width:" : "true"
32+
}
2733
]
28-
},
29-
{
30-
"title": "API Platform",
34+
},
35+
{
36+
"title": "API Platform Features",
3137
"subItemsCol": [
3238
{
33-
"title": "Collaborate in Workspaces",
34-
"url": "https://www.postman.com/product/workspaces/"
35-
},
36-
{
37-
"title": "Organize with Collections",
39+
"title": "Collections",
3840
"url": "https://www.postman.com/collection/"
3941
},
4042
{
41-
"title": "Explore the API Client",
42-
"url": "https://www.postman.com/product/api-client/"
43+
"title": "Workspaces",
44+
"url": "https://www.postman.com/product/workspaces/"
4345
},
4446
{
45-
"title": "Build Postman Flows",
46-
"url": "https://www.postman.com/product/flows/"
47-
},
48-
{
49-
"title": "Work smarter with Postbot",
47+
"title": "Postbot",
5048
"url": "https://www.postman.com/product/postbot/"
5149
},
5250
{
53-
"title": "Browse API Tools",
54-
"url": "https://www.postman.com/product/tools/"
55-
}
56-
]
57-
},
58-
{
59-
"title": "Enterprise Solutions",
60-
"subItemsCol": [
61-
{
62-
"title": "Enterprise Essentials",
63-
"url": "https://www.postman.com/solutions/enterprise-essentials/"
64-
},
65-
{
66-
"title": "API Test Automation",
67-
"url": "https://www.postman.com/solutions/api-test-automation/"
51+
"title": "API Client",
52+
"url": "https://www.postman.com/product/api-client/"
6853
},
6954
{
70-
"title": "Internal API Management",
71-
"url": "https://www.postman.com/solutions/internal-api-management/"
55+
"title": "Browse API Tools",
56+
"url": "https://www.postman.com/product/tools/"
7257
}
7358
]
7459
}

src/components/Header/Header.jsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,14 +321,12 @@ const Header = (props) => {
321321
aria-labelledby="navbarDropdownMenuLink"
322322
>
323323
{ item.columns && item.columns &&
324-
<div className="row dropdown-col-menu">
324+
<div className={item.isWidthShort ? `row row__short` : `row dropdown-col-menu`}>
325325
{ item.columns.map((col) => (
326326
<div
327-
className={
328-
item.isWidthShort
329-
? 'col-sm-6 col-md-6 dropdown-col'
330-
: 'col-sm-6 col-md-4 dropdown-col'
331-
} key={col.title}>
327+
className={item.columns.length <= 2 ? 'col col-sm-6 col-md-6 dropdown-col' : 'col-sm-7 col-md-4 dropdown-col'}
328+
key={col.title}
329+
>
332330
<h6 className="dropdown-header">{col.title}</h6>
333331
{col.subItemsCol.map((link) => (
334332
<a

src/components/Header/HeaderStyles.jsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,15 +651,20 @@ export const DropdownStyles = styled.div`
651651
width: 64rem;
652652
}
653653
}
654+
655+
.row__short {
656+
width: 52rem;
657+
}
658+
654659
.dropdown-col {
655-
padding: 0 12px;
660+
/* padding: 0 12px; */
656661
@media screen and (max-width: 991px) {
657662
margin-bottom: 2rem;
658663
}
659664
}
660-
.dropdown-col:first-child {
665+
/* .dropdown-col:first-child {
661666
max-width: 30%;
662-
}
667+
} */
663668
664669
.dropdown-header {
665670
padding: 5px;

0 commit comments

Comments
 (0)