Files
dashtab/app/components/wallpaper-credit.gjs
raucao 6750c61d87 Add Nostr photo feeds and wallpaper selection
Read the curated photo feeds from wss://nostr.kosmos.org, verify events, cache originals and thumbnails, and let users pick a wallpaper from the Photos section. Nature is the default feed; City Nights is opt-in. Adds the manual publishing scripts, real event fixtures, protocol documentation, and tests with stubbed network connections.
2026-11-08 21:51:23 +04:00

35 lines
872 B
Plaintext

import Component from '@glimmer/component';
import { service } from '@ember/service';
// Discreet attribution for the current wallpaper, shown next to the settings
// button. Kept out of Settings by design.
export default class WallpaperCreditComponent extends Component {
@service photos;
get credit() {
return this.photos.currentCredit;
}
get label() {
if (!this.credit) {
return null;
}
return `Photo by ${this.credit.name}`;
}
<template>
{{#if this.credit}}
<a
href={{this.credit.url}}
target="_blank"
rel="noopener noreferrer"
data-test-wallpaper-credit
class="text-xs text-white/60 transition-colors hover:text-white/90 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white/70"
>
{{this.label}}
</a>
{{/if}}
</template>
}