Skip to content

Commit 031b408

Browse files
committed
add link to Twitter handle in footer
1 parent 0050892 commit 031b408

File tree

3 files changed

+58
-5
lines changed

3 files changed

+58
-5
lines changed

src/css/footer.css

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ footer.footer {
2121
color: var(--footer-link-font-color);
2222
}
2323

24-
.footer p + p {
24+
.footer img {
25+
vertical-align: middle;
26+
}
27+
28+
.footer p + p,
29+
.footer ul + p {
2530
margin-top: 1em;
2631
}
2732

@@ -76,6 +81,24 @@ footer.footer {
7681
padding: 0 0.5em;
7782
}
7883

84+
.footer-brand-follow {
85+
font-size: calc(24 / var(--rem-base) * 1rem);
86+
font-weight: var(--body-font-weight-bold);
87+
}
88+
89+
.footer-brand-follow a {
90+
display: inline-flex;
91+
}
92+
93+
.footer-brand-follow .logo {
94+
width: calc(28 / var(--rem-base) * 1rem);
95+
}
96+
97+
.footer-brand-follow .handle {
98+
margin-left: 0.5ch;
99+
padding-bottom: 0.1em;
100+
}
101+
79102
.footer-legal {
80103
margin-top: 1.5rem;
81104
}
@@ -95,10 +118,6 @@ footer.footer {
95118
margin-left: 5px;
96119
}
97120

98-
.footer-thanks .badges img {
99-
vertical-align: middle;
100-
}
101-
102121
@media screen and (min-width: 1024px) {
103122
footer.footer {
104123
flex-direction: row;

src/img/twitter-logo.svg

Lines changed: 31 additions & 0 deletions
Loading

src/partials/footer-content.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
<li><a href="https://discuss.asciidoctor.org" target="_blank" rel="noopener">List</a></li>
1212
<li><a href="https://github.com/asciidoctor" target="_blank" rel="noopener">Source</a></li>
1313
</ul>
14+
<p class="footer-brand-follow">
15+
<a href="https://twitter.com/asciidoctor" title="Follow us on Twitter" target="_blank" rel="noopener"><img src="{{{uiRootPath}}}/img/twitter-logo.svg" alt="Twitter logo" class="logo" width="28"><span class="handle">@asciidoctor</span></a>
16+
</p>
1417
</div>
1518
<div class="footer-legal">
1619
<p>Copyright © {{{year}}} Dan Allen, Sarah White, and individual Asciidoctor contributors. Except where noted, the content is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license.</p>

0 commit comments

Comments
 (0)