Skip to content

Commit 810a441

Browse files
authored
Max updates GitHub ribbon (NextCommunity#491)
* clean 11ty js * Adding github ribbon * update bun.lock, improve github ribbon * update packages * ADDING github-fork-me.png imag * update some fixes based on ai feedback * Undo unrelated files * run prek run -a to fix eof
1 parent 1e5d03d commit 810a441

5 files changed

Lines changed: 22 additions & 0 deletions

File tree

src/_includes/bio.njk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
</head>
1010
<body class="min-h-screen scroll-smooth bg-[var(--bg-page)] text-[var(--text-main)] transition-colors duration-300">
1111

12+
{% include "github-ribbon.njk" %}
13+
1214
{% include "header.njk" %}
1315

1416
<main class="max-w-5xl mx-auto px-4 py-12">

src/_includes/github-ribbon.njk

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<a
2+
href="{{ build.repoUrl }}"
3+
target="_blank"
4+
rel="noopener noreferrer"
5+
class="fixed top-0 left-0 z-[200] block w-[88px] h-[88px] sm:w-[112px] sm:h-[112px] overflow-hidden"
6+
>
7+
<img
8+
loading="eager"
9+
decoding="async"
10+
width="112"
11+
height="112"
12+
src="/assets/img/github-fork-me.png"
13+
alt="Fork this project on GitHub"
14+
class="h-full w-full"
15+
>
16+
</a>

src/assets/img/github-fork-me.png

7.96 KB
Loading

src/games.njk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ permalink: /games/
1313
</head>
1414
<body class="min-h-screen scroll-smooth bg-[var(--bg-page)] text-[var(--text-main)] transition-colors duration-300">
1515

16+
{% include "github-ribbon.njk" %}
17+
1618
{% include "header.njk" %}
1719

1820
<main class="max-w-5xl mx-auto px-4 py-12">

src/index.njk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ layout: false
1212
</head>
1313
<body class="min-h-screen scroll-smooth bg-[var(--bg-page)] text-[var(--text-main)] transition-colors duration-300">
1414

15+
{% include "github-ribbon.njk" %}
16+
1517
{% include "header.njk" %}
1618

1719
<main class="max-w-7xl mx-auto px-4 py-12">

0 commit comments

Comments
 (0)