From 2a37695d786f82747af300c96aa002627a5004d6 Mon Sep 17 00:00:00 2001 From: Doar Mihai Date: Sat, 17 Oct 2026 16:24:26 +0300 Subject: [PATCH] fix: add dark mode variants to light-only views Forms, upvote button, modal, notifications and several pages had no dark: classes and rendered as white blocks in dark mode. Co-Authored-By: Claude Sonnet 5.5 --- .../views/auth/passwords/confirm.blade.php | 14 +-- .../views/auth/passwords/email.blade.php | 18 +-- resources/views/auth/verify.blade.php | 10 +- resources/views/bookmarks/index.blade.php | 16 +-- .../views/components/product-card.blade.php | 16 +-- .../product/bookmark-button.blade.php | 2 +- .../components/product/plans-form.blade.php | 14 +-- .../components/product/team-form.blade.php | 26 ++-- .../product/upvote-button.blade.php | 4 +- resources/views/components/ui/modal.blade.php | 2 +- .../components/ui/notification.blade.php | 8 +- resources/views/products/create.blade.php | 100 +++++++-------- resources/views/products/edit.blade.php | 114 +++++++++--------- resources/views/products/index.blade.php | 52 ++++---- resources/views/products/manage.blade.php | 56 ++++----- resources/views/profile/edit.blade.php | 82 ++++++------- resources/views/upvotes/index.blade.php | 16 +-- 17 files changed, 275 insertions(+), 275 deletions(-) diff --git a/resources/views/auth/passwords/confirm.blade.php b/resources/views/auth/passwords/confirm.blade.php index 6e5f020..5ef7bc8 100644 --- a/resources/views/auth/passwords/confirm.blade.php +++ b/resources/views/auth/passwords/confirm.blade.php @@ -4,26 +4,26 @@
-

+

{{ __('Confirm Password') }}

-

+

{{ __('Please confirm your password before continuing.') }}

-
+
@csrf
-
@@ -37,7 +37,7 @@ @if (Route::has('password.request')) diff --git a/resources/views/auth/passwords/email.blade.php b/resources/views/auth/passwords/email.blade.php index 61b1990..69ac84c 100644 --- a/resources/views/auth/passwords/email.blade.php +++ b/resources/views/auth/passwords/email.blade.php @@ -4,16 +4,16 @@
-

+

{{ __('Reset Password') }}

-

+

{{ __('Enter your email address and we will send you a password reset link.') }}

-
+
@if (session('status')) -
+
@@ -21,7 +21,7 @@
-

+

{{ session('status') }}

@@ -33,14 +33,14 @@ @csrf
-
@@ -54,7 +54,7 @@ @if (Route::has('login')) diff --git a/resources/views/auth/verify.blade.php b/resources/views/auth/verify.blade.php index e669f74..cf7f8af 100644 --- a/resources/views/auth/verify.blade.php +++ b/resources/views/auth/verify.blade.php @@ -4,13 +4,13 @@
-

+

{{ __('Verify Your Email Address') }}

-
+
@if (session('resent')) -
+
@@ -18,7 +18,7 @@
-

+

{{ __('A fresh verification link has been sent to your email address.') }}

@@ -26,7 +26,7 @@
@endif -
+

{{ __('Before proceeding, please check your email for a verification link.') }}

{{ __('If you did not receive the email') }}

diff --git a/resources/views/bookmarks/index.blade.php b/resources/views/bookmarks/index.blade.php index a77d36f..c64b5c6 100644 --- a/resources/views/bookmarks/index.blade.php +++ b/resources/views/bookmarks/index.blade.php @@ -1,13 +1,13 @@ @extends('layouts.app') @section('content') -
+
-

+

My Bookmarks

-

+

Products you've saved for later

@@ -18,8 +18,8 @@ @if($bookmarks->total() > 0)
-

- You have {{ $bookmarks->total() }} bookmarked {{ Str::plural('product', $bookmarks->total()) }} +

+ You have {{ $bookmarks->total() }} bookmarked {{ Str::plural('product', $bookmarks->total()) }}

@endif @@ -32,11 +32,11 @@
- + -

No bookmarks yet

-

+

No bookmarks yet

+

Start bookmarking products to save them for later!

diff --git a/resources/views/components/product-card.blade.php b/resources/views/components/product-card.blade.php index 6b54e66..690d303 100644 --- a/resources/views/components/product-card.blade.php +++ b/resources/views/components/product-card.blade.php @@ -1,7 +1,7 @@ -
+
-
+
@if($product->thumbnail_url) {{ $product->title }}
- + {{ $product->category->name }}
@@ -24,10 +24,10 @@
-

+

{{ $product->title }}

-

+

{{ $product->description }}

@@ -39,7 +39,7 @@ @csrf
+ class="mt-3 inline-flex items-center px-3 py-1.5 border border-gray-300 dark:border-gray-600 rounded-md text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700">Add plan
diff --git a/resources/views/components/product/team-form.blade.php b/resources/views/components/product/team-form.blade.php index 9094813..d38f664 100644 --- a/resources/views/components/product/team-form.blade.php +++ b/resources/views/components/product/team-form.blade.php @@ -10,19 +10,19 @@ 'name' => $m['name'] ?? ('User #' . ($m['user_id'] ?? '')), 'role' => $m['role'] ?? '', ])->values()->all(); - $input = 'block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm'; + $input = 'block w-full px-3 py-2 border border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white rounded-md shadow-sm focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm'; @endphp @if($readonly)
- -

Only the submitter or an admin can change the team.

+ +

Only the submitter or an admin can change the team.

    @forelse($initial as $m) -
  • {{ $m['name'] }} - {{ $m['role'] }}
  • +
  • {{ $m['name'] }} - {{ $m['role'] }}
  • @empty -
  • No team members.
  • +
  • No team members.
  • @endforelse
@@ -46,31 +46,31 @@ } }"> - +
-
    +
@foreach($errors->get('members.*') as $messages) -

{{ $messages[0] }}

+

{{ $messages[0] }}

@endforeach @error('members') -

{{ $message }}

+

{{ $message }}

@enderror
@endif diff --git a/resources/views/components/product/upvote-button.blade.php b/resources/views/components/product/upvote-button.blade.php index ce8a4d8..1e41fd7 100644 --- a/resources/views/components/product/upvote-button.blade.php +++ b/resources/views/components/product/upvote-button.blade.php @@ -48,8 +48,8 @@
-
x-transition:leave="transition ease-in duration-200" x-transition:leave-start="transform translate-x-0 opacity-100" x-transition:leave-end="transform translate-x-full opacity-0" - class="w-full max-w-sm bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"> + class="w-full max-w-sm bg-white dark:bg-gray-800 shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden">
@@ -65,12 +65,12 @@ aria-live="assertive">
-

-

+

+

-
-

Website & Social Links

+
+

Website & Social Links

-
-
-
-
-
+
+ class="inline-flex items-center px-4 py-2 border border-gray-300 dark:border-gray-600 shadow-sm text-sm font-medium rounded-md text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"> Cancel