1+ < section id ="sponsors " class ="bg-green-light py-16 ">
2+ < div class ="max-w-7xl mx-auto px-6 ">
3+ <!-- Section Title -->
4+ < div class ="text-center mb-12 ">
5+ < h2 class ="text-4xl md:text-5xl font-bold text-blue-normal mb-4 "> Partners</ h2 >
6+ < div class ="w-24 h-1 bg-red-normal mx-auto "> </ div >
7+ </ div >
8+
9+ {% if site.data.sponsor %}
10+ <!-- Speaker Sponsors -->
11+ {% assign speaker_sponsors = site.data.sponsor | where: "type", "speaker" %}
12+ {% if speaker_sponsors.size > 0 %}
13+ < div class ="mb-12 ">
14+ < h3 class ="text-2xl md:text-3xl font-bold text-blue-normal text-center mb-8 "> Speaker Supporters</ h3 >
15+ < div class ="grid grid-cols-1 md:grid-cols-2 {% if speaker_sponsors.size == 1 %}lg:grid-cols-1{% elsif speaker_sponsors.size <= 2 %}lg:grid-cols-2{% else %}lg:grid-cols-3{% endif %} gap-8 items-center justify-items-center ">
16+ {% for sponsor in speaker_sponsors %}
17+ < div class ="group w-full max-w-sm ">
18+ < a href ="{{ sponsor.url }} " target ="_blank " title ="{{ sponsor.name }} " class ="flex items-center justify-center w-full h-32 px-8 py-6 bg-white rounded-lg hover:bg-white-100 transition-colors shadow-md hover:shadow-lg ">
19+ < img
20+ src ="/assets/images/{{ sponsor.logo }} "
21+ alt ="{{ sponsor.name }} "
22+ class ="max-w-full max-h-24 object-contain transition-transform group-hover:scale-105 "
23+ />
24+ </ a >
25+ </ div >
26+ {% endfor %}
27+ </ div >
28+ </ div >
29+ {% endif %}
30+
31+ <!-- Special Sponsors -->
32+ {% assign special_sponsors = site.data.sponsor | where: "type", "special" %}
33+ {% if special_sponsors.size > 0 %}
34+ < div class ="mb-12 ">
35+ < h3 class ="text-2xl md:text-3xl font-bold text-blue-normal text-center mb-8 "> Special Thanks</ h3 >
36+ < div class ="grid grid-cols-1 md:grid-cols-2 {% if special_sponsors.size == 1 %}lg:grid-cols-1{% elsif special_sponsors.size <= 2 %}lg:grid-cols-2{% else %}lg:grid-cols-3{% endif %} gap-8 items-center justify-items-center ">
37+ {% for sponsor in special_sponsors %}
38+ < div class ="group w-full max-w-sm ">
39+ < a href ="{{ sponsor.url }} " target ="_blank " title ="{{ sponsor.name }} " class ="flex items-center justify-center w-full h-32 px-8 py-6 bg-white rounded-lg hover:bg-white-100 transition-colors shadow-md hover:shadow-lg ">
40+ < img
41+ src ="/assets/images/{{ sponsor.logo }} "
42+ alt ="{{ sponsor.name }} "
43+ class ="max-w-full max-h-24 object-contain transition-transform group-hover:scale-105 "
44+ />
45+ </ a >
46+ </ div >
47+ {% endfor %}
48+ </ div >
49+ </ div >
50+ {% endif %}
51+ {% endif %}
52+
53+ </ div >
54+ </ section >
0 commit comments