From 4e1505c5c288cd8d8abab9177d630930b8af4223 Mon Sep 17 00:00:00 2001 From: James Collins Date: Sun, 16 Nov 2025 19:07:07 +1000 Subject: [PATCH] updated subscription elements --- app/Mail/UserWelcome.php | 4 ++-- resources/views/components/navbar.blade.php | 12 +++++++----- resources/views/components/ui/button.blade.php | 3 ++- resources/views/components/ui/input.blade.php | 16 ++++++++-------- .../views/emails/upcoming-workshops.blade.php | 2 +- resources/views/emails/welcome.blade.php | 6 +++--- resources/views/home.blade.php | 9 +++++++++ .../views/vendor/mail/html/message.blade.php | 2 +- .../views/vendor/mail/text/message.blade.php | 2 +- 9 files changed, 34 insertions(+), 22 deletions(-) diff --git a/app/Mail/UserWelcome.php b/app/Mail/UserWelcome.php index 0bd413d..77b7083 100644 --- a/app/Mail/UserWelcome.php +++ b/app/Mail/UserWelcome.php @@ -2,14 +2,14 @@ namespace App\Mail; +use App\Traits\HasUnsubscribeLink; use Illuminate\Bus\Queueable; -use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class UserWelcome extends Mailable { - use Queueable, SerializesModels; + use Queueable, SerializesModels, HasUnsubscribeLink; public $email; diff --git a/resources/views/components/navbar.blade.php b/resources/views/components/navbar.blade.php index afa2407..79b08ac 100644 --- a/resources/views/components/navbar.blade.php +++ b/resources/views/components/navbar.blade.php @@ -25,15 +25,15 @@ -
+
{{-- Blog--}} + About Workshops + Contact @if(auth()->user()?->admin)
Admin
diff --git a/resources/views/components/ui/button.blade.php b/resources/views/components/ui/button.blade.php index ed37835..283bf80 100644 --- a/resources/views/components/ui/button.blade.php +++ b/resources/views/components/ui/button.blade.php @@ -9,7 +9,8 @@ 'primary-outline-sm' => '!font-normal !text-xs !px-4 !py-1 hover:bg-primary-color-dark focus-visible:outline-primary-color text-primary-color border border-primary-color bg-white hover:text-white', 'danger' => 'hover:bg-danger-color-dark focus-visible:outline-danger-color bg-danger-color text-white', 'danger-outline' => 'hover:bg-danger-color-dark focus-visible:outline-danger-color text-danger-color border border-danger-color bg-white hover:text-white', - 'success' => 'hover:bg-success-color-dark focus-visible:outline-success-color bg-success-color text-white' + 'success' => 'hover:bg-success-color-dark focus-visible:outline-success-color bg-success-color text-white', + 'dark' => 'hover:bg-gray-900 focus-visible:outline-gray-800 bg-gray-800 text-white' ][$color]; $commonClasses = @twMerge(['whitespace-nowrap', 'text-center','justify-center','rounded-md','px-8','py-1.5','text-sm','font-semibold','leading-6','shadow-sm','focus-visible:outline','focus-visible:outline-2','focus-visible:outline-offset-2','transition'], ($class ?? '')); @endphp diff --git a/resources/views/components/ui/input.blade.php b/resources/views/components/ui/input.blade.php index 335e0d1..fd39718 100644 --- a/resources/views/components/ui/input.blade.php +++ b/resources/views/components/ui/input.blade.php @@ -1,4 +1,4 @@ -@props(['type' => 'text', 'name', 'label' => '', 'value' => '', 'floating' => false, 'noLabel' => false, 'readonly' => false, 'info', 'error' => null, 'labelNotice' => null]) +@props(['type' => 'text', 'name', 'label' => '', 'value' => '', 'floating' => false, 'noLabel' => false, 'readonly' => false, 'info', 'error' => null, 'labelNotice' => null, 'placeholder' => '', 'fieldClasses' => '' ]) @php if($error === null) { @@ -6,7 +6,7 @@ } $hasError = $error !== ''; - $classes = 'disabled:bg-gray-100 bg-white block px-2.5 pb-2.5 w-full text-sm text-gray-900 rounded-lg border appearance-nonefocus:outline-none focus:ring-0 focus:border-blue-600 ' . ($hasError ? 'border-red-600 ring-red-600 focus:border-red-600 focus:ring-red-600' : 'border-gray-300 focus:border-indigo-300 focus:ring-indigo-300'); + $classes = 'disabled:bg-gray-100 bg-white block px-2.5 pb-2.5 w-full text-sm text-gray-900 rounded-lg border appearance-none focus:outline-none focus:ring-0 focus:border-blue-600 ' . ($hasError ? 'border-red-600 ring-red-600 focus:border-red-600 focus:ring-red-600' : 'border-gray-300 focus:border-indigo-300 focus:ring-indigo-300'); $value = old($name, $value); @endphp @@ -14,27 +14,27 @@ @if($floating)
@if($type === 'textarea') - + @else - + @endif
@elseif($noLabel)
@if($type === 'textarea') - + @else - + @endif
@else
@if($type === 'textarea') - + @else - + @endif
@endif diff --git a/resources/views/emails/upcoming-workshops.blade.php b/resources/views/emails/upcoming-workshops.blade.php index 39c5135..44cbb8d 100644 --- a/resources/views/emails/upcoming-workshops.blade.php +++ b/resources/views/emails/upcoming-workshops.blade.php @@ -21,7 +21,7 @@

