Skip to content

Commit 873ea43

Browse files
Update website top navigation bar (#3670)
* Replace helmet logo with helmet+Foreman * Move Support forum and Contribute links to top menu
1 parent 563ba3a commit 873ea43

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

web/Rules

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ passthrough "/img/**"
88
passthrough "/js/**/*.js"
99
passthrough "/CNAME"
1010
passthrough "/favicon.ico"
11+
passthrough "/ostrich-black.ttf"
12+
## Font ostrich-black.ttf obtained from https://github.com/theforeman/foreman-graphics/blob/master/stickers/ostrich-black.ttf
1113

1214
# SCSS compilation
1315
ignore "/css/_*.{sass,scss}"

web/content/css/_nav.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,16 @@ nav {
3434
}
3535
nav .logo {
3636
width: 50px;
37-
vertical-align: middle;
37+
}
38+
nav .nav-heading {
39+
color: #fff;
40+
font-family: ostrich-black;
41+
font-size: 1.8em;
42+
padding: 0.5em;
43+
vertical-align: sub;
44+
}
45+
nav .nav-logo-heading {
46+
text-decoration: none;
3847
}
3948
nav .nav-menu {
4049
position: absolute;
@@ -185,3 +194,7 @@ nav.opened .btn-hamburger span:nth-child(3) {
185194
display: block;
186195
}
187196
}
197+
@font-face {
198+
font-family: ostrich-black;
199+
src: url('../ostrich-black.ttf') format('truetype');
200+
}

web/content/index.adoc.erb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ For Foreman plugin overview, see link:https://theforeman.org/plugins/[Plugins].
1616

1717
Start by using the top menu bar to select your release version.
1818

19-
For questions, visit the https://community.theforeman.org/c/support/10[support forum].
20-
For contribution, visit the https://github.com/theforeman/foreman-documentation[GitHub repository].
21-
2219
=== Available flavors
2320

2421
We provide documentation for the following flavors:

web/content/js/nav.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ function buildNavigation() {
1616
}
1717

1818
return `<nav>
19-
<a href="/">
19+
<a class="nav-logo-heading" href="/">
2020
<img class="logo" src="/img/helmet.svg" alt="Home">
21+
<span class="nav-heading">Foreman docs</span>
2122
</a>
2223
<button type="button" class="btn-hamburger" data-action="nav-toggle">
2324
<span></span>
@@ -28,6 +29,8 @@ function buildNavigation() {
2829
</button>
2930
<ul class="nav-menu">
3031
<li class="nav-item"><a href="https://theforeman.org/">About Foreman</a></li>
32+
<li class="nav-item"><a href="https://community.theforeman.org/c/support/10">Support forum</a></li>
33+
<li class="nav-item"><a href="https://github.com/theforeman/foreman-documentation">Contribute</a></li>
3134
<li class="nav-item"><a href="${guides_link}">${currentVer} guides</a></li>
3235
<li class="nav-item dropdown">
3336
<a href="#" data-action="dropdown-toggle">All versions</a>

web/content/ostrich-black.ttf

12.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)