Skip to content

Commit 92181dd

Browse files
committed
Let status and team pages share common navigation
1 parent 323c606 commit 92181dd

6 files changed

Lines changed: 85 additions & 25 deletions

File tree

footer.html renamed to footer-status.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@
3636
<td class="badge"><a href="https://github.com/imagej/pyimagej/actions"><img src="https://github.com/imagej/pyimagej/actions/workflows/build.yml/badge.svg"></a></td>
3737
</tr>
3838
</table>
39+
40+
<hr>
41+
👍

footer-team.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<hr>
2+
👍

header-status.html

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<style>
2+
#site-nav {
3+
display: flex;
4+
gap: .4em;
5+
padding: .6em 1em;
6+
background: #2e2e2e;
7+
border-bottom: 1px solid #333;
8+
}
9+
#site-nav a {
10+
padding: .3em .9em;
11+
border-radius: 1em;
12+
text-decoration: none;
13+
font-size: .9em;
14+
color: #bbb;
15+
}
16+
#site-nav a:hover { background: #333; color: #fff; }
17+
#site-nav a.active {
18+
background: #444;
19+
color: #fff;
20+
font-weight: bold;
21+
cursor: default;
22+
}
23+
.badge-block {
24+
display: inline-block;
25+
text-align: center;
26+
font-family: sans-serif;
27+
font-size: 0.8em;
28+
font-variant: small-caps;
29+
line-height: 1.2em;
30+
background: lightgray;
31+
padding: 0.5em;
32+
margin: 0 0.3em 0.5em 0;
33+
border-radius: 0.5em;
34+
}
35+
</style>
36+
<nav id="site-nav">
37+
<a class="active">Status</a>
38+
<a href="/team">Team</a>
39+
</nav>
40+
<div class="badge-block">
41+
<a href="https://github.com/scijava/pom-scijava/actions/workflows/build.yml"><img src="https://github.com/scijava/pom-scijava/actions/workflows/build.yml/badge.svg"></a>
42+
<br><a href="https://github.com/scijava/pom-scijava">pom-scijava</a>
43+
</div>
44+
<div class="badge-block">
45+
<a href="https://github.com/scijava/pom-scijava-base/actions/workflows/build.yml"><img src="https://github.com/scijava/pom-scijava-base/actions/workflows/build.yml/badge.svg"></a>
46+
<br><a href="https://github.com/scijava/pom-scijava-base">pom-scijava-base</a>
47+
</div>

header-team.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<style>
2+
#site-nav {
3+
display: flex;
4+
gap: .4em;
5+
padding: .6em 1em;
6+
background: #2e2e2e;
7+
border-bottom: 1px solid #333;
8+
}
9+
#site-nav a {
10+
padding: .3em .9em;
11+
border-radius: 1em;
12+
text-decoration: none;
13+
font-size: .9em;
14+
color: #bbb;
15+
}
16+
#site-nav a:hover { background: #333; color: #fff; }
17+
#site-nav a.active {
18+
background: #444;
19+
color: #fff;
20+
font-weight: bold;
21+
cursor: default;
22+
}
23+
</style>
24+
<nav id="site-nav">
25+
<a href="/">Status</a>
26+
<a class="active">Team</a>
27+
</nav>

header.html

Lines changed: 0 additions & 22 deletions
This file was deleted.

pombast.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ repositories = ["scijava.public=https://maven.scijava.org/content/groups/public"
44

55
[status]
66
rules = "rules.xml"
7-
html = "index.html"
8-
header = "header.html"
9-
footer = "footer.html"
7+
html = "../status.scijava.org/index.html"
8+
header = "header-status.html"
9+
footer = "footer-status.html"
1010
nexus-base = "https://maven.scijava.org"
1111
cuttable = [
1212
"de.nanoimaging:*",
@@ -25,6 +25,9 @@ cuttable = [
2525
]
2626

2727
[team]
28+
html = "../status.scijava.org/team.html"
29+
header = "header-team.html"
30+
footer = "footer-team.html"
2831
includes = [
2932
"de.nanoimaging:*",
3033
"fr.inra.ijpb:*",

0 commit comments

Comments
 (0)