Linting of styling issues
This commit is contained in:
@@ -10,16 +10,16 @@
|
||||
</script>
|
||||
|
||||
<article
|
||||
class="group grid h-full min-w-0 grid-rows-[auto_1fr] overflow-hidden rounded-xl bg-ecsess-800 shadow-md ring-2 ring-ecsess-500/50 ring-offset-2 ring-offset-ecsess-900 transition-all duration-500 ease-out hover:ring-ecsess-300 hover:shadow-xl hover:shadow-ecsess-400/50 focus-within:ring-2 focus-within:ring-ecsess-300 focus-within:ring-offset-2 focus-within:ring-offset-ecsess-900 {featured
|
||||
class="group bg-ecsess-800 ring-ecsess-500/50 ring-offset-ecsess-900 hover:ring-ecsess-300 hover:shadow-ecsess-400/50 focus-within:ring-ecsess-300 focus-within:ring-offset-ecsess-900 grid h-full min-w-0 grid-rows-[auto_1fr] overflow-hidden rounded-xl shadow-md ring-2 ring-offset-2 transition-all duration-500 ease-out focus-within:ring-2 focus-within:ring-offset-2 hover:shadow-xl {featured
|
||||
? 'w-full max-w-[14rem] sm:max-w-[16rem]'
|
||||
: 'w-full max-w-[14rem] sm:max-w-[16rem]'}"
|
||||
>
|
||||
<div
|
||||
class="relative flex aspect-square w-full min-h-0 items-center justify-center overflow-hidden bg-ecsess-700"
|
||||
class="bg-ecsess-700 relative flex aspect-square min-h-0 w-full items-center justify-center overflow-hidden"
|
||||
>
|
||||
{#if tag}
|
||||
<span
|
||||
class="absolute right-2 top-2 z-[1] rounded-md bg-ecsess-600 px-2 py-1 text-xs font-semibold uppercase tracking-wide text-ecsess-50 shadow-md ring-1 ring-ecsess-400/60"
|
||||
class="bg-ecsess-600 text-ecsess-50 ring-ecsess-400/60 absolute top-2 right-2 z-[1] rounded-md px-2 py-1 text-xs font-semibold tracking-wide uppercase shadow-md ring-1"
|
||||
>
|
||||
{tag}
|
||||
</span>
|
||||
@@ -32,20 +32,20 @@
|
||||
onerror={handleImageError}
|
||||
/>
|
||||
{:else}
|
||||
<span class="text-4xl font-bold text-ecsess-150 sm:text-5xl" aria-hidden="true">
|
||||
<span class="text-ecsess-150 text-4xl font-bold sm:text-5xl" aria-hidden="true">
|
||||
{getInitials(name)}
|
||||
</span>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="flex flex-col items-center justify-center gap-2 p-3 text-center sm:p-4">
|
||||
<h3 class="w-full text-base font-bold leading-tight text-ecsess-50 line-clamp-2 sm:text-lg">
|
||||
<h3 class="text-ecsess-50 line-clamp-2 w-full text-base leading-tight font-bold sm:text-lg">
|
||||
{name}
|
||||
</h3>
|
||||
<p class="w-full text-xs italic text-ecsess-200 line-clamp-2 sm:text-sm">{position}</p>
|
||||
<p class="text-ecsess-200 line-clamp-2 w-full text-xs italic sm:text-sm">{position}</p>
|
||||
<button
|
||||
type="button"
|
||||
onclick={onViewProfile}
|
||||
class="mt-1 w-full rounded-lg bg-ecsess-500 px-3 py-2 text-xs font-semibold text-ecsess-950 shadow-md transition hover:bg-ecsess-400 hover:text-ecsess-50 focus:outline-none focus:ring-2 focus:ring-ecsess-300 focus:ring-offset-2 focus:ring-offset-ecsess-800 sm:text-sm"
|
||||
class="bg-ecsess-500 text-ecsess-950 hover:bg-ecsess-400 hover:text-ecsess-50 focus:ring-ecsess-300 focus:ring-offset-ecsess-800 mt-1 w-full rounded-lg px-3 py-2 text-xs font-semibold shadow-md transition focus:ring-2 focus:ring-offset-2 focus:outline-none sm:text-sm"
|
||||
>
|
||||
View profile
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user