Skip to content

Commit 4c1d854

Browse files
authored
Replace some heroicon with untitledui icons (#133)
1 parent e3eb352 commit 4c1d854

33 files changed

+102
-146
lines changed

resources/views/articles/show.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,13 @@ class="inline-flex items-center py-2 px-4 border border-skin-base rounded-md sha
231231
@hasanyrole('admin|moderator')
232232
<button onclick="Livewire.emit('openModal', 'modals.approved-article', {{ json_encode([$article->id]) }})" type="button" class="-ml-px relative inline-flex items-center px-4 py-2 border border-skin-base bg-skin-card text-sm font-medium text-green-500 hover:bg-skin-card-muted focus:z-10 focus:outline-none focus:ring-1 focus:ring-green-500 focus:border-green-500 focus:border-green-500 focus:ring-offset-body">
233233
<span class="sr-only">{{ __('Approuver') }}</span>
234-
<x-heroicon-s-badge-check class="h-5 w-5" />
234+
<x-untitledui-check-verified-02 class="h-5 w-5" />
235235
</button>
236236
@endhasanyrole
237237
@endif
238238
<button onclick="Livewire.emit('openModal', 'modals.delete-article', {{ json_encode([$article->id]) }})" type="button" class="relative inline-flex items-center px-4 py-2 rounded-r-md border border-skin-base bg-skin-card text-sm font-medium text-skin-inverted-muted hover:bg-skin-card-muted focus:z-10 focus:outline-none focus:ring-1 focus:ring-green-500 focus:border-green-500 focus:ring-offset-body">
239239
<span class="sr-only">{{ __('Supprimer') }}</span>
240-
<x-heroicon-s-trash class="h-5 w-5" />
240+
<x-untitledui-trash-03 class="h-5 w-5" />
241241
</button>
242242
</span>
243243
</div>
@@ -337,7 +337,7 @@ class="w-screen max-w-xs"
337337
<div class="ml-3 h-7 flex items-center">
338338
<button type="button" class="bg-skin-card rounded-md text-skin-muted hover:text-skin-base focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500" @click="openTOC = false">
339339
<span class="sr-only">{{ __('Fermer') }}</span>
340-
<x-heroicon-o-x class="h-6 w-6" />
340+
<x-untitledui-x class="h-6 w-6" />
341341
</button>
342342
</div>
343343
</div>

resources/views/components/articles/card.blade.php

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
1-
@props(['article'])
1+
@props([
2+
'article',
3+
'isSummary' => false,
4+
'iconLink' => false,
5+
])
26

3-
<div class="space-y-6">
7+
<div
8+
@class([
9+
'space-y-6',
10+
'lg:grid lg:grid-cols-3 lg:items-start lg:gap-6 lg:space-y-0' => $isSummary,
11+
])
12+
>
413
<a href="{{ route('articles.show', $article) }}" class="group">
514
<div class="aspect-w-3 aspect-h-2">
615
<img class="object-cover shadow-lg rounded-lg group-hover:opacity-75" src="{{ $article->getFirstMediaUrl('media') }}" alt="{{ $article->title }}" />
716
</div>
817
</a>
9-
<div class="space-y-4">
18+
<div
19+
@class([
20+
'space-y-4',
21+
'sm:col-span-2' => $isSummary,
22+
])
23+
>
1024
<div>
1125
<time datetime="{{ $article->publishedAt()->format('Y-m-d') }}" class="font-sans text-sm leading-5 text-skin-base capitalize">
1226
{{ $article->publishedAt()->isoFormat('LL') }}
@@ -15,9 +29,9 @@
1529
<h4 class="text-lg leading-6 font-semibold font-sans text-skin-inverted group-hover:text-skin-primary">
1630
{{ $article->title }}
1731
</h4>
18-
<svg class="ml-2.5 h-5 w-5 text-skin-base" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
19-
<path stroke-linecap="round" stroke-linejoin="round" d="M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25" />
20-
</svg>
32+
@if($iconLink)
33+
<x-untitledui-link-external-01 class="ml-2 h-5 w-5 text-skin-base" />
34+
@endif
2135
</a>
2236
<p class="mt-1 font-normal text-skin-base leading-6">
2337
{!! $article->excerpt(150) !!}

resources/views/components/articles/summary.blade.php

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@props(['value'])
22

33
<p {{ $attributes->merge(['class' => 'flex items-baseline text-sm font-semibold text-red-600']) }}>
4-
<x-heroicon-s-arrow-sm-down class="self-center shrink-0 h-5 w-5 text-red-500" />
5-
<span class="sr-only">Decreased by</span> {{ $value }}
4+
<x-untitledui-trend-down class="self-center shrink-0 h-5 w-5 text-red-500" />
5+
<span class="sr-only">{{ __('Diminué de') }}</span> {{ $value }}
66
</p>

resources/views/components/dropdown-profile.blade.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ class="origin-top-right absolute right-0 mt-2 w-60 rounded-md shadow-lg py-1 bg-
3232

3333
@if(Auth::user()->hasRole(['admin', 'moderator']))
3434
<div class="py-1.5 px-3.5" role="none">
35-
<a href="#c" class="group flex items-center py-1.5 text-sm text-skin-base hover:text-skin-primary font-normal" role="menuitem" tabindex="-1" id="user-menu-item-0">
36-
<svg class="flex-none h-5 w-5 mr-3 text-skin-muted group-hover:text-skin-primary" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
37-
<path stroke-linecap="round" stroke-linejoin="round" d="M9 17.25v1.007a3 3 0 01-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0115 18.257V17.25m6-12V15a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 15V5.25m18 0A2.25 2.25 0 0018.75 3H5.25A2.25 2.25 0 003 5.25m18 0V12a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 12V5.25" />
38-
</svg>
35+
<a href="{{ route('filament.admin.pages.dashboard') }}" class="group flex items-center py-1.5 text-sm text-skin-base hover:text-skin-primary font-normal" role="menuitem" tabindex="-1" id="user-menu-item-0">
36+
<x-untitledui-monitor class="flex-none h-5 w-5 mr-3 text-skin-muted group-hover:text-skin-primary" />
3937
{{ __('Administration') }}
4038
</a>
4139
</div>
@@ -89,15 +87,15 @@ class="origin-top-right absolute right-0 mt-2 w-60 rounded-md shadow-lg py-1 bg-
8987

9088
<div class="py-1.5 px-3.5" role="none">
9189
<a href="{{ route('dashboard') }}" class="group flex items-center py-1.5 text-sm text-skin-base hover:text-skin-primary font-normal" role="menuitem" tabindex="-1" id="user-menu-item-0">
92-
<x-icon.grid class="flex-none h-5 w-5 mr-3 text-skin-muted group-hover:text-skin-primary" />
90+
<x-untitledui-grid class="flex-none h-5 w-5 mr-3 text-skin-muted group-hover:text-skin-primary" />
9391
{{ __('Tableau de bord') }}
9492
</a>
9593
<a href="{{ route('profile') }}" class="group flex items-center py-1.5 text-sm text-skin-base hover:text-skin-primary font-normal" role="menuitem" tabindex="-1" id="user-menu-item-1">
96-
<x-icon.profile class="flex-none h-5 w-5 mr-3 text-skin-muted group-hover:text-skin-primary" />
94+
<x-untitledui-user-circle class="flex-none h-5 w-5 mr-3 text-skin-muted group-hover:text-skin-primary" />
9795
{{ __('Mon profil') }}
9896
</a>
9997
<a href="{{ route('user.settings') }}" class="group flex items-center py-1.5 text-sm text-skin-base hover:text-skin-primary font-normal" role="menuitem" tabindex="-1" id="user-menu-item-2">
100-
<x-icon.settings class="flex-none h-5 w-5 mr-3 text-skin-muted group-hover:text-skin-primary" />
98+
<x-untitledui-sliders class="flex-none h-5 w-5 mr-3 text-skin-muted group-hover:text-skin-primary" />
10199
{{ __('Paramètres') }}
102100
</a>
103101
<form method="POST" action="{{ route('logout') }}" role="form">

resources/views/components/error-message.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div {{ $attributes->merge(['class' => 'rounded-md bg-red-50 p-4']) }}>
44
<div class="flex">
55
<div class="shrink-0">
6-
<x-heroicon-s-x-circle class="h-5 w-5 text-red-400" />
6+
<x-untitledui-x class="h-5 w-5 text-red-400" />
77
</div>
88
<div class="ml-3">
99
<h3 class="text-sm font-medium text-red-800">

resources/views/components/forms/editor/controls.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
</svg>
99
</button>
1010
<button x-data title="Code sample" type="button" class="text-skin-base hover:text-skin-inverted-muted cursor-pointer focus:outline-none" @click="$dispatch('editor-control-clicked', 'code')">
11-
<x-heroicon-o-code class="w-5 h-5" />
11+
<x-untitledui-code class="w-5 h-5" />
1212
</button>
1313
<button x-data title="Link" type="button" class="text-skin-base hover:text-skin-inverted-muted cursor-pointer focus:outline-none" @click="$dispatch('editor-control-clicked', 'link')">
1414
<x-heroicon-o-link class="w-5 h-5" />
1515
</button>
1616
<button x-data title="Image" type="button" class="text-skin-base hover:text-skin-inverted-muted cursor-pointer focus:outline-none" @click="$dispatch('editor-control-clicked', 'image')">
17-
<x-heroicon-o-photograph class="w-5 h-5" />
17+
<x-untitledui-image class="w-5 h-5" />
1818
</button>
1919
</div>

resources/views/components/forum/thread.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class="origin-top-right absolute right-0 mt-2 w-56 rounded-md shadow-lg bg-skin-
4848
@endcan
4949
@can(App\Policies\ThreadPolicy::DELETE, $thread)
5050
<button type="button" onclick="Livewire.emit('openModal', 'modals.delete-thread', {{ json_encode([$thread->id]) }})" class="group text-skin-inverted-muted flex px-4 py-2 text-sm hover:text-skin-inverted" role="menuitem" tabindex="-1">
51-
<x-heroicon-s-trash class="mr-3 h-5 w-5 text-skin-muted group-hover:text-skin-base" />
51+
<x-untitledui-trash-03 class="mr-3 h-5 w-5 text-skin-muted group-hover:text-skin-base" />
5252
<span>{{ __('Supprimer') }}</span>
5353
</button>
5454
@endcan

0 commit comments

Comments
 (0)