Skip to content

Commit ee177ac

Browse files
authored
Update index.html
1 parent f22167e commit ee177ac

File tree

1 file changed

+47
-100
lines changed

1 file changed

+47
-100
lines changed

index.html

Lines changed: 47 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -388,60 +388,70 @@
388388
margin-bottom: 1.5em;
389389
}
390390

391-
/* ===== Reduce spacing inside Diamond carousel ===== */
392-
#diamond-sponsor-wrapper{
393-
max-width: 1100px; /* 可按需调:1000~1200 */
394-
margin: 10px auto; /* 上下更紧 */
395-
padding: 0 10px;
396-
}
391+
/* =========================
392+
Sponsors: show ALL cards (no carousel)
393+
========================= */
397394

398-
#diamond-sponsor-carousel .owl-stage{
399-
display: flex;
395+
/* Common: remove slide padding/margins that were for carousel */
396+
#diamond-sponsor-carousel .diamond-slide,
397+
#gold-sponsor-carousel .gold-slide{
398+
padding: 0;
399+
box-sizing: border-box;
400400
}
401401

402-
#diamond-sponsor-carousel .owl-item{
403-
display: flex;
402+
/* Keep wrappers but make them simple containers */
403+
#diamond-sponsor-wrapper,
404+
#gold-sponsor-wrapper{
405+
max-width: 1200px;
406+
margin: 20px auto;
407+
padding: 0 10px;
404408
}
405409

406-
#diamond-sponsor-carousel .diamond-slide{
407-
width: 100%;
408-
padding: 0 6px; /* 左右内边距,控制两卡之间的“视觉间距” */
409-
box-sizing: border-box;
410+
/* ===== Diamond: always show 3 cards on desktop ===== */
411+
#diamond-sponsor-carousel{
412+
display: grid;
413+
grid-template-columns: repeat(3, minmax(0, 1fr));
414+
gap: 16px;
415+
align-items: stretch;
410416
}
411417

412-
#diamond-sponsor-carousel .diamond-slide .sponsor-card{
413-
width: 100%;
414-
max-width: none; /* 关键:不要 480px 限制 */
415-
margin: 0; /* 关键:不要 auto 居中 */
416-
}
417-
418-
/* ===== Reduce spacing inside Gold carousel ===== */
419-
#gold-sponsor-wrapper{
420-
max-width: 1200px; /* 可调:1100~1300 */
421-
margin: 10px auto;
422-
padding: 0 10px;
418+
/* Tablet: 2 columns */
419+
@media (max-width: 1024px){
420+
#diamond-sponsor-carousel{
421+
grid-template-columns: repeat(2, minmax(0, 1fr));
422+
}
423423
}
424424

425-
#gold-sponsor-carousel .owl-stage{
426-
display: flex;
425+
/* Mobile: 1 column */
426+
@media (max-width: 700px){
427+
#diamond-sponsor-carousel{
428+
grid-template-columns: 1fr;
429+
}
427430
}
428431

429-
#gold-sponsor-carousel .owl-item{
430-
display: flex;
432+
/* ===== Gold: show all cards; 2 columns on desktop, 1 column on small screens ===== */
433+
#gold-sponsor-carousel{
434+
display: grid;
435+
grid-template-columns: repeat(2, minmax(0, 1fr));
436+
gap: 16px;
437+
align-items: stretch;
431438
}
432439

433-
#gold-sponsor-carousel .gold-slide{
434-
width: 100%;
435-
padding: 0 6px;
436-
box-sizing: border-box;
440+
@media (max-width: 1024px){
441+
#gold-sponsor-carousel{
442+
grid-template-columns: 1fr;
443+
}
437444
}
438445

439-
#gold-sponsor-carousel .gold-slide .sponsor-card{
446+
/* Make sponsor cards fill the grid cell nicely */
447+
#diamond-sponsor-carousel .sponsor-card,
448+
#gold-sponsor-carousel .sponsor-card{
440449
width: 100%;
441-
max-width: none; /* 关键:别限制 480 */
442-
margin: 0; /* 关键:别 auto 居中 */
450+
max-width: none;
451+
margin: 0;
443452
}
444453

454+
445455
/* ===== AMIA-like Sponsors page text ===== */
446456
.sponsors-intro{
447457
font-size: 18px;
@@ -2014,68 +2024,5 @@ <h3 style="font-size: 22px; color:#fff; margin:0;">
20142024
}
20152025
</script>
20162026

2017-
<script>
2018-
jQuery(document).ready(function($){
2019-
var $diamond = $('#diamond-sponsor-carousel');
2020-
if (!$diamond.length) return;
2021-
2022-
var slideCount = $diamond.children('.diamond-slide').length;
2023-
if (slideCount <= 1) return;
2024-
2025-
$diamond.addClass('owl-carousel');
2026-
if ($diamond.hasClass('owl-loaded')) return;
2027-
2028-
$diamond.owlCarousel({
2029-
margin: 12,
2030-
nav: true,
2031-
dots: true,
2032-
navText: ['&#10094;','&#10095;'],
2033-
smartSpeed: 600,
2034-
autoplay: true, // ✅ 全局开启(手机/电脑都动)
2035-
autoplayHoverPause: true,
2036-
autoplayTimeout: 4000,
2037-
loop: (slideCount > 1),
2038-
2039-
responsive: {
2040-
0: { items: 1 },
2041-
768: { items: 1 },
2042-
1024:{ items: 2 }
2043-
}
2044-
});
2045-
});
2046-
</script>
2047-
2048-
<script>
2049-
jQuery(document).ready(function($){
2050-
var $gold = $('#gold-sponsor-carousel');
2051-
if (!$gold.length) return;
2052-
2053-
var slideCount = $gold.children('.gold-slide').length;
2054-
if (slideCount <= 1) return;
2055-
2056-
$gold.addClass('owl-carousel');
2057-
if ($gold.hasClass('owl-loaded')) return;
2058-
2059-
$gold.owlCarousel({
2060-
margin: 12,
2061-
nav: true,
2062-
dots: true,
2063-
navText: ['&#10094;','&#10095;'],
2064-
smartSpeed: 600,
2065-
autoplay: true,
2066-
autoplayHoverPause: true,
2067-
autoplayTimeout: 4000,
2068-
loop: (slideCount > 1),
2069-
2070-
responsive: {
2071-
0: { items: 1 },
2072-
768: { items: 1 },
2073-
1024:{ items: 2 }
2074-
}
2075-
});
2076-
});
2077-
</script>
2078-
2079-
2080-
</body>
2027+
</body>
20812028
</html>

0 commit comments

Comments
 (0)