Skip to content

Commit 4406b05

Browse files
authored
Merge pull request #9 from opendevise/issue-4-footer
resolves #4 populate footer with project-specific information and style it
2 parents 04e0c2b + 026052a commit 4406b05

3 files changed

Lines changed: 141 additions & 8 deletions

File tree

ui/src/css/footer.css

Lines changed: 110 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,122 @@
11
footer.footer {
22
background-color: var(--footer-background);
33
color: var(--footer-font-color);
4-
font-size: calc(15 / var(--rem-base) * 1rem);
4+
font-size: calc(14 / var(--rem-base) * 1rem);
55
line-height: var(--footer-line-height);
6-
padding: 1.5rem;
6+
padding: 2rem 1rem;
7+
display: flex;
8+
flex-direction: column;
79
}
810

911
.footer p {
10-
margin: 0.5rem 0;
12+
margin: 0;
1113
}
1214

1315
.footer a {
16+
color: inherit;
17+
text-decoration: none;
18+
}
19+
20+
.footer a:hover {
1421
color: var(--footer-link-font-color);
1522
}
23+
24+
.footer img {
25+
vertical-align: middle;
26+
}
27+
28+
.footer p + p {
29+
margin-top: 1em;
30+
}
31+
32+
.footer-main {
33+
display: flex;
34+
flex-direction: column;
35+
align-items: center;
36+
}
37+
38+
.footer-brand {
39+
display: flex;
40+
align-items: center;
41+
margin: 0;
42+
}
43+
44+
.footer-brand-links {
45+
list-style: none;
46+
display: flex;
47+
margin: 1.25rem 0 0;
48+
padding: 0;
49+
font-size: 0.9rem;
50+
}
51+
52+
.footer-brand-links li + li::before {
53+
content: '|';
54+
padding: 0 0.5em;
55+
}
56+
57+
.footer-brand-follow {
58+
font-size: calc(24 / var(--rem-base) * 1rem);
59+
font-weight: var(--body-font-weight-bold);
60+
line-height: 1;
61+
}
62+
63+
.footer p.footer-brand-follow {
64+
margin-top: 1.25rem;
65+
}
66+
67+
.footer-brand-follow .logo {
68+
filter: invert(100%);
69+
width: calc(24 / var(--rem-base) * 1rem);
70+
}
71+
72+
.footer-brand-follow .handle {
73+
padding: 0 0 0.1em 0.5ch;
74+
}
75+
76+
.footer-legal {
77+
margin-top: 1.5rem;
78+
}
79+
80+
.footer-legal,
81+
.footer-thanks {
82+
text-align: center;
83+
}
84+
85+
.footer-thanks .badges {
86+
line-height: 1;
87+
display: inline-flex;
88+
align-items: center;
89+
}
90+
91+
.footer-thanks .badges a + a {
92+
margin-left: 1em;
93+
}
94+
95+
@media screen and (min-width: 1024px) {
96+
footer.footer {
97+
flex-direction: row;
98+
position: relative;
99+
z-index: var(--z-index-footer);
100+
}
101+
102+
.footer-legal {
103+
margin-top: 0;
104+
padding: 0 1.5rem;
105+
text-align: left;
106+
width: 40%;
107+
}
108+
109+
.footer-main,
110+
.footer-thanks {
111+
width: 30%;
112+
}
113+
114+
.footer-thanks {
115+
text-align: right;
116+
}
117+
118+
.footer-thanks .badges {
119+
display: flex;
120+
justify-content: flex-end;
121+
}
122+
}

