Skip to content

Commit 7625625

Browse files
author
David Yell
committed
Add set icons
1 parent 4292e9c commit 7625625

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"vite": "^6.0.11"
3232
},
3333
"dependencies": {
34+
"keyrune": "^3.16.1",
3435
"mana-font": "^1.18.0"
3536
}
3637
}

resources/css/app.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import 'mana-font/css/mana.min.css';
2+
@import 'keyrune/css/keyrune.min.css';
23

34
@tailwind base;
45
@tailwind components;

resources/views/livewire/set-index.blade.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
<table class="min-w-full divide-y divide-gray-300">
1515
<thead>
1616
<tr>
17-
<th scope="col" class="py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-0">Name</th>
17+
<th scope="col" class="py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-0"></th>
18+
<th scope="col" class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900">Name</th>
1819
<th scope="col" class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900">Code</th>
1920
<th scope="col" class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900">Release</th>
2021
<th scope="col" class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900">Block</th>
@@ -25,8 +26,13 @@
2526
<tbody class="divide-y divide-gray-200">
2627
@foreach ($sets as $set)
2728
<tr>
28-
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0">{{ $set->name }}</td>
29-
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">{{ $set->code }}</td>
29+
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-0">
30+
<span class="ss ss-{{ \Illuminate\Support\Str::lower($set->keyruneCode) }}"></span>
31+
</td>
32+
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">{{ $set->name }}</td>
33+
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
34+
<span class="inline-flex items-center rounded-md bg-gray-50 px-2 py-1 text-xs font-medium text-gray-600 ring-1 ring-inset ring-gray-500/10">{{ $set->code }}</span>
35+
</td>
3036
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">{{ $set->releaseDate }}</td>
3137
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">{{ $set->block }}</td>
3238
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">

0 commit comments

Comments
 (0)