This commit is contained in:
HolgerHatGarKeineNode
2023-04-25 23:09:21 +02:00
parent 5a4322b035
commit ed54b25567
32 changed files with 683 additions and 12 deletions

View File

@@ -37,9 +37,9 @@
{{ $weather }} (um {{ \App\Support\Carbon::parse($changed)->asTime() }} Uhr aktualisiert - jede 4. Stunde)
</div>
@else
<div class="text-md leading-6 text-gray-900 text-center max-w-screen-2xl">
{{--<div class="text-md leading-6 text-gray-900 text-center max-w-screen-2xl">
Wetterdaten werden in Kürze wieder verfügbar sein. (OpenAI Quota exceeded)
</div>
</div>--}}
@endif
<div
x-data="{

View File

@@ -0,0 +1,31 @@
<div>
<div
class="mt-10 flex flex-col items-center justify-center gap-x-6 bg-white pb-12">
@if(!$invoicePaid)
<div class="text-xl font-semibold text-gray-900 py-6">
Deine Nachricht wird live vorgelesen.
</div>
<div class="text-xl font-semibold text-gray-900 py-6 w-full px-12">
<x-textarea wire:model="message" label="Deine Nachricht hier" corner-hint="max. 255 Zeichen"/>
</div>
<div class="text-xl font-semibold text-gray-900 py-6">
{{ __('Click QR-Code to open your wallet') }}
</div>
<div class="flex justify-center" wire:key="qrcode">
<a href="lightning:{{ $this->invoice }}">
<img src="{{ 'data:image/png;base64, '. $this->qrCode }}"
alt="qrcode">
</a>
</div>
<div class="text-xl font-semibold text-gray-900 py-6">
21 sats
</div>
<div wire:poll.keep-alive="checkPaymentHash"
wire:key="checkPaymentHash"></div>
@else
<div class="text-xl font-semibold text-gray-900 py-6">
Danke für deine Nachricht. Wenn alles klappt, dann werden wir die Nachricht gleich hören.
</div>
@endif
</div>
</div>

View File

@@ -1,3 +1,15 @@
<div>
{{-- The whole world belongs to you. --}}
<div
x-data="{
audioSrc: @entangle('audioSrc'),
play() {
console.log(this.audioSrc);
$refs.sourceRef.src = this.audioSrc + '?t=' + new Date().getTime();
$refs.playMe.load();
$refs.playMe.play();
},
}"
>
<audio x-ref="playMe">
<source x-ref="sourceRef" src="" type="audio/wav" x-init="$watch('audioSrc', value => play())"/>
</audio>
</div>