Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

update: serious boot — center MOTD again

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+2 -2
+2 -2
system/netlify/functions/index.mjs
··· 1540 1540 if(uH){row++;var hAge=(performance.now()-hST)/1000,hFade=Math.min(1,hAge*2);x.font='bold '+(5*S)+'px monospace';x.globalAlpha=hFade*0.9;x.fillStyle=isLightMode?'#222':'#eee';x.fillText(uH,tX,tYbase+row*rowH);x.globalAlpha=1;} 1541 1541 // Boot log messages 1542 1542 row++;var tSY=tYbase+row*rowH;x.font=(4*S)+'px monospace';for(var i=0;i<lines.length;i++){var y=tSY+i*5*S;if(y>H-3*S)break;var al=Math.max(0.35,1-i*0.08);var dt=lines[i].text;var isActive=i===0&&dt.indexOf('_')>-1;if(isActive){var blink=Math.sin(t*6)>0;dt=blink?dt:dt.replace(/_$/,' ');}else if(i===0&&f%30<15)dt=dt.replace(/_$/,' ');x.globalAlpha=al;var gv=isLightMode?(30+i*8):(245-i*8);x.fillStyle='rgb('+gv+','+gv+','+gv+')';x.fillText(dt,tX,y);}x.globalAlpha=1; 1543 - // MOTD — inline after boot logs 1544 - if(motd){var mAge=(performance.now()-motdStart)/1000;var mFade=Math.min(1,mAge*0.8);var motdY=tSY+Math.min(lines.length,8)*5*S+4*S;x.font='bold '+(4*S)+'px YWFTProcessing-Bold, monospace';x.globalAlpha=mFade*0.85;x.fillStyle=isLightMode?'#222':'#eee';var maxMotdW=W-tX-8*S;var roughChars=Math.max(6,Math.floor(maxMotdW/(2.5*S)));var linesMotd=wrapMotdText(motd,roughChars);for(var li=0;li<linesMotd.length;li++){var my=motdY+li*5*S;if(my>H-8*S)break;x.fillText(linesMotd[li],tX,my);}if(motdHandle){var lastMotdY=motdY+Math.min(linesMotd.length,6)*5*S;x.font=(3*S)+'px monospace';x.globalAlpha=mFade*0.5;x.fillStyle=isLightMode?'#555':'#bbb';x.fillText('— '+motdHandle,tX,lastMotdY);}x.globalAlpha=1;} 1543 + // MOTD — centered 1544 + if(motd){x.save();var mAge=(performance.now()-motdStart)/1000;var mFade=Math.min(1,mAge*0.5);var maxMotdW=W*0.85;var roughChars=Math.max(6,Math.floor(maxMotdW/(7*S)));var linesMotd=wrapMotdText(motd,roughChars);var longest=0;for(var li=0;li<linesMotd.length;li++){if(linesMotd[li].length>longest)longest=linesMotd[li].length;}var baseFS=Math.min(14*S,Math.max(6*S,maxMotdW/Math.max(8,longest*1.15)));var lineH=baseFS*1.3;var maxMH=H*0.5;if(linesMotd.length*lineH>maxMH){baseFS=Math.max(5*S,maxMH/(linesMotd.length*1.3));lineH=baseFS*1.3;}var startY=H/2-(linesMotd.length*lineH)/2;x.font='bold '+baseFS+'px YWFTProcessing-Bold, monospace';x.fillStyle=isLightMode?'#222':'#eee';x.globalAlpha=mFade*0.85;x.textAlign='center';for(var li=0;li<linesMotd.length;li++){x.fillText(linesMotd[li],W/2,startY+li*lineH);}if(motdHandle){var label='mood of the day from '+motdHandle;var labelFS=Math.max(3*S,baseFS*0.4);x.font='bold '+labelFS+'px monospace';x.globalAlpha=mFade*0.5;x.fillStyle=isLightMode?'#555':'#bbb';x.fillText(label,W/2,Math.min(H-3*S,startY+linesMotd.length*lineH+4*S));}x.textAlign='left';x.globalAlpha=1;x.restore();} 1545 1545 if(connFlash>0.01){x.globalAlpha=connFlash*0.2;x.fillStyle=isLightMode?'#006400':'#80ffa0';x.fillRect(0,0,W,H);x.globalAlpha=1;} 1546 1546 if(errorMode||errorFlash>0.01){var errElapsed=errorStartTime?(performance.now()-errorStartTime)/1000:0;if(errorMode&&errElapsed>1.0){x.globalCompositeOperation='source-over';x.globalAlpha=1;x.fillStyle='rgb(0,0,0)';x.fillRect(0,0,W,H);}else if(errorMode&&errElapsed>0.5){var blackFade=(errElapsed-0.5)/0.5;x.globalCompositeOperation='source-over';x.globalAlpha=blackFade*0.9;x.fillStyle='rgb(0,0,0)';x.fillRect(0,0,W,H);x.globalAlpha=1-blackFade*0.7;var xSize=Math.min(W,H)*0.7,xThick=Math.max(8*S,xSize*0.12),cx=W/2,cy=H/2;x.strokeStyle='rgb(255,0,0)';x.lineWidth=xThick;x.lineCap='round';x.beginPath();x.moveTo(cx-xSize/2,cy-xSize/2);x.lineTo(cx+xSize/2,cy+xSize/2);x.stroke();x.beginPath();x.moveTo(cx+xSize/2,cy-xSize/2);x.lineTo(cx-xSize/2,cy+xSize/2);x.stroke();}else{x.globalCompositeOperation='screen';var errA=errorMode?0.4+Math.sin(t*8)*0.2:errorFlash*0.5;x.globalAlpha=errA;x.fillStyle='rgb(255,40,60)';x.fillRect(0,0,W,H);x.globalCompositeOperation='source-over';if(errorMode){var xGrow=Math.min(1,errElapsed/0.3);var xSize=Math.min(W,H)*0.7*xGrow,xThick=Math.max(8*S,xSize*0.12),cx=W/2,cy=H/2;x.globalAlpha=0.9;x.strokeStyle='rgb(255,20,0)';x.lineWidth=xThick;x.lineCap='round';x.beginPath();x.moveTo(cx-xSize/2,cy-xSize/2);x.lineTo(cx+xSize/2,cy+xSize/2);x.stroke();x.beginPath();x.moveTo(cx+xSize/2,cy-xSize/2);x.lineTo(cx-xSize/2,cy+xSize/2);x.stroke();}}x.globalCompositeOperation='source-over';x.globalAlpha=1;} 1547 1547 x.globalAlpha=1;requestAnimationFrame(anim);return;}