Compare commits

..

No commits in common. "18694891b29bbc51fc26488eb5f2db51f1f810a6" and "6f86bda97f35301070d59245dc8de38d35f5555c" have entirely different histories.

3 changed files with 6 additions and 23 deletions

View file

@ -38,10 +38,6 @@ that I know is mine.
I try to maintain everything and help everyone to achieve decentralization, but at the end of the day I'm just a random
woman.
**Do you have a Google Fonts mirror?**
1. Add a comment to the [issue](https://git.sofiaritz.com/GFonts/gfonts-interface/issues/2) using the template, or
2. [contact me](https://sofiaritz.com/en/contact)
**Do you have a Google Fonts mirror?** Please, [contact me](https://sofiaritz.com/en/contact)!
**Do you have another instance of this interface?** Please, [contact me](https://sofiaritz.com/en/contact)!
Thank you :)

View file

@ -15,10 +15,7 @@
}
</script>
<div class="mirror-url-container">
<h3>Mirror URL</h3>
<a href="https://git.sofiaritz.com/GFonts/gfonts-interface/issues/2">Known mirrors</a>
</div>
<h3>Mirror URL</h3>
<input bind:value={mirror_input} type="url">
<h3>Google Fonts URL</h3>
@ -26,6 +23,7 @@
<button on:click={transform}>Transform</button>
{#await output}
{:then v}
{#if v != null}
@ -34,12 +32,3 @@
{:catch e}
<div>Error :( {e}</div>
{/await}
<style>
.mirror-url-container {
display: flex;
flex-direction: row;
align-items: center;
gap: 16px;
}
</style>

View file

@ -1,14 +1,12 @@
<script>
let slot
let copied = false
async function copy_code() {
await navigator.clipboard.writeText(slot?.innerText)
copied = true
function copy_code() {
navigator.clipboard.writeText(slot?.innerText)
}
</script>
<pre>
<button on:click={copy_code}>Copy code</button> {#if copied}<span style="display: inline">Copied!</span>{/if}
<button on:click={copy_code}>Copy code</button>
<span bind:this={slot}><slot></slot></span>
</pre>