Skip to content

Commit acc0662

Browse files
committed
Use svgview on logo comparison images
1 parent e3cd6f6 commit acc0662

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/routers/infoRouter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ infoRouter.get("/info/logo-api-comparison.html", async (ctx: any) => {
117117
}
118118

119119
ctx.body = await ctx.render("info/logo-api-comparison.hbs", {
120-
title: "Logo API comparision",
120+
title: `Logo API comparision`,
121121
domain,
122+
encodedCurrentUrl: encodeURIComponent(ctx.request.href),
122123
results,
123124
});
124125
});

views/info/logo-api-comparison.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div class="col d-flex flex-wrap justify-content-center">
1414
{{#each results}}
1515
<div class="card m-3 d-inline-block" style="width:18rem;background-image:url('/images/memphis-mini.png');">
16-
<img src="{{logoUrl}}" class="card-img-top p-3" alt="logo for {{../domain}} from {{provider}}" onerror="onImageError(event)">
16+
<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>
1717
<h5 class="card-footer border-top bg-body-tertiary mb-0"><a href="{{providerUrl}}">{{provider}}</a></h5>
1818
</div>
1919
{{/each}}

0 commit comments

Comments
 (0)