Skip to content

Commit 1e876db

Browse files
anistarkpalnabarun
authored andcommitted
fix: sponsor boxe aspect ratio for responsiveness
1 parent 27b7ab1 commit 1e876db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/_includes/landing/sponsors.njk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
<div class="bg-white inline-block px-4 sm:px-8 py-2 font-bold text-base sm:text-lg shadow uppercase">
3232
{{ tier.title }}
3333
</div>
34-
<div class="grid grid-cols-4 bg-transparent overflow-x-auto">
34+
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 bg-transparent">
3535
{% for company in tier.companies %}
36-
<div class="h-16 sm:h-20 bg-white border border-gray-300 flex items-center justify-center min-w-24">
37-
<a href="{{ company.link }}" target="_blank" rel="noopener noreferrer">
38-
<img src="{{ env.baseUrl }}{{ company.logo }}" alt="{{ company.name }} - {{ company.description }}" class="h-full object-contain p-2">
36+
<div class="aspect-[3/2] bg-white border border-gray-300 flex items-center justify-center p-4">
37+
<a href="{{ company.link }}" target="_blank" rel="noopener noreferrer" class="w-full h-full flex items-center justify-center">
38+
<img src="{{ env.baseUrl }}{{ company.logo }}" alt="{{ company.name }} - {{ company.description }}" class="max-w-full max-h-full object-contain">
3939
</a>
4040
</div>
4141
{% endfor %}

0 commit comments

Comments
 (0)