mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
feat: add support section in settings
This commit is contained in:
parent
393fa9598c
commit
9f23a7a48e
4 changed files with 37 additions and 1 deletions
|
|
@ -66,7 +66,8 @@
|
|||
<flux:menu.separator/>
|
||||
|
||||
<flux:menu.radio.group>
|
||||
<flux:menu.item href="/settings/preferences" wire:navigate icon="cog">Settings</flux:menu.item>
|
||||
<flux:menu.item href="{{ route('settings.preferences') }}" wire:navigate icon="cog">Settings</flux:menu.item>
|
||||
<flux:menu.item href="{{ route('settings.support') }}" wire:navigate icon="heart">Support</flux:menu.item>
|
||||
</flux:menu.radio.group>
|
||||
|
||||
<flux:menu.separator/>
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
<flux:navlist.item href="{{ route('settings.profile') }}" wire:navigate>Profile</flux:navlist.item>
|
||||
<flux:navlist.item href="{{ route('settings.password') }}" wire:navigate>Password</flux:navlist.item>
|
||||
<flux:navlist.item href="{{ route('settings.appearance') }}" wire:navigate>Appearance</flux:navlist.item>
|
||||
<flux:navlist.item href="{{ route('settings.support') }}" wire:navigate>Support</flux:navlist.item>
|
||||
</flux:navlist>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
33
resources/views/livewire/settings/support.blade.php
Normal file
33
resources/views/livewire/settings/support.blade.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<section class="w-full">
|
||||
@include('partials.settings-heading')
|
||||
|
||||
<x-settings.layout heading="Support" subheading="Support the development of this project">
|
||||
|
||||
<div class="flex items-center gap-4">
|
||||
<div class="flex items-center justify-end gap-2">
|
||||
<flux:button class="w-42"
|
||||
href="https://github.com/sponsors/bnussbau"
|
||||
target="_blank"
|
||||
icon:trailing="arrow-up-right">{{ __('GitHub Sponsors') }}</flux:button>
|
||||
<flux:button class="w-42"
|
||||
href="https://www.buymeacoffee.com/bnussbau"
|
||||
target="_blank"
|
||||
icon:trailing="arrow-up-right">{{ __('Buy me a coffee') }}</flux:button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="relative mt-10">
|
||||
<flux:heading>{{ __('Referral Code') }}</flux:heading>
|
||||
<flux:subheading>{{ __('Use the code to receive a $15 discount on your TRMNL device purchase.') }}</flux:subheading>
|
||||
|
||||
<div class="mt-3 flex items-center justify-start gap-2">
|
||||
<flux:input value="laravel-trmnl" readonly copyable class="max-w-42"/>
|
||||
<flux:button class="w-42"
|
||||
href="https://usetrmnl.com/?ref=laravel-trmnl"
|
||||
target="_blank"
|
||||
icon:trailing="arrow-up-right">{{ __('Referral link') }}</flux:button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</x-settings.layout>
|
||||
</section>
|
||||
|
|
@ -13,6 +13,7 @@ Route::middleware(['auth'])->group(function () {
|
|||
Volt::route('settings/profile', 'settings.profile')->name('settings.profile');
|
||||
Volt::route('settings/password', 'settings.password')->name('settings.password');
|
||||
Volt::route('settings/appearance', 'settings.appearance')->name('settings.appearance');
|
||||
Volt::route('settings/support', 'settings.support')->name('settings.support');
|
||||
|
||||
Volt::route('/dashboard', 'device-dashboard')->name('dashboard');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue