Skip to content

Commit 51e4817

Browse files
Copilotjbampton
andauthored
Add GitHub fork ribbon to site header
Agent-Logs-Url: https://github.com/NextCommunity/NextCommunity.github.io/sessions/f2c847aa-a99e-46ff-9603-d4a20cbaf3bc Co-authored-by: jbampton <418747+jbampton@users.noreply.github.com>
1 parent d6d89b6 commit 51e4817

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

src/_includes/header.njk

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
<style>
2+
.github-corner:hover .octo-arm { animation: octocat-wave 560ms ease-in-out; }
3+
@keyframes octocat-wave {
4+
0%, 100% { transform: rotate(0); }
5+
20%, 60% { transform: rotate(-25deg); }
6+
40%, 80% { transform: rotate(10deg); }
7+
}
8+
@media (max-width: 500px) {
9+
.github-corner:hover .octo-arm { animation: none; }
10+
.github-corner .octo-arm { animation: octocat-wave 560ms ease-in-out; }
11+
}
12+
</style>
13+
<a href="https://github.com/NextCommunity/NextCommunity.github.io"
14+
class="github-corner"
15+
aria-label="Fork me on GitHub"
16+
target="_blank"
17+
rel="noopener noreferrer">
18+
<svg width="80" height="80" viewBox="0 0 250 250"
19+
style="fill:#151513; color:#fff; position:fixed; top:0; border:0; right:0; z-index:9999;"
20+
aria-hidden="true">
21+
<path d="M0,0 L115,115 L130,100 L142,88 L250,0 Z"/>
22+
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6
23+
C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3
24+
C122.9,97.6 130.6,101.9 134.4,103.2"
25+
fill="currentColor"
26+
style="transform-origin: 130px 106px;"
27+
class="octo-arm"/>
28+
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6
29+
C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0
30+
C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1
31+
C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4
32+
C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9
33+
C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5
34+
C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9
35+
L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
36+
fill="currentColor"
37+
class="octo-body"/>
38+
</svg>
39+
</a>
140
<header class="sticky top-0 z-[100] w-full bg-[var(--bg-page)]/80 backdrop-blur-md border-b-2 border-[var(--border-color)]">
241
<div class="max-w-7xl mx-auto px-4 py-4 md:py-6 flex flex-col lg:flex-row items-center justify-between gap-6">
342

0 commit comments

Comments
 (0)