Skip to content

Commit d53d624

Browse files
committed
Header: Fix search and f5 sites
1 parent 79a71ed commit d53d624

File tree

4 files changed

+73
-9
lines changed

4 files changed

+73
-9
lines changed

assets/css/v2/style.css

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ ol li:last-child {
333333
.grid-container {
334334
display: grid;
335335
grid-template-columns: var(--sidebar-width) 1fr;
336-
grid-template-rows: var(--space-xl) 1fr auto;
336+
grid-template-rows: var(--space-3xl) 1fr auto;
337337
grid-template-areas:
338338
"sidebar header"
339339
"sidebar content"
@@ -387,6 +387,41 @@ ol li:last-child {
387387
}
388388
}
389389

390+
.dropdown-content {
391+
position: absolute;
392+
background-color: oklch(var(--color-background));
393+
border: oklch(var(--color-foreground)) 1px solid;
394+
box-shadow: 3px 3px 0px oklch(var(--color-shadow));
395+
z-index: 1;
396+
right: 0;
397+
display: none;
398+
width: 400px;
399+
max-width: 80vw;
400+
margin-right: 2rem;
401+
}
402+
403+
.dropdown-content ul {
404+
padding: 20px 10px;
405+
}
406+
407+
.nav-item-explore {
408+
margin: 0;
409+
}
410+
411+
.navbar-button {
412+
padding: 0.5rem 0.5rem;
413+
border: none;
414+
border-radius: 0.25rem;
415+
text-align: center;
416+
text-decoration: none;
417+
cursor: pointer;
418+
}
419+
420+
.remove-bottom-radius {
421+
border-bottom-left-radius: 0;
422+
border-bottom-right-radius: 0;
423+
}
424+
390425
ul {
391426
list-style: none;
392427
}
@@ -778,7 +813,7 @@ nav {
778813
@media (min-width: 88em) {
779814
.text-content {
780815
grid-template-columns: var(--grid-content) var(--grid-side-callout);
781-
grid-template-rows: 70px max-content;
816+
grid-template-rows: 3rem max-content;
782817
column-gap: var(--grid-column-gutter);
783818
}
784819

@@ -843,8 +878,6 @@ nav {
843878

844879
atomic-search-interface {
845880
height: fit-content;
846-
margin-bottom: 2rem;
847-
margin-top: 2rem;
848881
}
849882

850883
.header-search-box {

layouts/_default/list.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
<main class="content content-has-toc" role="main">
44
<section class="main-layout">
5-
65
<section id="maincontent" class="content-layout">
76
<div data-cms-edit="content" class="text-content list-page">
87
<section class="breadcrumb-layout wide">
@@ -41,6 +40,6 @@ <h2>
4140
</section>
4241
</section>
4342
</main>
44-
</div>
43+
4544

4645
{{ end }}

layouts/partials/header.html

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,39 @@
11
{{ define "header" }}
22
<div class="header-container">
33
<div>Product Selector</div>
4-
<div>Search</div>
5-
<div>F5 Sites</div>
4+
{{ if ( not ( in .Site.Params.buildtype "package" ) ) }}
5+
<div>
6+
<!-- Standalone search box. -->
7+
{{ partial "coveo-atomic-search.html" }}
8+
</div>
9+
{{ end }}
10+
11+
<div>
12+
{{ $f5Sites := slice
13+
(dict "title" "DevCentral" "url" "https://community.f5.com/" "description" "Connect & learn in our hosted community")
14+
(dict "title" "MyF5" "url" "https://my.f5.com/" "description" "Your key to everything F5, including support, registration keys, and subscriptions")
15+
(dict "title" "NGINX" "url" "https://nginx.org/" "description" "Learn more about NGINX Open Source and read the community blog")
16+
}}
17+
18+
<ul class="navbar navbar-nav">
19+
<li class="nav-item-explore active">
20+
<button id="navbar-sites-button" class="button navbar-button">
21+
F5 Sites
22+
<i id="navbar-sites-button-icon" class="link-chevron-icon fa-solid fa-chevron-down"></i>
23+
</button>
24+
<div class="dropdown-content" id="dropdown-content">
25+
<ul>
26+
{{ range $f5Sites }}
27+
<li>
28+
<a href="{{ .url }}" target="_blank" >{{ .title }}</a>
29+
<p>{{ .description }}</p>
30+
</li>
31+
{{ end }}
32+
</ul>
33+
</div>
34+
</li>
35+
</ul>
36+
37+
</div>
638
</div>
739
{{ end }}

layouts/partials/sidebar-v2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ $nginxProducts := slice
1+
{{ $nginxProducts := slice
22
(dict "title" "NGINX One Console" "url" "/nginx-one" "type" "nginx-one")
33
(dict "title" "NGINX Plus" "url" "/nginx" "type" "nginx-one")
44
(dict "title" "NGINX Instance Manager" "url" "/nginx-instance-manager" "type" "nginx-one")

0 commit comments

Comments
 (0)