Skip to content

Commit 1752e30

Browse files
committed
Use custom font for logo
1 parent f6816f8 commit 1752e30

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ See it in action: [emojisearch.org](https://www.emojisearch.org/)
2626
[![Vite](https://www.vectorlogo.zone/logos/vitejsdev/vitejsdev-ar21.svg)](https://vitejs.dev/ "Bundler")
2727

2828
* [Gemoji](https://github.com/github/gemoji)
29+
* [Font Diner](https://fontdiner.com/) - Emilys Candy font
2930

3031
## To Do
3132

src/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
}
1313
</style>
1414
</noscript>
15+
<link rel="preconnect" href="https://fonts.googleapis.com">
16+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
17+
<link href="https://fonts.googleapis.com/css2?family=Emilys+Candy&display=swap" rel="stylesheet">
1518
<link href="/css/bootstrap.min.css" rel="stylesheet">
1619
</head>
1720

src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,7 @@ async function main() {
314314
const data = cell.getRow().getData();
315315
e.preventDefault();
316316
e.stopPropagation();
317-
table.alert(
318-
`${data.description} copied to clipboard`
319-
);
317+
table.alert(`${data.description} copied to clipboard`);
320318
setTimeout(() => table.clearAlert(), 1000);
321319
navigator.clipboard.writeText(data.emoji);
322320
},
@@ -374,7 +372,9 @@ async function main() {
374372
labelField: "description",
375373
url: (cell) => {
376374
var codepoints = cell.getData().codepoints;
377-
return `https://www.fileformat.info/info/emoji/${codepoints.toLowerCase().replaceAll(' ', '_')}/index.htm`;
375+
return `https://www.fileformat.info/info/emoji/${codepoints
376+
.toLowerCase()
377+
.replaceAll(" ", "_")}/index.htm`;
378378
},
379379
target: "_blank",
380380
},
@@ -408,7 +408,7 @@ async function main() {
408408
placeholder: "No matches",
409409
responsiveLayout: "hide",
410410
footerElement: `<span class="w-100 mx-2 my-1">
411-
<img src="/favicon.svg" class="pe-2" style="height:1.2em;" alt="EmojiSearch logo"/>EmojiSearch
411+
<img src="/favicon.svg" class="pe-2 mb-1" style="height:1.5em;" alt="EmojiSearch logo"/><span style="font-size: 1.2em;font-family: 'Emilys Candy'">EmojiSearch</span>
412412
<span id="rowcount" class="px-3">Rows: ${data.length.toLocaleString()}</span>
413413
<a class="d-none d-lg-block float-end" href="https://github.com/FileFormatInfo/emojisearch">Source</a>
414414
</span>`,

0 commit comments

Comments
 (0)