We hope to see you at one of our upcoming workshops!

Warm regards,

-

—James 😁

+

— James 😁

@slot('subcopy')

Why did I get this email?

You received this email as you are subscribed to our upcoming workshop email list. If you wish no longer receive this email, you can unsubscribe here.

diff --git a/resources/views/emails/welcome.blade.php b/resources/views/emails/welcome.blade.php index 0e6096a..9fba0e4 100644 --- a/resources/views/emails/welcome.blade.php +++ b/resources/views/emails/welcome.blade.php @@ -2,11 +2,11 @@

Welcome to the community!

Really glad to have you here and can't wait to see you at one of our workshops.

You'll get information about upcoming workshops as it comes out.

-

Even though this is (of course) an automated email, just wanted to say thanks for registering and intro myself.

+

Even though this is (of course) an automated email, just wanted to say thanks and intro myself.

If you didn't know, I'm James and I'm the founder of STEMMechanics. I promise not to spam you, sell your data, or send you anything I don't think is absolutely necessary.

You know a bit about me but I don't know really anything about you...

-

If you're up for it, reply to this email and tell me a bit about yourself and also let me know what workshops you are interested in?

+

If you're up for it, reply to this email or join us in Discord and tell me a bit about yourself and also let me know what workshops you are interested in?

I read and reply to every one 😁

Talk soon

-

—James

+

— James

@endcomponent diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 8643f8a..3ef8388 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -85,4 +85,13 @@
+
+ +
+

Want to know what’s coming up?

+

Sign up and we’ll send you updates on new workshops, special sessions and what’s happening around STEMMechanics.

+ +
+
+
diff --git a/resources/views/vendor/mail/html/message.blade.php b/resources/views/vendor/mail/html/message.blade.php index 724f06e..6d32550 100644 --- a/resources/views/vendor/mail/html/message.blade.php +++ b/resources/views/vendor/mail/html/message.blade.php @@ -18,7 +18,7 @@

This email was sent to {{ $email }}
-{{ config('app.name') }} | 1/4 Jordan Street | Edmonton, QLD 4869 Australia
+{{ config('app.name') }} | 63 Dalton Street | Westcourt, QLD 4870 Australia
© {{ date('Y') }} {{ config('app.name') }}. {{ __('All rights reserved.') }}
Privacy Policy | Terms & Conditions @isset($unsubscribe) | Unsubscribe@endisset

diff --git a/resources/views/vendor/mail/text/message.blade.php b/resources/views/vendor/mail/text/message.blade.php index 2205462..276cfef 100644 --- a/resources/views/vendor/mail/text/message.blade.php +++ b/resources/views/vendor/mail/text/message.blade.php @@ -15,7 +15,7 @@ This email was sent to {{ $email }} -STEMMechanics | 1/4 Jordan Street | Edmonton, QLD 4869 Australia +STEMMechanics | 63 Dalton Street | Westcourt, QLD 4870 Australia © {{ date('Y') }} {{ config('app.name') }}. {{ __('All rights reserved.') }} @isset($unsubscribe) Unsubscribe: {{ $unsubscribe }}@endisset