fix: remove static category cards from cream-elegance cover

They were hardcoded labels (Рыбные закуски / Мясные закуски / Для
вегетарианцев / Мини-салаты) with a generic "Собрано под ваше
событие" caption that didn't reflect the actual order — confusing and
requested to be removed. The freed space now goes to a bigger 3x2
photo grid of the order's real items instead of leaving a gap.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
pavlov346346-source 2026-09-16 10:41:10 +03:00
parent d78ca14baf
commit b702b4b69e

View File

@ -110,12 +110,9 @@
if(hero)coverImage(ctx,hero,500,150,446,600,28);
text(ctx,'МЕНЮ',W/2,795,W,26,{font:`600 24px ${f.display}`,color:p.deep,align:'center',maxLines:1});
line(ctx,M,814,410,814,p.line,1);line(ctx,590,814,W-M,814,p.line,1);
const cats=[['Рыбные закуски','🐟'],['Мясные закуски','🥩'],['Для вегетарианцев','🌿'],['Мини-салаты','🥗']];
const colW=(W-2*M-14)/2;
cats.forEach((c,i)=>{const col=i%2,row=Math.floor(i/2),xx=M+col*(colW+14),yy=845+row*88;roundRect(ctx,xx,yy,colW,76,16,p.paper,p.line);iconCircle(ctx,xx+40,yy+38,20,c[1],{fill:p.deep,stroke:null,size:22});text(ctx,c[0],xx+72,yy+21,colW-90,18,{font:`600 14px ${f.display}`,color:p.ink,maxLines:1});text(ctx,'Собрано под ваше событие',xx+72,yy+44,colW-90,14,{font:`500 11px ${f.label}`,color:p.muted,maxLines:1})});
await photoGridSquare(ctx,s,p,M,1035,W-2*M,100,6,1,{numbered:false,fonts:f});
statCards(ctx,s,p,M,1150,565,100,[[Math.round(classicBoxCount(s))||0,'КОРОБОК'],[(s.items||[]).length,'ПОЗИЦИЙ']],{dark:false,fonts:f});
priceBand(ctx,s,p,640,1150,306,100,{dark:false,fonts:f});
await photoGridSquare(ctx,s,p,M,850,W-2*M,300,3,2,{numbered:false,fonts:f});
statCards(ctx,s,p,M,1170,565,100,[[Math.round(classicBoxCount(s))||0,'КОРОБОК'],[(s.items||[]).length,'ПОЗИЦИЙ']],{dark:false,fonts:f});
priceBand(ctx,s,p,640,1170,306,100,{dark:false,fonts:f});
}else if(id==='neon-menu'){
ctx.save();roundRect(ctx,20,20,W-40,H-40,0,null,p.accent,1.4);ctx.restore();
logoOrBrand(ctx,logo,p,{x:M,y:52,dark:true,fonts:f},s.brandName);