From fad0a816b88e35def6fcc32e30944adf84bd10e2 Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Thu, 18 Jul 2024 11:46:43 -0400 Subject: [PATCH 1/8] wire up tabs with alpinejs --- resources/views/mod/show.blade.php | 91 ++++++++++++++++++++---------- 1 file changed, 61 insertions(+), 30 deletions(-) diff --git a/resources/views/mod/show.blade.php b/resources/views/mod/show.blade.php index 3d8012a..1f025d6 100644 --- a/resources/views/mod/show.blade.php +++ b/resources/views/mod/show.blade.php @@ -8,6 +8,8 @@
+ + {{-- Mod Info Card --}}
@@ -27,44 +29,73 @@

{{ __('Created by') }} {{ $mod->users->pluck('name')->implode(', ') }}

{{ $mod->latestSptVersion->sptVersion->version }} {{ __('Compatible') }}

-

{{ $mod->total_downloads }} {{ __('Downloads') }}

+

{{ Number::format($mod->total_downloads) }} {{ __('Downloads') }}

-
-
- - {{-- Use an "onChange" listener to redirect the user to the selected tab URL. --}} - -
- -
-
- {{-- The description below is safe to write directly because it has been run though HTMLPurifier during the import process. --}} -

{!! Str::markdown($mod->description) !!}

+ {{-- Tabs --}} +
+
+ + {{-- dropdown select, for small screens --}} +
+ + Use an "onChange" listener to redirect the user to the selected tab URL. + +
+ + {{-- tab buttons --}} + +
+ + {{-- tab panels --}} +
+ {{-- The description below is safe to write directly because it has been run though HTMLPurifier during the import process. --}} +

{!! Str::markdown($mod->description) !!}

+
+
+

Versions on this page

+
+
+

The comments go here

+
+ {{-- --}}
From 6a682312838729741366b507c917b7c7b92865e9 Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Thu, 18 Jul 2024 13:34:15 -0400 Subject: [PATCH 2/8] remove info --- resources/views/mod/show.blade.php | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/views/mod/show.blade.php b/resources/views/mod/show.blade.php index 1f025d6..1f8ff4d 100644 --- a/resources/views/mod/show.blade.php +++ b/resources/views/mod/show.blade.php @@ -44,7 +44,6 @@ {{-- dropdown select, for small screens --}}
- Use an "onChange" listener to redirect the user to the selected tab URL.