[ui] DomiUi: Rosea's buttons and town search on @domi/ui v1.0.4 (CPAL-1.0, vendored by its own tool into packages/domi-ui), the licence credit at the foot of every screen, the README's copy line and public-domain sources; before-and-after pictures by pnpm look:shots
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<!-- SPDX-License-Identifier: CPAL-1.0 -->
|
||||
<!--
|
||||
The licence credit (CPAL-1.0 Exhibit B): "Built on Domi", the URL and the copyright notice, exactly. Place it where
|
||||
it is seen when the app starts or a session begins (the first screen's foot, the sign-in screen, a splash), no less
|
||||
prominent than any other credit there. The words are fixed by the licence: do not translate or shorten them.
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { DOMI_ATTRIBUTION as A } from '../lib/credit';
|
||||
|
||||
interface Props {
|
||||
class?: string;
|
||||
}
|
||||
let { class: cls = '' }: Props = $props();
|
||||
</script>
|
||||
|
||||
<p class={['domi-credit', cls]}>
|
||||
<!-- Real spaces around the dots, so copied text reads as the licence writes it; flex ignores them in layout. -->
|
||||
<span>{A.phrase}</span> <span class="domi-credit__dot" aria-hidden="true">·</span>
|
||||
<a href={A.url} target="_blank" rel="noopener noreferrer">{A.url}</a>
|
||||
<span class="domi-credit__dot" aria-hidden="true">·</span> <span>{A.copyright}</span>
|
||||
</p>
|
||||
Reference in New Issue
Block a user