index.html

20.10 KB
10/07/2025 13:52
HTML
<!DOCTYPE html>
<html lang="th">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>กรมการปกครองท้องถิ่น - กระทรวงมหาดไทย</title>
  <!-- Google Fonts: Prompt (ไทย), Mitr (ไทย) -->
  <link href="https://fonts.googleapis.com/css2?family=Mitr:wght@400;700&family=Prompt:wght@400;700&display=swap" rel="stylesheet">
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Prompt', 'Mitr', 'Sarabun', Arial, sans-serif;
      line-height: 1.6;
      color: #333;
      background-color: #f8f9fa;
    }

    /* Header */
    .header {
      background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
      color: white;
      padding: 1rem 0;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .header-top {
      background: #0d47a1;
      color: white;
      padding: 0.5rem 0;
      font-size: 0.9rem;
    }

    .header-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .logo-section {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .logo {
      width: 80px;
      height: 80px;
      background: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      color: #1e3c72;
      font-weight: bold;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(30, 60, 114, 0.15);
    }

    .logo img {
      width: 70px;
      height: 70px;
      object-fit: contain;
      border-radius: 50%;
    }

    .title-section h1 {
      font-size: 1.8rem;
      margin-bottom: 0.25rem;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    .title-section p {
      font-size: 1rem;
      opacity: 0.9;
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .thai-flag {
      width: 60px;
      height: 40px;
      background: linear-gradient(to bottom, #ed1c24 0%, #ed1c24 20%, #ffffff 20%, #ffffff 40%, #2e3192 40%, #2e3192 60%, #ffffff 60%, #ffffff 80%, #ed1c24 80%, #ed1c24 100%);
      border: 1px solid #ddd;
      border-radius: 3px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    /* Navigation */
    .nav {
      background: #fff;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    .nav-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .nav-menu {
      display: flex;
      list-style: none;
      gap: 2rem;
    }

    .nav-menu li {
      position: relative;
    }

    .nav-menu a {
      display: block;
      padding: 1rem 0;
      color: #333;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.3s ease;
    }

    .nav-menu a:hover {
      color: #1e3c72;
    }

    .nav-menu a.active {
      color: #1e3c72;
      border-bottom: 3px solid #1e3c72;
    }

    /* Main Content */
    .main-container {
      max-width: 1200px;
      margin: 2rem auto;
      padding: 0 2rem;
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 2rem;
    }

    .content {
      background: white;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }

    /* Hero Section */
    .hero {
      background: linear-gradient(rgba(30, 60, 114, 0.8), rgba(30, 60, 114, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%234a90e2" width="1200" height="400"/><polygon fill="%23ffffff" fill-opacity="0.1" points="0,400 1200,300 1200,400"/></svg>');
      background-size: cover;
      color: white;
      padding: 3rem 2rem;
      text-align: center;
    }

    .hero h2 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero p {
      font-size: 1.2rem;
      margin-bottom: 2rem;
      opacity: 0.9;
    }

    .cta-button {
      background: #ff6b35;
      color: white;
      padding: 1rem 2rem;
      border: none;
      border-radius: 25px;
      font-size: 1.1rem;
      font-weight: bold;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }

    .cta-button:hover {
      background: #e55a2b;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    }

    /* Content Sections */
    .content-section {
      padding: 2rem;
    }

    .section-title {
      color: #1e3c72;
      font-size: 1.5rem;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid #e0e0e0;
    }

    .news-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      margin-top: 1.5rem;
    }

    .news-card {
      background: white;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
    }

    .news-card:hover {
      transform: translateY(-5px);
    }

    .news-image {
      width: 100%;
      height: 150px;
      background: linear-gradient(45deg, #4a90e2, #7bb3f0);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.2rem;
    }

    .news-content {
      padding: 1rem;
    }

    .news-title {
      font-weight: bold;
      color: #1e3c72;
      margin-bottom: 0.5rem;
    }

    .news-date {
      color: #666;
      font-size: 0.9rem;
      margin-bottom: 0.5rem;
    }

    .news-excerpt {
      color: #555;
      line-height: 1.5;
    }

    /* Sidebar */
    .sidebar {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .sidebar-widget {
      background: white;
      border-radius: 8px;
      padding: 1.5rem;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .widget-title {
      color: #1e3c72;
      font-size: 1.2rem;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid #e0e0e0;
    }

    .quick-links {
      list-style: none;
    }

    .quick-links li {
      padding: 0.5rem 0;
      border-bottom: 1px solid #f0f0f0;
    }

    .quick-links li:last-child {
      border-bottom: none;
    }

    .quick-links a {
      color: #333;
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .quick-links a:hover {
      color: #1e3c72;
    }

    .contact-info {
      background: #f8f9fa;
      padding: 1rem;
      border-radius: 5px;
      margin-top: 1rem;
    }

    .contact-info p {
      margin-bottom: 0.5rem;
    }

    .contact-info strong {
      color: #1e3c72;
    }

    /* Footer */
    .footer {
      background: #1e3c72;
      color: white;
      padding: 2rem 0;
      margin-top: 3rem;
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
    }

    .footer-section h3 {
      margin-bottom: 1rem;
      color: #fff;
    }

    .footer-section ul {
      list-style: none;
    }

    .footer-section ul li {
      padding: 0.25rem 0;
    }

    .footer-section a {
      color: #ccc;
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .footer-section a:hover {
      color: white;
    }

    .footer-bottom {
      text-align: center;
      padding-top: 2rem;
      border-top: 1px solid #2a5298;
      color: #ccc;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .main-container {
        grid-template-columns: 1fr;
      }

      .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
      }

      .nav-menu {
        flex-direction: column;
        gap: 0;
      }

      .hero h2 {
        font-size: 2rem;
      }

      .title-section h1 {
        font-size: 1.5rem;
      }
    }
  </style>
</head>

<body>
  <!-- Header Top -->
  <div class="header-top">
    <div class="header-content">
      <div>เว็บไซต์ราชการ | ติดต่อเรา | แผนที่เว็บไซต์</div>
      <div>วันที่ 10 กรกฎาคม 2568</div>
    </div>
  </div>

  <!-- Main Header -->
  <header class="header">
    <div class="header-content">
      <div class="logo-section">
        <div class="logo">
          <img src="https://upload.wikimedia.org/wikipedia/commons/6/6b/Seal_of_the_Ministry_of_Interior_of_Thailand.svg" alt="DLA Logo" />
        </div>
        <div class="title-section">
          <h1>กรมการปกครองท้องถิ่น</h1>
          <p>Department of Local Administration</p>
        </div>
      </div>
      <div class="header-right">
        <div class="thai-flag"></div>
      </div>
    </div>
  </header>

  <!-- Navigation -->
  <nav class="nav">
    <div class="nav-content">
      <ul class="nav-menu">
        <li><a href="#" class="active">หน้าแรก</a></li>
        <li><a href="#">เกี่ยวกับเรา</a></li>
        <li><a href="#">ข่าวสาร</a></li>
        <li><a href="#">บริการ</a></li>
        <li><a href="#">กฎหมาย</a></li>
        <li><a href="#">ดาวน์โหลด</a></li>
        <li><a href="#">ติดต่อเรา</a></li>
      </ul>
    </div>
  </nav>

  <!-- Main Container -->
  <div class="main-container">
    <main class="content">
      <!-- Hero Section -->
      <section class="hero">
        <h2>ยินดีต้อนรับสู่กรมการปกครองท้องถิ่น</h2>
        <p>พัฒนาการปกครองท้องถิ่นให้เข้มแข็ง เพื่อประชาชนและประเทศชาติ</p>
        <a href="#" class="cta-button">เริ่มใช้บริการ</a>
      </section>

      <!-- News Section -->
      <section class="content-section">
        <h2 class="section-title">ข่าวสาร</h2>
        <div class="news-grid">
          <article class="news-card">
            <div class="news-image">
              <img src="https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=400&q=80" alt="news1" style="width:100%;height:100%;object-fit:cover;" />
            </div>
            <div class="news-content">
              <h3 class="news-title">ประกาศแนวทางการดำเนินงานปี 2568</h3>
              <p class="news-date">8 กรกฎาคม 2568</p>
              <p class="news-excerpt">กรมการปกครองท้องถิ่น ประกาศแนวทางการดำเนินงานในปี 2568 เพื่อเสริมสร้างการปกครองท้องถิ่นให้เข้มแข็ง...</p>
            </div>
          </article>

          <article class="news-card">
            <div class="news-image">
              <img src="https://images.unsplash.com/photo-1464983953574-0892a716854b?auto=format&fit=crop&w=400&q=80" alt="news2" style="width:100%;height:100%;object-fit:cover;" />
            </div>
            <div class="news-content">
              <h3 class="news-title">การอบรมเชิงปฏิบัติการ</h3>
              <p class="news-date">5 กรกฎาคม 2568</p>
              <p class="news-excerpt">จัดการอบรมเชิงปฏิบัติการเพื่อพัฒนาศักยภาพบุคลากรองค์กรปกครองส่วนท้องถิ่น...</p>
            </div>
          </article>

          <article class="news-card">
            <div class="news-image">
              <img src="https://images.unsplash.com/photo-1503676382389-4809596d5290?auto=format&fit=crop&w=400&q=80" alt="news3" style="width:100%;height:100%;object-fit:cover;" />
            </div>
            <div class="news-content">
              <h3 class="news-title">รายงานผลการดำเนินงาน Q2</h3>
              <p class="news-date">3 กรกฎาคม 2568</p>
              <p class="news-excerpt">เผยแพร่รายงานผลการดำเนินงานไตรมาสที่ 2 ประจำปี 2568 พร้อมแผนการพัฒนาต่อเนื่อง...</p>
            </div>
          </article>
        </div>
      </section>

      <!-- Services Section -->
      <section class="content-section">
        <h2 class="section-title">บริการออนไลน์</h2>
        <div class="news-grid">
          <div class="news-card">
            <div class="news-image">
              <img src="https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=400&q=80" alt="service1" style="width:100%;height:100%;object-fit:cover;" />
            </div>
            <div class="news-content">
              <h3 class="news-title">ระบบสารสนเทศ</h3>
              <p class="news-excerpt">เข้าถึงระบบสารสนเทศเพื่อติดตามข้อมูลและสถิติต่างๆ ขององค์กรปกครองส่วนท้องถิ่น</p>
            </div>
          </div>

          <div class="news-card">
            <div class="news-image">
              <img src="https://images.unsplash.com/photo-1465101046530-73398c7f28ca?auto=format&fit=crop&w=400&q=80" alt="service2" style="width:100%;height:100%;object-fit:cover;" />
            </div>
            <div class="news-content">
              <h3 class="news-title">ดาวน์โหลดเอกสาร</h3>
              <p class="news-excerpt">ดาวน์โหลดแบบฟอร์ม คู่มือ และเอกสารต่างๆ ที่จำเป็นสำหรับการปฏิบัติงาน</p>
            </div>
          </div>

          <div class="news-card">
            <div class="news-image">
              <img src="https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=400&q=80" alt="service3" style="width:100%;height:100%;object-fit:cover;" />
            </div>
            <div class="news-content">
              <h3 class="news-title">ถาม-ตอบ</h3>
              <p class="news-excerpt">ระบบถาม-ตอบออนไลน์ สำหรับการให้คำปรึกษาและแนะนำในการปฏิบัติงาน</p>
            </div>
          </div>
        </div>
      </section>
    </main>

    <!-- Sidebar -->
    <aside class="sidebar">
      <div class="sidebar-widget">
        <h3 class="widget-title">ลิงก์ด่วน</h3>
        <ul class="quick-links">
          <li><a href="#">ระบบสารสนเทศ</a></li>
          <li><a href="#">ดาวน์โหลดเอกสาร</a></li>
          <li><a href="#">คู่มือการปฏิบัติงาน</a></li>
          <li><a href="#">ข้อมูลสถิติ</a></li>
          <li><a href="#">ประกาศต่างๆ</a></li>
          <li><a href="#">แบบฟอร์ม</a></li>
          <li><a href="#">ติดต่อเรา</a></li>
        </ul>
      </div>

      <div class="sidebar-widget">
        <h3 class="widget-title">ข้อมูลติดต่อ</h3>
        <div class="contact-info">
          <p><strong>ที่อยู่:</strong> 123 ถนนราชดำเนิน เขตพระนคร กรุงเทพมหานคร 10200</p>
          <p><strong>โทรศัพท์:</strong> 02-123-4567</p>
          <p><strong>โทรสาร:</strong> 02-123-4568</p>
          <p><strong>อีเมล:</strong> info@dla.go.th</p>
        </div>
      </div>

      <div class="sidebar-widget">
        <h3 class="widget-title">สถิติผู้เข้าชม</h3>
        <div class="contact-info">
          <p><strong>วันนี้:</strong> 1,234 คน</p>
          <p><strong>เมื่อวาน:</strong> 2,456 คน</p>
          <p><strong>รวมทั้งหมด:</strong> 987,654 คน</p>
        </div>
      </div>
    </aside>
  </div>

  <!-- Footer -->
  <footer class="footer">
    <div class="footer-content">
      <div class="footer-section">
        <h3>เกี่ยวกับเรา</h3>
        <ul>
          <li><a href="#">วิสัยทัศน์</a></li>
          <li><a href="#">พันธกิจ</a></li>
          <li><a href="#">โครงสร้างองค์กร</a></li>
          <li><a href="#">ประวัติความเป็นมา</a></li>
        </ul>
      </div>
      <div class="footer-section">
        <h3>บริการ</h3>
        <ul>
          <li><a href="#">ระบบสารสนเทศ</a></li>
          <li><a href="#">ดาวน์โหลดเอกสาร</a></li>
          <li><a href="#">คู่มือการปฏิบัติงาน</a></li>
          <li><a href="#">ข้อมูลสถิติ</a></li>
        </ul>
      </div>
      <div class="footer-section">
        <h3>ติดต่อเรา</h3>
        <ul>
          <li><a href="#">แผนที่</a></li>
          <li><a href="#">ช่องทางการติดต่อ</a></li>
          <li><a href="#">แบบฟอร์มติดต่อ</a></li>
          <li><a href="#">คำถามที่พบบ่อย</a></li>
        </ul>
      </div>
      <div class="footer-section">
        <h3>กฎหมาย</h3>
        <ul>
          <li><a href="#">พระราชบัญญัติ</a></li>
          <li><a href="#">ระเบียบข้อบังคับ</a></li>
          <li><a href="#">ประกาศกระทรวง</a></li>
          <li><a href="#">หนังสือเวียน</a></li>
        </ul>
      </div>
    </div>
    <div class="footer-bottom">
      <p>&copy; 2568 กรมการปกครองท้องถิ่น กระทรวงมหาดไทย | สงวนลิขสิทธิ์</p>
    </div>
  </footer>

  <script>
    // Simple interactive features
    document.addEventListener('DOMContentLoaded', function() {
      // Smooth scrolling for navigation links
      const navLinks = document.querySelectorAll('.nav-menu a');
      navLinks.forEach(link => {
        link.addEventListener('click', function(e) {
          // Remove active class from all links
          navLinks.forEach(l => l.classList.remove('active'));
          // Add active class to clicked link
          this.classList.add('active');
        });
      });

      // Add hover effect to news cards
      const newsCards = document.querySelectorAll('.news-card');
      newsCards.forEach(card => {
        card.addEventListener('mouseenter', function() {
          this.style.transform = 'translateY(-5px)';
          this.style.boxShadow = '0 10px 25px rgba(0,0,0,0.15)';
        });

        card.addEventListener('mouseleave', function() {
          this.style.transform = 'translateY(0)';
          this.style.boxShadow = '0 2px 10px rgba(0,0,0,0.1)';
        });
      });

      // Simple animation for hero section
      const hero = document.querySelector('.hero');
      if (hero) {
        setTimeout(() => {
          hero.style.opacity = '1';
          hero.style.transform = 'translateY(0)';
        }, 100);
      }

      // Update visitor counter (simulation)
      let visitorCount = 987654;
      const visitorElement = document.querySelector('.contact-info p:last-child');
      if (visitorElement) {
        setInterval(() => {
          visitorCount++;
          visitorElement.innerHTML = `<strong>รวมทั้งหมด:</strong> ${visitorCount.toLocaleString()} คน`;
        }, 30000); // Update every 30 seconds
      }
    });
  </script>
</body>

</html>