ui/src/css/vars.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
--color-smoke-70: #f0f0f0;
88
--color-smoke-90: #e1e1e1;
99
--color-gray-10: #c1c1c1;
10+
--color-gray-15: #bababa;
1011
--color-gray-30: #9c9c9c;
1112
--color-gray-40: #8e8e8e;
1213
--color-gray-50: #808080;
@@ -118,9 +119,9 @@
118119
--toc-line-height: 1.2;
119120
/* footer */
120121
--footer-line-height: var(--doc-line-height);
121-
--footer-background: var(--color-smoke-90);
122-
--footer-font-color: var(--color-gray-70);
123-
--footer-link-font-color: var(--color-jet-80);
122+
--footer-background: var(--color-jet-80);
123+
--footer-font-color: var(--color-gray-15);
124+
--footer-link-font-color: var(--color-white);
124125
/* dimensions and positioning */
125126
--navbar-height: calc(63 / var(--rem-base) * 1rem);
126127
--toolbar-height: calc(45 / var(--rem-base) * 1rem);

ui/src/partials/footer-content.hbs

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
11
<footer class="footer">
2-
<p>This page was built using the Antora default UI.</p>
3-
<p>The source code for this UI is licensed under the terms of the MPL-2.0 license.</p>
2+
<div class="footer-main">
3+
<figure class="footer-brand">
4+
<a class="logo" href="{{or site.url siteRootPath}}"><img src="{{uiRootPath}}/img/jetty-logo.svg" alt="{{site.title}}" height="46" width="160"></a>
5+
</figure>
6+
<ul class="footer-brand-links">
7+
<li><a href="{{relativize (resolvePageURL 'docs::index.adoc')}}">Docs</a></li>
8+
<li><a href="{{relativize (resolvePageURL 'ROOT::support.adoc')}}">Support</a></li>
9+
<li>Lists: <a href="http://dev.eclipse.org/mhonarc/lists/jetty-users/maillist.html" target="_blank" rel="noopener">users</a> - <a href="http://dev.eclipse.org/mhonarc/lists/jetty-dev/maillist.html" target="_blank" rel="noopener">dev</a></li>
10+
<li><a href="https://github.com/eclipse/jetty.project" target="_blank" rel="noopener">Source</a></li>
11+
</ul>
12+
<p class="footer-brand-follow">
13+
<a href="https://twitter.com/JettyProject" title="Follow us on X" target="_blank" rel="noopener"><img src="{{{uiRootPath}}}/img/x-logo.svg" alt="X logo" class="logo" width="24"><span class="handle">@JettyProject</span></a>
14+
</p>
15+
</div>
16+
<div class="footer-legal">
17+
<p>Copyright © 2008-{{{year}}} Webtide</p>
18+
<p>The <a href="https://github.com/webtide/jetty.website" target="_blank" rel="noopener">UI for this site</a> is derived from the Antora default UI and is licensed under the MPL-2.0 license. Several icons are imported from <a href="https://primer.style/octicons/" target="_blank" rel="noopener">Octicons</a> and are licensed under the MIT license.</p>
19+
<p>Eclipse Jetty® is a trademarks of the Eclipse Foundation, Inc.</p>
20+
</div>
21+
<div class="footer-thanks">
22+
<p>This project is made possible by Webtide. Additional thanks to the <a href="https://eclipse.org" target="_blank" rel="noopener">Eclipse Foundation</a> for hosting this project.</p>
23+
<p class="badges">
24+
<a href="https://webtide.com" title="Development led by Webtide" target="_blank" rel="noopener"><img src="{{{uiRootPath}}}/img/webtide-logo.png" alt="Webtide Logo" width="100"></a>
25+
<a href="https://jetbrains.com/idea" title="IntelliJ IDEA integration provided by JetBrains" target="_blank" rel="noopener"><img src="{{{uiRootPath}}}/img/intellij-idea-logo.svg" alt="IntelliJ IDEA Logo" width="24"></a>
26+
</p>
27+
<p>Authored in <a href="https://asciidoc.org" target="_blank" rel="noopener">AsciiDoc</a>.<br>Produced by <a href="https://antora.org" target="_blank" rel="noopener">Antora</a> and <a href="https://asciidoctor.org" target="_blank" rel="noopener">Asciidoctor</a>.</p>
28+
</div>
429
</footer>

0 commit comments

Comments
 (0)