Skip to content

Commit

Permalink
style: Replaced heroicons with hugeicons
Browse files Browse the repository at this point in the history
  • Loading branch information
lewislarsen committed Aug 25, 2024
1 parent 27c0aca commit 31076d2
Show file tree
Hide file tree
Showing 78 changed files with 444 additions and 476 deletions.
2 changes: 1 addition & 1 deletion app/Providers/FeatureServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private function getFeatures(): array
// 'title' => 'Example Feature',
// 'description' => 'Description of the example feature.',
// 'group' => 'General',
// 'icon' => 'heroicon-o-beaker',
// 'icon' => 'hugeicons-test-tube-01',
// ],
];
}
Expand Down
8 changes: 4 additions & 4 deletions app/View/Components/Partials/FlashMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ public function buttonClasses(): string
public function icon(): string
{
return match ($this->type) {
'success' => 'heroicon-o-check-circle',
'warning' => 'heroicon-o-exclamation-triangle',
'error' => 'heroicon-o-x-circle',
default => 'heroicon-o-information-circle',
'success' => 'hugeicons-checkmark-circle-02',
'warning' => 'hugeicons-alert-02',
'error' => 'hugeicons-cancel-circle',
default => 'hugeicons-information-circle',
};
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"require": {
"php": "^8.2",
"blade-ui-kit/blade-heroicons": "^2.3",
"afatmustafa/blade-hugeicons": "^0.0.3",
"danharrin/livewire-rate-limiting": "^1.3",
"diglactic/laravel-breadcrumbs": "^9.0",
"jenssegers/agent": "^2.6",
Expand Down
132 changes: 62 additions & 70 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions resources/views/account/partials/sidebar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@
<li>
<x-sidebar-nav-link :href="route('profile')" :active="request()->routeIs('profile')" wire:navigate>
<span class="flex items-center">
@svg('heroicon-o-user', 'h-5 w-5 mr-2')
@svg('hugeicons-user', 'h-5 w-5 mr-2')
<span>{{ __('My Profile') }}</span>
</span>
</x-sidebar-nav-link>
</li>
<li>
<x-sidebar-nav-link :href="route('profile.api')" :active="request()->routeIs('profile.api*')" wire:navigate>
<span class="flex items-center">
@svg('heroicon-o-code-bracket', 'h-5 w-5 mr-2')
@svg('hugeicons-ticket-02', 'h-5 w-5 mr-2')
<span>{{ __('API Tokens') }}</span>
</span>
</x-sidebar-nav-link>
</li>
<li>
<x-sidebar-nav-link :href="route('profile.connections')" :active="request()->routeIs('profile.connections*')" wire:navigate>
<span class="flex items-center">
@svg('heroicon-o-puzzle-piece', 'h-5 w-5 mr-2')
@svg('hugeicons-puzzle', 'h-5 w-5 mr-2')
<span>{{ __('Connections') }}</span>
</span>
</x-sidebar-nav-link>
Expand All @@ -36,7 +36,7 @@
<li>
<x-sidebar-nav-link :href="route('profile.mfa')" :active="request()->routeIs('profile.mfa*')" wire:navigate>
<span class="flex items-center">
@svg('heroicon-o-lock-closed', 'h-5 w-5 mr-2')
@svg('hugeicons-square-lock-02', 'h-5 w-5 mr-2')
<span>{{ __('Two-Factor Auth') }}</span>
</span>
</x-sidebar-nav-link>
Expand All @@ -45,7 +45,7 @@
<li>
<x-sidebar-nav-link :href="route('profile.sessions')" :active="request()->routeIs('profile.sessions*')" wire:navigate>
<span class="flex items-center">
@svg('heroicon-o-globe-alt', 'h-5 w-5 mr-2')
@svg('hugeicons-gps-signal-01', 'h-5 w-5 mr-2')
<span>{{ __('Active Sessions') }}</span>
</span>
</x-sidebar-nav-link>
Expand All @@ -59,31 +59,31 @@
<li>
<x-sidebar-nav-link :href="route('tags.index')" :active="request()->routeIs('tags.*')" wire:navigate>
<span class="flex items-center">
@svg('heroicon-o-tag', 'h-5 w-5 mr-2')
@svg('hugeicons-tags', 'h-5 w-5 mr-2')
<span>{{ __('Manage Tags') }}</span>
</span>
</x-sidebar-nav-link>
</li>
<li>
<x-sidebar-nav-link :href="route('notification-streams.index')" :active="request()->routeIs('notification-streams.*')" wire:navigate>
<span class="flex items-center">
@svg('heroicon-o-bell', 'h-5 w-5 mr-2')
@svg('hugeicons-notification-02', 'h-5 w-5 mr-2')
<span>{{ __('Notifications') }}</span>
</span>
</x-sidebar-nav-link>
</li>
<li>
<x-sidebar-nav-link :href="route('profile.quiet-mode')" :active="request()->routeIs('profile.quiet-mode*')" wire:navigate>
<span class="flex items-center">
@svg('heroicon-o-bell-snooze', 'h-5 w-5 mr-2')
@svg('hugeicons-notification-snooze-02', 'h-5 w-5 mr-2')
<span>{{ __('Quiet Mode') }}</span>
</span>
</x-sidebar-nav-link>
</li>
<li>
<x-sidebar-nav-link :href="route('profile.experiments')" :active="request()->routeIs('profile.experiments*')" wire:navigate>
<span class="flex items-center">
@svg('heroicon-o-beaker', 'h-5 w-5 mr-2')
@svg('hugeicons-test-tube-01', 'h-5 w-5 mr-2')
<span>{{ __('Experiments') }}</span>
</span>
</x-sidebar-nav-link>
Expand All @@ -96,15 +96,15 @@
<li>
<x-sidebar-nav-link :href="route('profile.help')" :active="request()->routeIs('profile.help*')" wire:navigate>
<span class="flex items-center">
@svg('heroicon-o-lifebuoy', 'h-5 w-5 mr-2')
@svg('hugeicons-mentoring', 'h-5 w-5 mr-2')
<span>{{ __('Get Help') }}</span>
</span>
</x-sidebar-nav-link>
</li>
<li>
<x-sidebar-nav-link :href="route('account.remove-account')" :active="request()->routeIs('account.remove-account')" wire:navigate>
<span class="flex items-center">
@svg('heroicon-o-trash', 'h-5 w-5 mr-2')
@svg('hugeicons-user-remove-01', 'h-5 w-5 mr-2')
<span>{{ __('Delete Account') }}</span>
</span>
</x-sidebar-nav-link>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/auth-session-error.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

@if ($loginError)
<div {{ $attributes->merge(['class' => 'font-medium text-sm text-red-600 dark:text-red-400 py-2 px-2 border border-red-200 bg-red-50 rounded-lg text-center']) }}>
@svg('heroicon-o-exclamation-triangle', 'w-5 h-5 inline-block me-2')
@svg('hugeicons-alert-02', 'w-5 h-5 inline-block me-2')
{{ $loginError }}
</div>
@endif
2 changes: 1 addition & 1 deletion resources/views/components/chart-card.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@props([
'icon' => 'heroicon-o-chart-bar',
'icon' => 'hugeicons-presentation-bar-chart-01',
'title',
'description',
])
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form-wrapper.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@if (isset($icon))
<x-dynamic-component :component="$icon" :class="$iconClass" />
@else
@svg('heroicon-o-server', ['class' => $iconClass])
@svg('hugeicons-information-circle', ['class' => $iconClass])
@endif
</div>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{ __('Add or update a Notification Stream.') }}
</x-slot>
<x-slot name="icon">
heroicon-o-bell
hugeicons-notification-02
</x-slot>
<form wire:submit.prevent="submit">
<div class="mt-4 flex flex-col md:flex-row md:space-x-6 space-y-4 md:space-y-0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class="border-l-4 p-4 rounded-r-lg shadow-md {{ $alertClasses() }}"
<div class="-mx-1.5 -my-1.5">
<button @click="show = false" type="button" class="inline-flex rounded-full p-1.5 hover:bg-opacity-20 focus:outline-none focus:ring-2 focus:ring-offset-2 {{ $buttonClasses() }}">
<span class="sr-only">Dismiss</span>
@svg('heroicon-o-x-mark', 'h-5 w-5')
@svg('hugeicons-cancel-01', 'h-5 w-5')
</button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ class="px-4 py-3 border-t border-gray-700"
:class="{'bg-primary-600': theme === 'light', 'bg-gray-600': theme !== 'light'}"
class="flex-1 px-3 py-2 rounded-md text-sm font-medium text-white transition-colors duration-200"
>
@svg('heroicon-o-sun', 'w-5 h-5 mx-auto')
@svg('hugeicons-sun-02', 'w-5 h-5 mx-auto')
<span class="sr-only">{{ __('Light') }}</span>
</button>
<button
@click="setTheme('dark')"
:class="{'bg-primary-600': theme === 'dark', 'bg-gray-600': theme !== 'dark'}"
class="flex-1 px-3 py-2 rounded-md text-sm font-medium text-white transition-colors duration-200"
>
@svg('heroicon-o-moon', 'w-5 h-5 mx-auto')
@svg('hugeicons-moon-02', 'w-5 h-5 mx-auto')
<span class="sr-only">{{ __('Dark') }}</span>
</button>
<button
@click="setTheme('system')"
:class="{'bg-primary-600': theme === 'system', 'bg-gray-600': theme !== 'system'}"
class="flex-1 px-3 py-2 rounded-md text-sm font-medium text-white transition-colors duration-200"
>
@svg('heroicon-o-computer-desktop', 'w-5 h-5 mx-auto')
@svg('hugeicons-computer', 'w-5 h-5 mx-auto')
<span class="sr-only">{{ __('System') }}</span>
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/select.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

@if ($errors->has($name))
<div class="absolute inset-y-0 right-0 pr-8 flex items-center pointer-events-none">
@svg('heroicon-o-exclamation-triangle', ['class' => 'w-5 h-5 text-red-600'])
@svg('hugeicons-alert-02', ['class' => 'w-5 h-5 text-red-600'])
</div>
@endif
</div>
2 changes: 1 addition & 1 deletion resources/views/components/stat-card.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@props([
'icon' => 'heroicon-o-question-mark-circle',
'icon' => 'hugeicons-information-circle',
'title',
'description',
])
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/text-input.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@if ($errors->has($name))
<div class="absolute inset-y-0 {{ $errorIconClass }} flex items-center pointer-events-none">
@svg('heroicon-o-exclamation-triangle', ['class' => 'w-5 h-5 text-red-600'])
@svg('hugeicons-alert-02', ['class' => 'w-5 h-5 text-red-600'])
</div>
@endif
</div>
2 changes: 1 addition & 1 deletion resources/views/components/textarea.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

@if ($hasError)
<div class="absolute top-2 right-2 flex items-center pointer-events-none">
@svg('heroicon-o-exclamation-triangle', ['class' => 'w-5 h-5 text-red-600'])
@svg('hugeicons-alert-02', ['class' => 'w-5 h-5 text-red-600'])
</div>
@endif
</div>
Loading

0 comments on commit 31076d2

Please sign in to comment.