Skip to content

Commit e115aff

Browse files
committed
feat: improved styling of dashboard
1 parent 4582d72 commit e115aff

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

resources/views/dashboard.blade.php

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,28 @@
4040
<div class="p-6 text-gray-900 dark:text-gray-100">
4141
<h4 class="text-2xl font-medium text-white title-font mb-2">
4242
{{ route('redirect', $link['short_url']) }}
43+
<input type="hidden" value="{{ route('redirect', $link['short_url']) }}" id="urlShort-{{ $link['id'] }}">
44+
<div id="short-tooltip-{{ $link['id'] }}" class="hidden bg-green-300 text-white text-sm px-2 py-1 rounded shadow-lg absolute -mt-12">Copied!</div>
45+
<button type="button" class="copy-button text-gray-800 dark:text-gray-200"
46+
data-clipboard-target="#urlShort-{{ $link['id'] }}" tooltip-target="short-tooltip-{{ $link['id'] }}">
47+
<svg class="w-4 h-4 ml-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"
48+
stroke="currentColor" stroke-width="2" fill="currentColor"
49+
stroke-linecap="round" stroke-linejoin="round">
50+
<path
51+
d="M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z" />
52+
</svg>
53+
</button>
4354
</h4>
4455
<input type="hidden" value="{{ $link['long_url'] }}" id="urlLong-{{ $link['id'] }}">
45-
<span class="leading-relaxed">
56+
<span class="leading-relaxed text-gray-400 dark:text-gray-500">
4657
@if (strlen($link['long_url']) > 50)
4758
{{ substr($link['long_url'], 0, 100) }}...
4859
@else
4960
{{ $link['long_url'] }}
5061
@endif
5162
</span>
5263

53-
<div class="text-indigo-400 mt-4 pd-2 border-solid rounded border-indigo-400 inline-block">
64+
<div class="text-gray-400 dark:text-gray-500 mt-4 pd-2 border-solid rounded border-indigo-400 inline-block">
5465
<div id="tooltip-{{ $link['id'] }}" class="hidden bg-green-300 text-white text-sm px-2 py-1 rounded shadow-lg absolute -mt-12">Copied!</div>
5566
<button type="button" class="copy-button"
5667
data-clipboard-target="#urlLong-{{ $link['id'] }}" tooltip-target="tooltip-{{ $link['id'] }}">

0 commit comments

Comments
 (0)