@@ -67,6 +67,16 @@ function initTopNav() {
6767 #top-nav .nav-spacer { flex: 1; }
6868 #top-nav .nav-right a { color: #8888aa; font-size: 12px; padding: 5px 10px; }
6969 #top-nav .nav-right a:hover { color: #ddd; background: rgba(255,255,255,0.05); }
70+ #top-nav .nav-right a.nav-sponsor {
71+ color: #ffd5ef;
72+ background: rgba(236, 72, 153, 0.16);
73+ box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.45);
74+ }
75+ #top-nav .nav-right a.nav-sponsor:hover {
76+ color: #fff;
77+ background: rgba(236, 72, 153, 0.28);
78+ box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.7);
79+ }
7080 #site-footer {
7181 border-top: 1px solid #1a1a2e; padding: 18px 24px; margin-top: 40px;
7282 display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
@@ -125,6 +135,14 @@ function initTopNav() {
125135 ghLink . textContent = "GitHub" ;
126136 rightGroup . appendChild ( ghLink ) ;
127137
138+ const sponsorLink = document . createElement ( "a" ) ;
139+ sponsorLink . href = "https://github.com/sponsors/web3dev1337" ;
140+ sponsorLink . target = "_blank" ;
141+ sponsorLink . rel = "noopener" ;
142+ sponsorLink . textContent = "Sponsor" ;
143+ sponsorLink . className = "nav-sponsor" ;
144+ rightGroup . appendChild ( sponsorLink ) ;
145+
128146 nav . appendChild ( rightGroup ) ;
129147
130148 if ( ! isEditor ) document . body . classList . add ( "has-top-nav" ) ;
@@ -133,7 +151,7 @@ function initTopNav() {
133151 if ( ! isEditor && path !== "credits.html" ) {
134152 const footer = document . createElement ( "div" ) ;
135153 footer . id = "site-footer" ;
136- footer . innerHTML = `<span class="footer-credit">Shader library: <a href="https://github.com/mebiusbox/pixy.js" target="_blank">pixy.js</a> by <a href="https://github.com/mebiusbox" target="_blank">mebiusbox</a> (MIT) · Includes <a href="credits.html">Shadertoy community shaders</a></span><span><a href="credits.html">Credits</a> · <a href="https://github.com/web3dev1337/shaderbrew" target="_blank">GitHub</a></span>` ;
154+ footer . innerHTML = `<span class="footer-credit">Shader library: <a href="https://github.com/mebiusbox/pixy.js" target="_blank">pixy.js</a> by <a href="https://github.com/mebiusbox" target="_blank">mebiusbox</a> (MIT) · Includes <a href="credits.html">Shadertoy community shaders</a></span><span><a href="credits.html">Credits</a> · <a href="https://github.com/web3dev1337/shaderbrew" target="_blank">GitHub</a> · <a href="https://github.com/sponsors/web3dev1337" target="_blank" rel="noopener">Sponsor</a> </span>` ;
137155 document . body . appendChild ( footer ) ;
138156 }
139157
0 commit comments