style: update leaderboard pagination button styles

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-05 19:24:53 +08:00
1 parent 096d0e6900
commit c9ab9cecda
1 file changed
+3 -3
+3 -3
View File
@@ -97,15 +97,15 @@
<!-- Pagination Controls -->
<div class="flex justify-center font-action mt-4">
{% if current_page > 1 %}
<a href="?page={{ current_page | minus: 1 }}" class="px-4 py-2 mx-1 bg-transparent border border-gray-300 text-gray-700 rounded-md hover:bg-gray-100">Previous</a>
<a href="?page={{ current_page | minus: 1 }}" class="px-4 py-2 mx-1 bg-transparent border-2 border-primary text-gray-700 rounded-md hover:bg-gray-100">Previous</a>
{% endif %}
{% for i in (1..total_pages) %}
<a href="?page={{ i }}" class="px-4 py-2 mx-1 {% if i == current_page %}bg-primary text-white{% else %}bg-transparent border border-gray-300 text-gray-700{% endif %} rounded-md hover:bg-gray-100">{{ i }}</a>
<a href="?page={{ i }}" class="px-4 py-2 mx-1 {% if i == current_page %}bg-primary text-white{% else %}bg-transparent border-2 border-primary text-gray-700{% endif %} rounded-md hover:bg-gray-100">{{ i }}</a>
{% endfor %}
{% if current_page < total_pages %}
<a href="?page={{ current_page | plus: 1 }}" class="px-4 py-2 mx-1 bg-transparent border border-gray-300 text-gray-700 rounded-md hover:bg-gray-100">Next</a>
<a href="?page={{ current_page | plus: 1 }}" class="px-4 py-2 mx-1 bg-transparent border-2 border-primary text-gray-700 rounded-md hover:bg-gray-100">Next</a>
{% endif %}
</div>
</div>