Skip to content

Commit f18c962

Browse files
committed
initial navbar
1 parent a77d96d commit f18c962

File tree

3 files changed

+52
-88
lines changed

3 files changed

+52
-88
lines changed

_assets/borg.css

Lines changed: 40 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ header {
88
background-color: black;
99
padding-top: 1.5rem;
1010
padding-bottom: 1rem;
11-
border-bottom: 2px solid #22D045;
11+
border-bottom: 5px solid #22D045;
1212
}
1313

1414
#logo {
@@ -21,6 +21,45 @@ header h1 {
2121
text-align: center;
2222
}
2323

24+
nav {
25+
display: flex;
26+
justify-content: center;
27+
}
28+
29+
nav > ol {
30+
display: flex;
31+
flex-wrap: wrap;
32+
justify-content: center;
33+
gap: 1rem;
34+
padding: 0;
35+
}
36+
37+
nav > ol > li {
38+
list-style: none;
39+
}
40+
41+
/* mono system font stack courtesy of https://qwtel.com/posts/software/the-monospaced-system-ui-css-font-stack/ */
42+
nav > ol > li > a {
43+
font-size: 1.1rem;
44+
font-weight: bold;
45+
color: #22D045;
46+
font-family: ui-monospace,
47+
Menlo, Monaco,
48+
"Cascadia Mono", "Segoe UI Mono",
49+
"Roboto Mono",
50+
"Oxygen Mono",
51+
"Ubuntu Monospace",
52+
"Source Code Pro",
53+
"Fira Mono",
54+
"Droid Sans Mono",
55+
"Courier New", monospace;
56+
}
57+
58+
nav > ol > li > a:hover {
59+
text-shadow: 0 0 5px black;
60+
background: radial-gradient(#22D045, transparent);
61+
}
62+
2463
main.content {
2564
max-width: 600px;
2665
padding: 0 1rem;
@@ -54,33 +93,6 @@ main ul {
5493
margin: 1.5rem 0;
5594
}
5695

57-
#links {
58-
padding-bottom: 1.5rem;
59-
display: flex;
60-
flex-wrap: wrap;
61-
justify-content: space-around;
62-
}
63-
64-
#links a {
65-
color: #22D045;
66-
}
67-
68-
#links a:hover .action {
69-
background: white;
70-
text-shadow: 0 0 5px #22D045;
71-
}
72-
73-
#links .link {
74-
display: flex;
75-
text-align: center;
76-
padding: 0.75rem 1.5rem;
77-
float: left;
78-
}
79-
80-
#links .action {
81-
font-size: 400%;
82-
}
83-
8496
.contributors {
8597
line-height: 1.5;
8698
font-style: italic;

index.rst

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -19,65 +19,5 @@ BorgBackup – Deduplicating archiver with compression and authenticated encrypt
1919
<li>Free software (BSD license).
2020
<li>Backed by a large and active open source community.
2121
</ul>
22-
23-
<div id="links">
24-
<div class="link">
25-
<a href="/demo.html">
26-
<span class="action">See</span><br>
27-
a demo
28-
</a>
29-
</div>
30-
31-
<div class="link">
32-
<a href="/releases/">
33-
<span class="action">Get</span><br>
34-
BorgBackup
35-
</a>
36-
</div>
37-
38-
<div class="link">
39-
<a href="https://borgbackup.readthedocs.io/">
40-
<span class="action">Read</span><br>
41-
the docs
42-
</a>
43-
</div>
44-
45-
<div class="link">
46-
<a href="https://github.com/borgbackup/community">
47-
<span class="action">Browse</span><br>
48-
community resources
49-
</a>
50-
</div>
51-
52-
<div class="link">
53-
<a href="/support/fund.html">
54-
<span class="action">Fund</span><br>
55-
development
56-
</a>
57-
</div>
58-
59-
<div class="link">
60-
<a href="https://github.com/borgbackup/borg">
61-
<span class="action">Contribute</span><br>
62-
to the project
63-
</a>
64-
</div>
65-
66-
<div class="link">
67-
<a href="/support/free.html">
68-
<span class="action">Receive</span><br>
69-
free support
70-
</a>
71-
</div>
72-
73-
<div class="link">
74-
<a href="/support/commercial.html">
75-
<span class="action">Pay</span><br>
76-
for services
77-
</a>
78-
</div>
79-
</div>
80-
81-
<div></div>
8222

8323
<em>... and always check your backups!</em>

rst_template.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@
1818
<path id="p4" transform="translate(236.429, 46.0213)" fill="#00dd00" d="M36.875 13.8021L26.6667 13.8021L26.6667 7.10543e-15L46.0937 7.10543e-15L59.8958 13.8021L59.8958 60.7812L46.0937 74.6875L15.7292 74.6875L8.80208 67.7083L8.80208 62.6042L36.875 62.6042ZM33.2292 42.3958L33.2292 48.4896L26.3542 55.3125L13.8021 55.3125L0 41.5104L0 13.8021L13.8021 0L23.0208 0L23.0208 42.3958Z"/>
1919
</svg></a></h1>
2020
</div>
21+
<nav>
22+
<ol>
23+
<li><a href="/demo.html">Demo</a></li>
24+
<li><a href="/releases/">Install</a></li>
25+
<li><a href="https://borgbackup.readthedocs.io/">Docs</a></li>
26+
<li><a href="https://github.com/borgbackup/community">Community</a></li>
27+
<li><a href="/support/fund.html">Fund</a></li>
28+
<li><a href="https://github.com/borgbackup/borg">Contribute</a></li>
29+
<li><a href="/support/free.html">Support</a></li>
30+
<li><a href="/support/commercial.html">Services</a></li>
31+
</ol>
32+
</nav>
2133
</header>
2234

2335
<main class="content">

0 commit comments

Comments
 (0)