Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions app/Http/Controllers/ToolController.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ public function index(): View
'route' => 'tools.regex',
'icon' => 'regex',
],
[
'name' => 'Color Picker',
'description' => 'Pick colors and convert between HEX, RGB, HSL, CMYK',
'route' => 'tools.color-picker',
'icon' => 'color',
],
];

return view('home', compact('tools'));
Expand Down Expand Up @@ -134,4 +140,9 @@ public function regex(): View
{
return view('tools.regex');
}

public function colorPicker(): View
{
return view('tools.color-picker');
}
}
5 changes: 5 additions & 0 deletions resources/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@
<circle cx="12" cy="12" r="4" stroke-width="2"/>
</svg>
@break
@case('color')
<svg class="w-6 h-6 text-indigo-600 dark:text-indigo-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01"/>
</svg>
@break
@endswitch
</div>
<div class="flex-1 min-w-0">
Expand Down
Loading