Skip to content

Commit

Permalink
Use svgview on logo comparison images
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformat committed Dec 14, 2024
1 parent e3cd6f6 commit acc0662
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/routers/infoRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ infoRouter.get("/info/logo-api-comparison.html", async (ctx: any) => {
}

ctx.body = await ctx.render("info/logo-api-comparison.hbs", {
title: "Logo API comparision",
title: `Logo API comparision`,
domain,
encodedCurrentUrl: encodeURIComponent(ctx.request.href),
results,
});
});
Expand Down
2 changes: 1 addition & 1 deletion views/info/logo-api-comparison.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="col d-flex flex-wrap justify-content-center">
{{#each results}}
<div class="card m-3 d-inline-block" style="width:18rem;background-image:url('/images/memphis-mini.png');">
<img src="{{logoUrl}}" class="card-img-top p-3" alt="logo for {{../domain}} from {{provider}}" onerror="onImageError(event)">
<a href="https://view.svg.zone/view.html?zoom=max&amp;backUrl={{../encodedCurrentUrl}}&amp;url={{encodeURIComponent logoUrl}}"><img src="{{logoUrl}}" class="card-img-top p-3" alt="logo for {{../domain}} from {{provider}}" onerror="onImageError(event)"></a>
<h5 class="card-footer border-top bg-body-tertiary mb-0"><a href="{{providerUrl}}">{{provider}}</a></h5>
</div>
{{/each}}
Expand Down

0 comments on commit acc0662

Please sign in to comment.