Publish built site (dist) for Gitea Pages

This commit is contained in:
hermes committed 2026-12-05 23:17:25 +00:00
commit 7b21c07974
5 files changed
+109

No files matched your search

+1
View File
@@ -0,0 +1 @@
:root{--bg:#10131f;--panel:#1b2032;--ink:#f2ecdd;--dim:#9aa3bd;--accent:#ffb648;--red:#b8232f;--green:#2f7d5c}*{box-sizing:border-box}body{background:radial-gradient(1200px 500px at 50% -10%, #232c4a 0%, transparent 60%), var(--bg);color:var(--ink);margin:0;font:16px/1.45 system-ui,-apple-system,Segoe UI,sans-serif}#app{max-width:1240px;margin:0 auto;padding:1.2rem 1rem 2.5rem}header{text-align:center;margin-bottom:.6rem}h1{letter-spacing:.02em;margin:0;font-size:clamp(1.6rem,4vw,2.4rem)}h1:after{content:" 🚲"}.tagline{color:var(--dim);margin:.15rem 0 0;font-style:italic}#hud{flex-wrap:wrap;justify-content:center;gap:.45rem;margin:.7rem 0 .8rem;display:flex}.chip{background:var(--panel);color:var(--dim);border:1px solid #2c3450;border-radius:999px;padding:.25rem .8rem;font-size:.85rem}.chip b{color:var(--ink);font-variant-numeric:tabular-nums}.chip.best b{color:var(--accent)}#stage{background:#0b0e18;border:1px solid #2c3450;border-radius:14px;position:relative;overflow:hidden;box-shadow:0 18px 50px #00000073}canvas{width:100%;height:auto;display:block}.overlay{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0a0d189e;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.overlay.hidden{display:none}.panel{background:var(--panel);text-align:center;border:1px solid #39415f;border-radius:14px;max-width:640px;padding:1.4rem 1.8rem;box-shadow:0 12px 40px #00000080}.panel h2{margin:0 0 .9rem;font-size:1.5rem}#cards{flex-wrap:wrap;justify-content:center;gap:.8rem;display:flex}.card{width:250px;color:var(--ink);cursor:pointer;font:inherit;text-align:center;background:#232a42;border:1px solid #39415f;border-radius:12px;flex-direction:column;gap:.3rem;padding:.9rem 1rem;transition:transform .12s,border-color .12s;display:flex}.card:hover{border-color:var(--accent);transform:translateY(-3px)}.card .glyph{font-size:1.9rem}.card b{font-size:1.02rem}.card small{color:var(--dim)}.controls{color:var(--dim);margin:1rem 0 0;font-size:.88rem}kbd{background:#2c3450;border:1px solid #465074;border-bottom-width:2px;border-radius:5px;padding:.05em .45em;font:.8em ui-monospace,monospace}.score-line{margin:.2rem 0;font-size:1.05rem}.score-line b{color:var(--accent);font-size:1.3rem}.best-line{color:var(--dim);min-height:1.2em;margin:.2rem 0 1rem}.best-line.new{color:var(--accent);font-weight:700}#restart-btn,#menu-btn{font:inherit;cursor:pointer;border-radius:10px;margin:0 .3rem;padding:.5rem 1.1rem}#restart-btn{background:var(--red);color:#fff;border:1px solid #d4374a;font-weight:700}#restart-btn:hover{filter:brightness(1.15)}#menu-btn{color:var(--dim);background:0 0;border:1px solid #465074}#menu-btn:hover{color:var(--ink)}.hint{text-align:center;color:var(--dim);margin:.8rem 0 0;font-size:.85rem}
+24
View File
@@ -0,0 +1,24 @@
(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e=`https://advent-of-slop.quesma.com`,t=`
nav {
position: fixed;
top: 0;
right: 0;
z-index: 2147483647;
display: flex;
flex-wrap: wrap;
gap: 0 0.35em;
max-width: 100vw;
box-sizing: border-box;
padding: 0.35rem 0.7rem;
border-bottom-left-radius: 0.5rem;
background: #b8232f;
font: 700 0.8125rem/1.2 system-ui, sans-serif;
}
a {
color: #f6ecd6;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
`,n=(e,t)=>{let n=document.createElement(`a`);return n.href=e,n.textContent=t,n},r=class extends HTMLElement{connectedCallback(){let r=Number(this.getAttribute(`day`));if(!Number.isInteger(r)||r<1||r>24)throw Error(`<advent-badge> needs day="1" to day="24", got ${this.getAttribute(`day`)}`);let i=this.getAttribute(`name`);if(i===null||i.trim()===``)throw Error(`<advent-badge> needs name="...", the title of its day, such as name="Living fishtank"`);let a=document.createElement(`style`);a.textContent=t;let o=document.createElement(`nav`);o.append(n(`${e}/`,`Advent of AI Slop`),n(`${e}/day/${r}/`,`[Day ${r}] ${i}`)),this.attachShadow({mode:`open`}).append(a,o)}};customElements.define(`advent-badge`,r);var i=1200,a=e=>{let t=Math.sin(e*127.1+311.7)*43758.5453;return t-Math.floor(t)};function o(e,t){let n=Math.random()*1e4,r=t===0?[140,300]:t===1?[100,220]:[70,150],i=r[0]+Math.random()*(r[1]-r[0]);return{x:e,w:t===0?70+Math.random()*90:t===1?60+Math.random()*80:55+Math.random()*70,h:i,tone:Math.random(),seed:n,spire:Math.random()<.16}}function s(e,t){let n=e.createLinearGradient(0,0,0,508);n.addColorStop(0,`#0c1024`),n.addColorStop(.55,`#1c2748`),n.addColorStop(.85,`#3a3f6b`),n.addColorStop(1,`#6b4a63`),e.fillStyle=n,e.fillRect(0,0,i,508);for(let n=0;n<70;n++){let r=a(n*3.7)*i,o=a(n*9.1)*508*.55;e.fillStyle=`rgba(240,240,255,${(.25+.5*(.35+.65*Math.abs(Math.sin(t*(.6+a(n)*1.4)+n))))*(1-o/(508*.7))})`,e.fillRect(r,o,2,2)}let r=1010,o=e.createRadialGradient(r,92,8,r,92,60);o.addColorStop(0,`rgba(255,244,214,0.55)`),o.addColorStop(1,`rgba(255,244,214,0)`),e.fillStyle=o,e.fillRect(950,32,120,120),e.fillStyle=`#f8ecc8`,e.beginPath(),e.arc(r,92,26,0,Math.PI*2),e.fill(),e.fillStyle=`rgba(200,180,140,0.35)`,e.beginPath(),e.arc(1002,86,5,0,Math.PI*2),e.fill(),e.beginPath(),e.arc(1017,100,7,0,Math.PI*2),e.fill()}function c(e,t,n,r){let i=508-(n===2?26:n===1?12:0),o=n===0?[`#141a33`,`#182040`]:n===1?[`#1d2547`,`#232c52`]:[`#2a3358`,`#323d66`];for(let s of t){if(s.x>1210||s.x+s.w<-10)continue;let t=i-s.h;if(e.fillStyle=o[+(s.tone>.5)],e.fillRect(s.x,t,s.w,s.h),s.spire&&(e.beginPath(),e.moveTo(s.x+s.w*.5-8,t),e.lineTo(s.x+s.w*.5,t-34),e.lineTo(s.x+s.w*.5+8,t),e.closePath(),e.fill()),e.fillStyle=`rgba(226,234,250,0.85)`,e.fillRect(s.x-2,t,s.w+4,5),n>0){let n=Math.max(2,Math.floor(s.w/22)),i=Math.max(2,Math.floor(s.h/26));for(let o=0;o<i;o++)for(let c=0;c<n;c++){let l=a(s.seed+o*31.3+c*7.7);if(l<.42)continue;let u=l>.9?.6+.4*Math.sin(r*3+s.seed+o):1;e.fillStyle=l>.75?`rgba(255,196,102,${.75*u})`:`rgba(160,200,255,${.4*u})`,e.fillRect(s.x+8+c*((s.w-16)/n),t+12+o*((s.h-20)/i),8,10)}}}}function l(e,t){e.fillStyle=`#cfd8ea`,e.fillRect(0,482,i,26),e.fillStyle=`#eef3fb`,e.fillRect(0,482,i,6),e.fillStyle=`#9aa6c0`,e.fillRect(0,504,i,4);let n=e.createLinearGradient(0,508,0,600);n.addColorStop(0,`#3a4056`),n.addColorStop(1,`#232838`),e.fillStyle=n,e.fillRect(0,508,i,92),e.fillStyle=`rgba(226,234,250,0.5)`;let r=t%104;for(let t=-r;t<i;t+=104)e.fillRect(t,552,46,6);e.fillStyle=`#e8eefb`;let o=t%210;for(let n=-o;n<1410;n+=210){let r=a(Math.floor((t+n)/210)*13.7);e.beginPath(),e.ellipse(n,502,40+r*30,9+r*5,0,Math.PI,0),e.fill()}}function u(e,t,n){e.strokeStyle=`#4a5474`,e.lineWidth=5,e.beginPath(),e.moveTo(t,502),e.lineTo(t,358),e.quadraticCurveTo(t,340,t+22,340),e.stroke(),e.lineWidth=1;let r=t+26,i=e.createRadialGradient(r,344,2,r,344,46);i.addColorStop(0,`rgba(255,214,140,${.5+.06*Math.sin(n*7+t)})`),i.addColorStop(1,`rgba(255,214,140,0)`),e.fillStyle=i,e.fillRect(r-46,298,92,92),e.fillStyle=`#ffdf9e`,e.beginPath(),e.ellipse(r,344,8,6,0,0,Math.PI*2),e.fill(),e.fillStyle=`#38405c`,e.fillRect(r-10,332,20,6)}function d(e,t,n){let r=t.x,i=t.x+t.w;e.strokeStyle=`#4a5474`,e.lineWidth=5,e.beginPath(),e.moveTo(r,502),e.lineTo(r,358),e.stroke(),e.beginPath(),e.moveTo(i,502),e.lineTo(i,358),e.stroke(),e.lineWidth=1,e.strokeStyle=`#69719a`,e.beginPath(),e.moveTo(r,358),e.quadraticCurveTo((r+i)/2,468,i,358),e.stroke();let a=[`#ff5d5d`,`#ffd166`,`#5dd06a`,`#5da9ff`];for(let t=1;t<11;t++){let o=t/11,s=(1-o)*(1-o)*r+2*(1-o)*o*((r+i)/2)+o*o*i,c=(1-o)*(1-o)*358+2*(1-o)*o*468+o*o*358,l=a[t%a.length],u=.65+.35*Math.sin(n*4+t*1.3),d=e.createRadialGradient(s,c+8,1,s,c+8,14);d.addColorStop(0,l+`aa`),d.addColorStop(1,l+`00`),e.fillStyle=d,e.fillRect(s-14,c-6,28,28),e.globalAlpha=.55+.45*u,e.fillStyle=l,e.beginPath(),e.ellipse(s,c+8,4.5,6.5,0,0,Math.PI*2),e.fill(),e.globalAlpha=1}}function f(e,t,n){switch(t.kind){case`pothole`:e.fillStyle=`#161a26`,e.beginPath(),e.ellipse(t.x+t.w/2,524,t.w/2,10,0,0,Math.PI*2),e.fill(),e.strokeStyle=`rgba(226,234,250,0.5)`,e.beginPath(),e.ellipse(t.x+t.w/2,522,t.w/2+4,12,0,Math.PI*1.05,Math.PI*1.95),e.stroke();break;case`snowman`:{let n=t.x+t.w/2;e.fillStyle=`#f2f6ff`,e.beginPath(),e.arc(n,488,20,0,Math.PI*2),e.fill(),e.beginPath(),e.arc(n,458,14,0,Math.PI*2),e.fill(),e.beginPath(),e.arc(n,436,10,0,Math.PI*2),e.fill(),e.fillStyle=`#20242f`,e.beginPath(),e.arc(n-4,434,1.8,0,Math.PI*2),e.fill(),e.beginPath(),e.arc(n+3,434,1.8,0, Line truncated