123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <?php
- // 轮播图数据 - 修改为单张图片
- $carouselItems = [
- [
- "image" => "/images/test-header-6.png",
- "alt" => "鹭岛文脉"
- ]
- ];
- // 鹭岛文脉数据
- $luDaoItems = [
- [
- "image" => "/images/test-header-1.png",
- "alt" => "传统工艺展示",
- "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知"
- ],
- [
- "image" => "/images/test-header-2.png",
- "alt" => "古建筑保护",
- "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知"
- ],
- [
- "image" => "/images/test-header-3.png",
- "alt" => "非遗传承人采访",
- "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知"
- ],
- [
- "image" => "/images/test-header-4.png",
- "alt" => "文化遗产展览",
- "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知"
- ],
- [
- "image" => "/images/test-header-6.png",
- "alt" => "民俗活动",
- "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知"
- ],
- [
- "image" => "/images/test-header-7.png",
- "alt" => "历史街区改造",
- "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知"
- ]
- ];
- ?>
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>厦门市文化遗产保护中心 - 鹭岛文脉</title>
- <link rel="stylesheet" href="/css/fonts.css">
- <link rel="stylesheet" href="/css/fontawesome.min.css">
- <link rel="stylesheet" href="/css/bootstrap.min.css">
- <link rel="stylesheet" href="/css/swiper-bundle.min.css">
- <link rel="stylesheet" href="/css/style.css">
- <script src="/js/jquery-3.7.1.js"></script>
- <script src="/js/bootstrap.bundle.js"></script>
- <script src="/js/swiper-bundle.min.js"></script>
- </head>
- <body>
- <?php include __DIR__ . '/components/navbar.php'; ?>
- <!-- 轮播图 -->
- <div class="swiper mySwiper" style="width: 100%; height: 400px;">
- <div class="swiper-wrapper">
- <?php foreach ($carouselItems as $item): ?>
- <div class="swiper-slide">
- <img src="<?php echo $item['image']; ?>" alt="<?php echo $item['alt']; ?>" style="width: 100%; height: 100%; object-fit: cover;">
- </div>
- <?php endforeach; ?>
- </div>
- <div class="swiper-pagination"></div>
- <div class="swiper-button-prev"></div>
- <div class="swiper-button-next"></div>
- </div>
- <!-- 主要内容 -->
- <div class="main-content">
- <div class="container">
- <div class="content">
-
- <!-- 精彩推荐网格布局 -->
- <div class="featured-section">
- <div class="section-title center large">
- <h2 class="icon">鹭岛文脉</h2>
- </div>
- <div class="featured-grid">
- <?php foreach ($luDaoItems as $item): ?>
- <div class="featured-card">
- <img src="<?php echo $item['image']; ?>" alt="<?php echo $item['alt']; ?>">
- <p><?php echo $item['title']; ?></p>
- </div>
- <?php endforeach; ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php include __DIR__ . '/components/footer.php'; ?>
- <script>
- $(document).ready(function() {
- // 初始化 Swiper
- const swiper = new Swiper(".mySwiper", {
- slidesPerView: 1,
- spaceBetween: 30,
- loop: true,
- pagination: {
- el: ".swiper-pagination",
- clickable: true,
- },
- navigation: {
- nextEl: ".swiper-button-next",
- prevEl: ".swiper-button-prev",
- },
- autoplay: {
- delay: 5000,
- disableOnInteraction: false,
- },
- });
-
- });
- </script>
- </body>
- </html>
|