|
37 | 37 | @filled($downloadBenchmark) |
38 | 38 | <x-slot name="afterHeader"> |
39 | 39 | <span @class([ |
40 | | - 'inline-flex items-center gap-x-1.5 text-xs font-medium underline decoration-dotted decoration-1 decoration-zinc-500 underline-offset-4', |
41 | | - 'text-zinc-700 dark:text-zinc-300' => $downloadBenchmarkPassed, |
| 40 | + 'inline-flex items-center gap-x-1 text-xs font-medium underline decoration-dotted decoration-1 decoration-zinc-500 underline-offset-4', |
| 41 | + 'text-green-500 dark:text-green-400' => $downloadBenchmarkPassed, |
42 | 42 | 'text-amber-500 dark:text-amber-400' => ! $downloadBenchmarkPassed, |
43 | 43 | ]) title="Benchmark {{ $downloadBenchmarkPassed ? 'passed' : 'failed' }}"> |
44 | | - @if (! $downloadBenchmarkPassed) |
45 | | - <x-tabler-alert-triangle class="size-4" /> |
| 44 | + @if ($downloadBenchmarkPassed) |
| 45 | + <x-tabler-circle-check class="size-4" /> |
| 46 | + @else |
| 47 | + <x-tabler-alert-circle class="size-4" /> |
46 | 48 | @endif |
47 | 49 | {{ Arr::get($downloadBenchmark, 'value').' '.str(Arr::get($downloadBenchmark, 'unit'))->title() }} |
48 | 50 | </span> |
|
74 | 76 | @filled($uploadBenchmark) |
75 | 77 | <x-slot name="afterHeader"> |
76 | 78 | <span @class([ |
77 | | - 'inline-flex items-center gap-x-1.5 text-xs font-medium underline decoration-dotted decoration-1 decoration-zinc-500 underline-offset-4', |
78 | | - 'text-zinc-700 dark:text-zinc-300' => $uploadBenchmarkPassed, |
| 79 | + 'inline-flex items-center gap-x-1 text-xs font-medium underline decoration-dotted decoration-1 decoration-zinc-500 underline-offset-4', |
| 80 | + 'text-green-500 dark:text-green-400' => $uploadBenchmarkPassed, |
79 | 81 | 'text-amber-500 dark:text-amber-400' => ! $uploadBenchmarkPassed, |
80 | 82 | ]) title="Benchmark {{ $uploadBenchmarkPassed ? 'passed' : 'failed' }}"> |
81 | | - @if (! $uploadBenchmarkPassed) |
| 83 | + @if ($uploadBenchmarkPassed) |
| 84 | + <x-tabler-circle-check class="size-4" /> |
| 85 | + @else |
82 | 86 | <x-tabler-alert-triangle class="size-4" /> |
83 | 87 | @endif |
84 | 88 | {{ Arr::get($uploadBenchmark, 'value').' '.str(Arr::get($uploadBenchmark, 'unit'))->title() }} |
|
111 | 115 | @filled($pingBenchmark) |
112 | 116 | <x-slot name="afterHeader"> |
113 | 117 | <span @class([ |
114 | | - 'inline-flex items-center gap-x-1.5 text-xs font-medium underline decoration-dotted decoration-1 decoration-zinc-500 underline-offset-4', |
115 | | - 'text-zinc-700 dark:text-zinc-300' => $pingBenchmarkPassed, |
| 118 | + 'inline-flex items-center gap-x-1 text-xs font-medium underline decoration-dotted decoration-1 decoration-zinc-500 underline-offset-4', |
| 119 | + 'text-green-500 dark:text-green-400' => $pingBenchmarkPassed, |
116 | 120 | 'text-amber-500 dark:text-amber-400' => ! $pingBenchmarkPassed, |
117 | 121 | ]) title="Benchmark {{ $pingBenchmarkPassed ? 'passed' : 'failed' }}"> |
118 | | - @if (! $pingBenchmarkPassed) |
| 122 | + @if ($pingBenchmarkPassed) |
| 123 | + <x-tabler-circle-check class="size-4" /> |
| 124 | + @else |
119 | 125 | <x-tabler-alert-triangle class="size-4" /> |
120 | 126 | @endif |
121 | 127 | {{ Arr::get($pingBenchmark, 'value').' '.str(Arr::get($pingBenchmark, 'unit')) }} |
|
0 commit comments