From 453168b0b1a099db56eea8b3c8c6bc5a96089aa1 Mon Sep 17 00:00:00 2001 From: Seth Sharp Date: Sun, 15 Oct 2023 15:18:13 +1000 Subject: [PATCH] remove a bunch of components and refactor image card component --- app/View/Components/Project.php | 48 ------------ app/View/Components/aboutCard.php | 56 -------------- app/View/Components/image-card.php | 28 ------- app/View/Components/testComp.php | 28 ------- .../components/application-logo.blade.php | 3 - .../components/auth-session-status.blade.php | 7 -- .../views/components/danger-button.blade.php | 3 - .../views/components/dropdown-link.blade.php | 1 - resources/views/components/dropdown.blade.php | 43 ----------- .../image.blade.php => image/card.blade.php} | 0 .../views/components/input-error.blade.php | 9 --- .../views/components/input-label.blade.php | 5 -- resources/views/components/modal.blade.php | 77 ------------------- .../views/components/primary-button.blade.php | 3 - .../components/project/section.blade.php | 16 ++-- .../components/responsive-nav-link.blade.php | 11 --- .../components/secondary-button.blade.php | 3 - .../views/components/text-input.blade.php | 3 - 18 files changed, 8 insertions(+), 336 deletions(-) delete mode 100644 app/View/Components/Project.php delete mode 100644 app/View/Components/aboutCard.php delete mode 100644 app/View/Components/image-card.php delete mode 100644 app/View/Components/testComp.php delete mode 100644 resources/views/components/application-logo.blade.php delete mode 100644 resources/views/components/auth-session-status.blade.php delete mode 100644 resources/views/components/danger-button.blade.php delete mode 100644 resources/views/components/dropdown-link.blade.php delete mode 100644 resources/views/components/dropdown.blade.php rename resources/views/components/{Card/image.blade.php => image/card.blade.php} (100%) delete mode 100644 resources/views/components/input-error.blade.php delete mode 100644 resources/views/components/input-label.blade.php delete mode 100644 resources/views/components/modal.blade.php delete mode 100644 resources/views/components/primary-button.blade.php delete mode 100644 resources/views/components/responsive-nav-link.blade.php delete mode 100644 resources/views/components/secondary-button.blade.php delete mode 100644 resources/views/components/text-input.blade.php diff --git a/app/View/Components/Project.php b/app/View/Components/Project.php deleted file mode 100644 index 5f03ad11..00000000 --- a/app/View/Components/Project.php +++ /dev/null @@ -1,48 +0,0 @@ -title = $title; - $this->technology = $technology; - $this->link = $link; - $this->dur = $dur; - $this->img1 = $img1; - $this->img2 = $img2; - $this->desc = $desc; - } - - /** - * Get the view / contents that represent the component. - * - * @return \Illuminate\Contracts\View\View|\Closure|string - */ - public function render() - { - return view('components.project'); - } -} diff --git a/app/View/Components/aboutCard.php b/app/View/Components/aboutCard.php deleted file mode 100644 index 4e0d9285..00000000 --- a/app/View/Components/aboutCard.php +++ /dev/null @@ -1,56 +0,0 @@ -title = $title; - $this->content1 = $content1; - $this->content2 = $content2; - $this->pFloatDir = $pFloatDir; - $this->imgFloatDir = $imgFloatDir; - $this->imgSrc = $imgSrc; - } - - public function imgPassed() { - return $this->imgSrc != 'b'; - } - - public function content2Passed() { - return $this->content2 == 'Default Content'; - } - - /** - * Get the view / contents that represent the component. - * - * @return \Illuminate\Contracts\View\View|\Closure|string - */ - - public function render() - { - return view('components.aboutCard'); - } -} diff --git a/app/View/Components/image-card.php b/app/View/Components/image-card.php deleted file mode 100644 index c5d15493..00000000 --- a/app/View/Components/image-card.php +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/resources/views/components/auth-session-status.blade.php b/resources/views/components/auth-session-status.blade.php deleted file mode 100644 index c4bd6e23..00000000 --- a/resources/views/components/auth-session-status.blade.php +++ /dev/null @@ -1,7 +0,0 @@ -@props(['status']) - -@if ($status) -
merge(['class' => 'font-medium text-sm text-green-600']) }}> - {{ $status }} -
-@endif diff --git a/resources/views/components/danger-button.blade.php b/resources/views/components/danger-button.blade.php deleted file mode 100644 index d17d2889..00000000 --- a/resources/views/components/danger-button.blade.php +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/resources/views/components/dropdown-link.blade.php b/resources/views/components/dropdown-link.blade.php deleted file mode 100644 index 9912ac12..00000000 --- a/resources/views/components/dropdown-link.blade.php +++ /dev/null @@ -1 +0,0 @@ -merge(['class' => 'block w-full px-4 py-2 text-left text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out']) }}>{{ $slot }} diff --git a/resources/views/components/dropdown.blade.php b/resources/views/components/dropdown.blade.php deleted file mode 100644 index c015664c..00000000 --- a/resources/views/components/dropdown.blade.php +++ /dev/null @@ -1,43 +0,0 @@ -@props(['align' => 'right', 'width' => '48', 'contentClasses' => 'py-1 bg-white']) - -@php -switch ($align) { - case 'left': - $alignmentClasses = 'origin-top-left left-0'; - break; - case 'top': - $alignmentClasses = 'origin-top'; - break; - case 'right': - default: - $alignmentClasses = 'origin-top-right right-0'; - break; -} - -switch ($width) { - case '48': - $width = 'w-48'; - break; -} -@endphp - -
-
- {{ $trigger }} -
- - -
diff --git a/resources/views/components/Card/image.blade.php b/resources/views/components/image/card.blade.php similarity index 100% rename from resources/views/components/Card/image.blade.php rename to resources/views/components/image/card.blade.php diff --git a/resources/views/components/input-error.blade.php b/resources/views/components/input-error.blade.php deleted file mode 100644 index 9e6da217..00000000 --- a/resources/views/components/input-error.blade.php +++ /dev/null @@ -1,9 +0,0 @@ -@props(['messages']) - -@if ($messages) - -@endif diff --git a/resources/views/components/input-label.blade.php b/resources/views/components/input-label.blade.php deleted file mode 100644 index 1cc65e21..00000000 --- a/resources/views/components/input-label.blade.php +++ /dev/null @@ -1,5 +0,0 @@ -@props(['value']) - - diff --git a/resources/views/components/modal.blade.php b/resources/views/components/modal.blade.php deleted file mode 100644 index ef0a601a..00000000 --- a/resources/views/components/modal.blade.php +++ /dev/null @@ -1,77 +0,0 @@ -@props([ - 'name', - 'show' => false, - 'maxWidth' => '2xl' -]) - -@php -$maxWidth = [ - 'sm' => 'sm:max-w-sm', - 'md' => 'sm:max-w-md', - 'lg' => 'sm:max-w-lg', - 'xl' => 'sm:max-w-xl', - '2xl' => 'sm:max-w-2xl', -][$maxWidth]; -@endphp - -
-
-
-
- -
- {{ $slot }} -
-
diff --git a/resources/views/components/primary-button.blade.php b/resources/views/components/primary-button.blade.php deleted file mode 100644 index d71f0b67..00000000 --- a/resources/views/components/primary-button.blade.php +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/resources/views/components/project/section.blade.php b/resources/views/components/project/section.blade.php index c5b58e42..b9df9902 100644 --- a/resources/views/components/project/section.blade.php +++ b/resources/views/components/project/section.blade.php @@ -24,12 +24,12 @@
- +
- +
@@ -55,12 +55,12 @@ configuration and research Habit Tracker is fully running on this infrastructure as well as connected to an RDS
-
- - - - Checkout the repository -
+ {{--
--}} + {{-- --}} + {{-- --}} + {{-- --}} + {{-- Checkout the repository --}} + {{--
--}}
diff --git a/resources/views/components/responsive-nav-link.blade.php b/resources/views/components/responsive-nav-link.blade.php deleted file mode 100644 index 8fc2b65e..00000000 --- a/resources/views/components/responsive-nav-link.blade.php +++ /dev/null @@ -1,11 +0,0 @@ -@props(['active']) - -@php -$classes = ($active ?? false) - ? 'block w-full pl-3 pr-4 py-2 border-l-4 border-indigo-400 text-left text-base font-medium text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700 transition duration-150 ease-in-out' - : 'block w-full pl-3 pr-4 py-2 border-l-4 border-transparent text-left text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-gray-50 focus:border-gray-300 transition duration-150 ease-in-out'; -@endphp - -merge(['class' => $classes]) }}> - {{ $slot }} - diff --git a/resources/views/components/secondary-button.blade.php b/resources/views/components/secondary-button.blade.php deleted file mode 100644 index b32b69fc..00000000 --- a/resources/views/components/secondary-button.blade.php +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/resources/views/components/text-input.blade.php b/resources/views/components/text-input.blade.php deleted file mode 100644 index 1df7f0dd..00000000 --- a/resources/views/components/text-input.blade.php +++ /dev/null @@ -1,3 +0,0 @@ -@props(['disabled' => false]) - -merge(['class' => 'border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm']) !!}>