ncounter/src/ncounter/Licenses.svelte
CheddarCrisp 67a40cfb84 Redesign UI to add some color,
eliminate the FAB, and make
dialogs look better
Add an about page
2024-04-12 12:32:14 -04:00

39 lines
No EOL
796 B
Svelte

<div>
{#each licenses as license}
<header>
<h1>{license.name} by {license.author}</h1>
<div>Source: <a href="{license.repository}" target="_blank">{license.repository}</a></div>
</header>
<pre>{license.licenseText}</pre>
{/each}
{#if !licenses}
<progress></progress>
{/if}
</div>
<script>
let licenses = [];
(async () => {
licenses = await fetch('oss-licenses.json')
.then(response => {
if(response.ok)
return response.json();
});
})();
</script>
<style>
header {
margin-top: 12px;
}
header h1 {
font-weight: 600;
}
pre {
margin: 5px;
padding: 5px;
white-space: pre-wrap;
background-color: #F0F0F0;
}
</style>