Skip to content

Commit 383cc92

Browse files
committed
Add link to twitter on every page
1 parent 2832660 commit 383cc92

File tree

2 files changed

+26
-11
lines changed

2 files changed

+26
-11
lines changed

apps/components_guide_web/assets/css/app.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,23 @@ article figcaption {
5454
font-weight: bold;
5555
}
5656

57-
a {
57+
a:not([class]) {
5858
color: var(--link-color);
5959
padding: var(--link-padding);
6060
text-decoration: var(--link-decoration);
6161
}
62-
a:hover {
62+
a:hover:not([class]) {
63+
--hover\:links-decoration: var(--link-decoration);
6364
text-decoration: var(--hover\:links-decoration);
6465
}
6566

67+
nav {
68+
--hover\:links-decoration: underline;
69+
}
70+
nav a:only-of-type {
71+
--link-padding: 0.5rem;
72+
}
73+
6674
h1,
6775
h2,
6876
h3,
Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
<footer role="contentinfo" class="container pt-4 pb-6 text-gray-500 tracking-wide">
2+
<div class="text-center text-xl text-white" style="--link-decoration: underline">
3+
Follow <a href="https://twitter.com/ComponentsGuide">@ComponentsGuide</a> on Twitter for the latest articles.
4+
</div>
5+
26
<div class="X pt-8 pb-12">
37
<%= render ComponentsGuideWeb.IntegrationsView, "convertkit_form.html", [] %>
48
</div>
59

610
<turbo-frame id="footer" src="/random">
711
</turbo-frame>
812

9-
<ul class="list-none text-xs mt-4 leading-loose text-gray-500">
10-
<li>Copyright © 2020 Patrick Smith
11-
<li>
12-
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">
13-
<img alt="Creative Commons License" style="opacity: 0.5" src="https://mirrors.creativecommons.org/presskit/buttons/80x15/svg/by-sa.svg" />
14-
</a>
15-
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Components.Guide</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://twitter.com/concreteniche" property="cc:attributionName" rel="cc:attributionURL">Patrick Smith</a> is <a href="https://github.com/ComponentsTV/components_guide/blob/master/LICENSE">licensed</a> under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
16-
<li><a href="https://github.com/ComponentsTV/components_guide">Source on GitHub</a>
17-
</ul>
13+
<nav aria-label="Links">
14+
<ul class="list-none text-xs mt-4 leading-loose text-gray-500">
15+
<li>Copyright © 2020 Patrick Smith
16+
<li>
17+
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">
18+
<img alt="Creative Commons License" style="opacity: 0.5" src="https://mirrors.creativecommons.org/presskit/buttons/80x15/svg/by-sa.svg" class="inline-block">
19+
</a>
20+
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Components.Guide</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://twitter.com/concreteniche" property="cc:attributionName" rel="cc:attributionURL">Patrick Smith</a> is <a href="https://github.com/ComponentsTV/components_guide/blob/master/LICENSE">licensed</a> under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
21+
<li class="inline-block"><a href="https://github.com/ComponentsTV/components_guide">View source on GitHub</a>
22+
<li class="inline-block"><a href="https://twitter.com/ComponentsGuide">Twitter</a>
23+
</ul>
24+
</nav>
1825
</footer>

0 commit comments

Comments
 (0)