Merge pull request 'changed design for notification settings' (#135) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Reviewed-on: #135
This commit was merged in pull request #135.
This commit is contained in:
@@ -1,11 +1,44 @@
|
|||||||
<x-filament-panels::page>
|
<x-filament-panels::page>
|
||||||
<button
|
{{-- <button
|
||||||
type="button"
|
type="button"
|
||||||
class="filament-button filament-button-primary"
|
class="filament-button filament-button-primary"
|
||||||
onclick="registerPush()"
|
onclick="registerPush()"
|
||||||
>
|
>
|
||||||
Enable Push Notifications
|
Enable Push Notifications
|
||||||
</button>
|
</button> --}}
|
||||||
|
|
||||||
|
<div class="max-w-md mx-auto">
|
||||||
|
<x-filament::card>
|
||||||
|
<div class="text-center space-y-4">
|
||||||
|
<h2 class="text-xl font-semibold">
|
||||||
|
🔔 Stay Updated
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<p class="text-sm text-gray-500">
|
||||||
|
Enable push notifications to receive real-time alerts and updates.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onclick="registerPush()"
|
||||||
|
class="
|
||||||
|
filament-button
|
||||||
|
filament-button-primary
|
||||||
|
w-full
|
||||||
|
flex items-center justify-center gap-2
|
||||||
|
py-3
|
||||||
|
rounded-lg
|
||||||
|
shadow-sm
|
||||||
|
hover:shadow-md
|
||||||
|
transition
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<x-heroicon-o-bell class="w-5 h-5"/>
|
||||||
|
<span class="font-medium">Enable Push Notifications</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</x-filament::card>
|
||||||
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const vapidKey = "{{ config('webpush.vapid.public_key') }}";
|
const vapidKey = "{{ config('webpush.vapid.public_key') }}";
|
||||||
|
|||||||
Reference in New Issue
Block a user