Pagination page
by Imri Paloja
HTML
<script src="https://cdn.tailwindcss.com"></script>
<div class="bg-eb-dark p-4">
<div
class="flex items-center justify-between border-t border-white/10 px-4 py-3 sm:px-6"
>
<div class="flex flex-1 justify-between sm:hidden">
<a
href="#"
class="relative inline-flex items-center rounded-md border border-white/10 bg-white/5 px-4 py-2 text-sm font-medium text-gray-200 hover:bg-white/10"
>Previous</a
>
<a
href="#"
class="relative ml-3 inline-flex items-center rounded-md border border-white/10 bg-white/5 px-4 py-2 text-sm font-medium text-gray-200 hover:bg-white/10"
>Next</a
>
</div>
<div class="hidden sm:flex sm:flex-1 sm:items-center sm:justify-between">
<div>
<p class="text-sm text-gray-300">
Showing
<span class="font-medium">1</span>
to
<span class="font-medium">10</span>
of
<span class="font-medium">97</span>
results
</p>
</div>
<div>
<nav
aria-label="Pagination"
class="isolate inline-flex -space-x-px rounded-md"
>
<a
href="#"
class="relative inline-flex items-center rounded-l-md px-2 py-2 text-gray-400 inset-ring inset-ring-gray-700 hover:bg-white/5 focus:z-20 focus:outline-offset-0"
>
<span class="sr-only">Previous</span>
<svg
viewBox="0 0 20 20"
fill="currentColor"
data-slot="icon"
aria-hidden="true"
class="size-5"
>
<path
d="M11.78 5.22a.75.75 0 0 1 0 1.06L8.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z"
clip-rule="evenodd"
fill-rule="evenodd"
/>
</svg>
</a>
<!-- Current:...
Tailwind CSS
textarea {
min-width: 250px;
width: 450px;
max-width: 100%;
min-height: 250px;
height: 100%;
max-height: 450px;
}
JavaScript
tailwind.config = {
theme: {
extend: {
colors: {
'eb-red': '#e60000',
'eb-dark': '#1b1e1f',
'eb-gray': '#181a1b',
},
fontFamily: {
sans: ['Inter', 'sans-serif'],
},
},
},
}