<% const isRecipe = item && !isNeutral && item.isRecipe; %> <% const recipeBgStyle = isRecipe ? `background-image: url('${getImageUrl("recipe", ImageType.Items)}');` : ''; %> <% let imgSrc = ""; %> <% if (item) { %> <% if (isNeutral) { %> <% imgSrc = getImageUrl(dotaconstants.item_ids[item], ImageType.Items); %> <% } else { %> <% imgSrc = getImageUrl(item.name, ImageType.Items); %> <% } %> <% } %> <div class="relative <%= style %>" <%-`style="${recipeBgStyle}"`%>> <% if (item) { %> <% if (!isNeutral) { %> <img class="w-full h-full object-cover aspect-[11/8] <%= isRecipe ? "opacity-75 scale-[0.6] origin-top-right" : '' %>" src="<%= imgSrc %>"><p class="absolute w-full text-[#ccc] text-center bottom-0 leading-[1] text-xs bg-stone-700/50"><%= item.time %></p> <% } else { %> <img class="w-full h-full object-contain" src="<%= imgSrc %>"> <% } %> <% } %> </div>