สวัสดีครับ ในบทความนี้ผมจะแจกเทมเพลตเว็บไซต์โรงเรียน สถาบันการศึกษา Gen Code ด้วย ChatGPT  ลองเอาไปศึกษาและพัฒนาต่อยอดนะครับ
 โปรโมชั่นพิเศษ ลดสูงสุด 80%!
ขาย Source Code พร้อมใช้งาน นำไปต่อยอดได้ทันที
ดูสินค้าทั้งหมด ได้ที่ : https://devbanban.com/?p=4425
ซื้อแล้วปรึกษาได้ตลอด
สนใจติดต่อ inbox ที่แฟนเพจ
☎️ โทร: 094-861-6709
Line OA : https://lin.ee/v8VwivgC
- รวมคลิปสอน PHP PDO MySQL (ฟรีคอร์ส) เข้าเรียน คลิก
- รวมคลิปสอน Laravel v.12 (ฟรีคอร์ส) เข้าเรียน คลิก
ภาพการทำงาน คลิก
ขอแนะนำระบบหอพัก สวย น่าใช้ ราคาเบาๆ
รายละเอียดเพิ่มเติม คลิก
ระบบสอบออนไลน์
รายละเอียดเพิ่มเติม คลิก.
1. Full Code สามารถ save เป็นไฟล์ .html และ run ได้เลยครับ เช่น สร้างโฟลเดอร์ template/index.html
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 | <!doctype html> <html lang="th"> <head>   <meta charset="utf-8" />   <meta name="viewport" content="width=device-width, initial-scale=1" />   <title>โรงเรียนตัวอย่าง — Single Page</title>   <meta name="description" content="โครงหน้าเว็บไซต์โรงเรียนแบบหน้าเดียว สวย ทันสมัย ตอบสนองทุกอุปกรณ์" />   <link rel="preconnect" href="https://fonts.googleapis.com">   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>   <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;700;900&display=swap" rel="stylesheet">   <link rel="stylesheet" href="style.css"> </head> <body>   <!-- Header -->   <header>     <div class="container nav" role="navigation" aria-label="เมนูหลัก">       <a href="#home" class="logo" aria-label="ไปหน้าแรก">         <span class="logo-mark" aria-hidden="true">           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 10l9-7 9 7"/><path d="M9 22V12h6v10"/></svg>         </span>         <span>โรงเรียนตัวอย่าง</span>       </a>       <nav class="nav-links" aria-label="ลิงก์นำทาง">         <a href="#about">เกี่ยวกับ</a>         <a href="#programs">หลักสูตร</a>         <a href="#admissions">การรับสมัคร</a>         <a href="#news">ข่าว/กิจกรรม</a>         <a href="#teachers">ครู/บุคลากร</a>         <a href="#contact" class="cta">ติดต่อ</a>       </nav>       <button class="menu-btn" aria-label="เปิดเมนู" id="menuBtn">         <svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="18" x2="21" y2="18"/></svg>       </button>     </div>     <div class="mobile-menu container hidden" id="mobileMenu">       <a href="#about">เกี่ยวกับ</a>       <a href="#programs">หลักสูตร</a>       <a href="#admissions">การรับสมัคร</a>       <a href="#news">ข่าว/กิจกรรม</a>       <a href="#teachers">ครู/บุคลากร</a>       <a href="#contact">ติดต่อ</a>     </div>   </header>   <!-- Banner Slider --> <section id="banner">   <div class="slider">     <div class="slide">       <img src="https://picsum.photos/1200/400?banner1" alt="แบนเนอร์ 1">       <div class="caption">         <h2>ยินดีต้อนรับสู่โรงเรียนของเรา</h2>         <p>สร้างสรรค์นักเรียนทุกคนให้เต็มศักยภาพ</p>       </div>     </div>     <div class="slide">       <img src="https://picsum.photos/1200/400?banner2" alt="แบนเนอร์ 2">       <div class="caption">         <h2>กิจกรรมหลากหลาย</h2>         <p>เรียนรู้ผ่านการปฏิบัติจริงและกิจกรรม STEM</p>       </div>     </div>     <div class="slide">       <img src="https://picsum.photos/1200/400?banner3" alt="แบนเนอร์ 3">       <div class="caption">         <h2>ทีมครูมืออาชีพ</h2>         <p>คอยดูแลนักเรียนอย่างใกล้ชิด</p>       </div>     </div>   </div>   <div class="slider-nav">     <span class="prev">❮</span>     <span class="next">❯</span>   </div> </section>   <!-- Hero -->   <section class="hero" id="home">     <div class="container hero-inner">       <div>         <span class="badge"> โรงเรียนมาตรฐานคุณภาพ</span>         <h1>โรงเรียนตัวอย่าง <span class="accent">สร้างคน สร้างอนาคต</span></h1>         <p>มุ่งเน้นพัฒนาผู้เรียนให้ครบทั้งความรู้ คุณธรรม และทักษะชีวิต พร้อมก้าวทันเทคโนโลยีในศตวรรษที่ 21</p>         <div class="hero-actions">           <a href="#admissions" class="hero-cta">สมัครเรียน</a>           <a href="#programs" class="hero-cta secondary">ดูหลักสูตร</a>         </div>         <div class="chips" style="margin-top:14px">           <span class="pill">STEM</span>           <span class="pill">ภาษาอังกฤษเข้ม</span>           <span class="pill">กิจกรรมเด่น</span>         </div>       </div>       <div class="hero-graphic">         <div class="hero-card">           <div class="stat"><span class="prog-icon"></span><div><strong>1,250+</strong><div class="muted">นักเรียนทั้งหมด</div></div></div>         </div>         <div class="hero-grid">           <div class="hero-card">             <div class="stat"><span class="prog-icon"></span><div><strong>98%</strong><div class="muted">เข้าศึกษาต่อ</div></div></div>           </div>           <div class="hero-card">             <div class="stat"><span class="prog-icon"></span><div><strong>STEM Lab</strong><div class="muted">ห้องเรียนทันสมัย</div></div></div>           </div>         </div>         <div class="hero-card">           <div class="stat"><span class="prog-icon"></span><div><strong>เครือข่ายมหาวิทยาลัย</strong><div class="muted">ทั้งในและต่างประเทศ</div></div></div>         </div>       </div>     </div>   </section>   <!-- About -->   <section id="about">     <div class="container">       <div class="section-head">         <div>           <h2>เกี่ยวกับโรงเรียน</h2>           <p>ประวัติ วิสัยทัศน์ พันธกิจ และค่านิยมองค์กร</p>         </div>         <a class="btn" href="#contact">เยี่ยมชมสถานศึกษา</a>       </div>       <div class="grid grid-3">         <div class="card">           <h3>วิสัยทัศน์</h3>           <p class="muted">มุ่งสู่โรงเรียนคุณภาพระดับสากล สร้างผู้เรียนให้เป็นพลเมืองโลก</p>         </div>         <div class="card">           <h3>พันธกิจ</h3>           <ul>             <li>พัฒนาหลักสูตรฐานสมรรถนะ</li>             <li>ส่งเสริมคุณธรรมจริยธรรม</li>             <li>สร้างเวทีแสดงศักยภาพ</li>           </ul>         </div>         <div class="card">           <h3>จุดเด่น</h3>           <p class="muted">ครูผู้เชี่ยวชาญ ห้องเรียนอัจฉริยะ ความร่วมมือภาคอุตสาหกรรม</p>         </div>       </div>     </div>   </section>   <!-- Programs --> <section id="programs">   <div class="container">     <div class="section-head">       <div>         <h2>หลักสูตรการเรียนรู้</h2>         <p>เลือกเส้นทางที่เหมาะกับความถนัดของผู้เรียน</p>       </div>       <div class="chips">         <span class="pill">ประถม</span>         <span class="pill">มัธยมศึกษาตอนต้น</span>         <span class="pill">มัธยมศึกษาตอนปลาย</span>       </div>     </div>     <div class="grid grid-3">       <div class="card">         <img src="https://picsum.photos/400/200?lang" alt="ภาษา & สังคม">         <h3>ภาษา & สังคม</h3>         <p class="muted">พัฒนาการสื่อสารหลายภาษา ทักษะการคิดวิเคราะห์สังคมโลก</p>         <a class="btn" href="#contact">สอบถามหลักสูตร</a>       </div>       <div class="card">         <img src="https://picsum.photos/400/200?stem" alt="วิทย์-คณิต (STEM)">         <h3>วิทย์-คณิต (STEM)</h3>         <p class="muted">โครงงานทดลองจริง ห้องแล็บมาตรฐาน เครื่องมือทันสมัย</p>         <a class="btn" href="#contact">สอบถามหลักสูตร</a>       </div>       <div class="card">         <img src="https://picsum.photos/400/200?art" alt="ศิลปะ & ดนตรี & กีฬา">         <h3>ศิลปะ & ดนตรี & กีฬา</h3>         <p class="muted">เปิดเวทีแข่งขันและแสดงผลงาน จุดประกายความคิดสร้างสรรค์</p>         <a class="btn" href="#contact">สอบถามหลักสูตร</a>       </div>     </div>   </div> </section>   <!-- Admissions -->   <section id="admissions">     <div class="container">       <div class="section-head">         <div>           <h2>การรับสมัคร</h2>           <p>ขั้นตอนง่าย ๆ สำหรับผู้ปกครองและนักเรียน</p>         </div>         <a class="btn primary" href="#contact">เริ่มสมัคร</a>       </div>       <div class="grid grid-2">         <div class="card">           <h3>ไทม์ไลน์การสมัคร</h3>           <div class="timeline">             <div class="step"><strong>เปิดรับสมัคร</strong><div class="muted">1 ต.ค. – 30 พ.ย.</div></div>             <div class="step"><strong>สอบคัดเลือก</strong><div class="muted">กลางเดือน ธ.ค.</div></div>             <div class="step"><strong>ประกาศผล</strong><div class="muted">ปลายเดือน ธ.ค.</div></div>             <div class="step"><strong>มอบตัว</strong><div class="muted">ต้นเดือน ม.ค.</div></div>           </div>         </div>         <div class="card">           <h3>เอกสารที่ใช้</h3>           <ul>             <li>สำเนาบัตรประชาชน/ทะเบียนบ้าน</li>             <li>ปพ.1 ผลการเรียนย้อนหลัง</li>             <li>รูปถ่ายชุดนักเรียน 1 นิ้ว 2 รูป</li>           </ul>           <p class="muted">* ระบุเพิ่มได้ตามเงื่อนไขของสถานศึกษา</p>         </div>       </div>     </div>   </section>   <!-- News & Events -->   <section id="news">   <div class="container">     <div class="section-head">       <div>         <h2>ข่าวสาร & กิจกรรม</h2>         <p>อัปเดตความเคลื่อนไหวล่าสุดของโรงเรียน</p>       </div>       <a class="btn" href="#">ดูทั้งหมด</a>     </div>     <div class="grid grid-3">       <div class="card item">         <img src="https://picsum.photos/400/200?news1" alt="ข่าว 1">         <time datetime="2025-09-01">01 ก.ย. 2025</time>         <div>           <h3>เปิดบ้านวิชาการ 2025</h3>           <p class="muted">เชิญผู้ปกครองและชุมชนเยี่ยมชมผลงานนักเรียน</p>         </div>         <span class="tag pill">กิจกรรม</span>       </div>       <div class="card item">         <img src="https://picsum.photos/400/200?news2" alt="ข่าว 2">         <time datetime="2025-08-24">24 ส.ค. 2025</time>         <div>           <h3>ชนะเลิศ แข่งขันหุ่นยนต์</h3>           <p class="muted">ทีม STEM คว้าแชมป์ระดับจังหวัด</p>         </div>         <span class="tag pill">ข่าวดี</span>       </div>       <div class="card item">         <img src="https://picsum.photos/400/200?news3" alt="ข่าว 3">         <time datetime="2025-08-10">10 ส.ค. 2025</time>         <div>           <h3>โครงการจิตอาสา</h3>           <p class="muted">ปลูกป่า รักษ์โลก ร่วมกับชุมชน</p>         </div>         <span class="tag pill">จิตอาสา</span>       </div>     </div>   </div> </section>   <!-- Teachers --> <section id="teachers">   <div class="container">     <div class="section-head">       <div>         <h2>คณะครูและบุคลากร</h2>         <p>ทีมงานมืออาชีพ ดูแลนักเรียนอย่างใกล้ชิด</p>       </div>       <div class="chips">         <span class="pill">ครูประจำชั้น</span>         <span class="pill">แนะแนว</span>         <span class="pill">ผู้บริหาร</span>       </div>     </div>     <div class="grid grid-3">       <div class="card teacher">         <div class="avatar">           <img src="https://picsum.photos/200?teacher1" alt="อาจารย์อภิสิทธิ์">         </div>         <div>           <h3>อาจารย์อภิสิทธิ์ บัณฑิต</h3>           <p class="muted">หัวหน้ากลุ่มสาระวิทยาศาสตร์</p>         </div>       </div>       <div class="card teacher">         <div class="avatar">           <img src="https://picsum.photos/200?teacher2" alt="ครูนันทนา">         </div>         <div>           <h3>ครูนันทนา นาคะ</h3>           <p class="muted">แนะแนวและดูแลนักเรียนห้องพิเศษ</p>         </div>       </div>       <div class="card teacher">         <div class="avatar">           <img src="https://picsum.photos/200?teacher3" alt="ผอ.พงศ์กฤต">         </div>         <div>           <h3>ผอ.พงศ์กฤต</h3>           <p class="muted">ผู้บริหารโรงเรียน</p>         </div>       </div>     </div>   </div> </section>   <!-- Gallery --> <section id="gallery">   <div class="container">     <div class="section-head">       <div>         <h2>บรรยากาศโรงเรียน</h2>         <p>ภาพกิจกรรมและพื้นที่การเรียนรู้</p>       </div>     </div>     <div class="gallery">       <img src="https://picsum.photos/400/300?school1" alt="บรรยากาศ 1" class="gallery-img">       <img src="https://picsum.photos/400/300?school2" alt="บรรยากาศ 2" class="gallery-img">       <img src="https://picsum.photos/400/300?school3" alt="บรรยากาศ 3" class="gallery-img">       <img src="https://picsum.photos/400/300?school4" alt="บรรยากาศ 4" class="gallery-img">       <img src="https://picsum.photos/400/300?school5" alt="บรรยากาศ 5" class="gallery-img">       <img src="https://picsum.photos/400/300?school6" alt="บรรยากาศ 6" class="gallery-img">       <img src="https://picsum.photos/400/300?school7" alt="บรรยากาศ 7" class="gallery-img">       <img src="https://picsum.photos/400/300?school8" alt="บรรยากาศ 8" class="gallery-img">     </div>   </div> </section>   <!-- Contact -->   <section id="contact">     <div class="container">       <div class="section-head">         <div>           <h2>ติดต่อโรงเรียน</h2>           <p>แผนกวิชาการ เปิดทำการ จันทร์–ศุกร์ 08:30–16:30 น.</p>         </div>       </div>       <div class="grid grid-2">         <div class="card">           <h3>แบบฟอร์มติดต่อ</h3>           <form onsubmit="event.preventDefault(); alert('ส่งข้อความเรียบร้อย ขอบคุณค่ะ/ครับ'); this.reset();">             <div class="grid grid-2">               <input required placeholder="ชื่อ-นามสกุล" aria-label="ชื่อ-นามสกุล" />               <input required type="email" placeholder="อีเมล" aria-label="อีเมล" />             </div>             <input placeholder="เบอร์โทร" aria-label="เบอร์โทร" />             <select aria-label="หัวข้อ">               <option>สมัครเรียน</option>               <option>ขอเอกสาร</option>               <option>นัดเยี่ยมชม</option>             </select>             <textarea rows="4" placeholder="ข้อความ"></textarea>             <button class="btn primary" type="submit">ส่งข้อความ</button>           </form>         </div>         <div class="card">           <h3>ข้อมูลติดต่อ</h3>           <p class="muted">123 ถนนการศึกษา เขตเมือง กรุงการเรียน 10100</p>           <p>โทร: 02-123-4567<br/>อีเมล: info@school.ac.th</p>           <div class="chips">             <a class="btn" href="#"> ดูแผนที่</a>             <a class="btn" href="#"> LINE Official</a>             <a class="btn" href="#"> Facebook</a>           </div>         </div>       </div>     </div>   </section>   <!-- Footer -->   <footer>     <div class="container footer-grid">       <div>         <div class="logo" style="color:#fff">           <span class="logo-mark" style="background:linear-gradient(145deg, #0ea5e9, #0369a1)"></span>           <strong>โรงเรียนตัวอย่าง</strong>         </div>         <p class="muted" style="margin-top:10px">สถานศึกษาคุณภาพ เพื่ออนาคตของผู้เรียน</p>       </div>       <div>         <h4>ลิงก์ด่วน</h4>         <ul>           <li><a href="#admissions">ข้อมูลรับสมัคร</a></li>           <li><a href="#programs">หลักสูตร</a></li>           <li><a href="#news">ข่าว/กิจกรรม</a></li>         </ul>       </div>       <div>         <h4>ติดต่อ</h4>         <ul>           <li>โทร 02-123-4567</li>           <li>อีเมล info@school.ac.th</li>           <li>จ.-ศ. 08:30–16:30 น.</li>         </ul>       </div>     </div>     <div class="container copyright">© <span id="year"></span> โรงเรียนตัวอย่าง — สงวนลิขสิทธิ์</div>   </footer>   <a href="#home" class="floating-top" aria-label="กลับขึ้นด้านบน">⬆</a>   <script>     // ปีปัจจุบัน     document.getElementById('year').textContent = new Date().getFullYear();     // Smooth scroll     document.querySelectorAll('a[href^="#"]').forEach(a=>{       a.addEventListener('click', e=>{         const target = document.querySelector(a.getAttribute('href'));         if(target){ e.preventDefault(); target.scrollIntoView({behavior:'smooth', block:'start'}); }       });     });     // Mobile menu toggle     const menuBtn = document.getElementById('menuBtn');     const mobileMenu = document.getElementById('mobileMenu');     menuBtn?.addEventListener('click', ()=>{       mobileMenu.classList.toggle('hidden');     });     // Close mobile menu on link click     mobileMenu?.querySelectorAll('a').forEach(link=>{       link.addEventListener('click', ()=> mobileMenu.classList.add('hidden'));     });   </script>   <script>   const menuBtn = document.getElementById('menuBtn');   const mobileMenu = document.getElementById('mobileMenu');   menuBtn.addEventListener('click', () => {     mobileMenu.classList.toggle('hidden');   }); </script> </body> </html> | 
2. style.css เก็บไว้ในโฟลเดอร์เดียวกัน คือ template/style.css
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 |     :root{       --brand: #1e88e5;           /* เปลี่ยนสีหลักของโรงเรียนได้ที่นี่ */       --brand-600: #1565c0;       --brand-700: #0d47a1;       --accent: #ffca28;          /* สีเน้น */       --bg: #f7fafc;       --card: #ffffff;       --text: #111827;       --muted: #6b7280;       --ring: rgba(30,136,229,.35);       --radius: 16px;       --shadow: 0 10px 25px rgba(2, 8, 23, .08);     }     *{box-sizing:border-box}     html,body{margin:0;padding:0}     body{font-family:'Noto Sans Thai',system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif; color:var(--text); background:var(--bg); line-height:1.6}     a{color:inherit;text-decoration:none}     img{max-width:100%;display:block}     .container{width:min(1200px, 92%); margin-inline:auto}     /* Header */     header{position:sticky; top:0; z-index:50; backdrop-filter:saturate(180%) blur(8px); background:rgba(255,255,255,.75); border-bottom:1px solid rgba(0,0,0,.06)}     .nav{display:flex; align-items:center; justify-content:space-between; padding:10px 0}     .logo{display:flex; align-items:center; gap:12px; font-weight:800}     .logo-mark{width:40px; height:40px; border-radius:12px; background:linear-gradient(145deg, var(--brand), var(--brand-700)); display:grid; place-items:center; color:white; box-shadow:var(--shadow)}     .logo-mark svg{width:22px; height:22px}     .nav-links{display:flex; gap:18px; align-items:center}     .nav-links a{padding:10px 12px; border-radius:12px; font-weight:600; color:#1f2937}     .nav-links a:hover{background:#eef5ff}     .cta{background:var(--brand); color:white; padding:10px 14px; border-radius:12px; box-shadow:var(--shadow)}     .cta:hover{background:var(--brand-600)}     .menu-btn{display:none; background:none; border:none; padding:10px}     /* Mobile nav */     @media (max-width: 860px){       .nav-links{display:none}       .menu-btn{display:block}       .mobile-menu{display:none; position:absolute; top:64px; left:0; right:0; background:white; border-bottom:1px solid rgba(0,0,0,.06); box-shadow:var(--shadow)}       .mobile-menu a{display:block; padding:14px 24px; border-top:1px solid rgba(0,0,0,.04)}       .mobile-menu a:hover{background:#f8fafc}     }     /* Hero */     .hero{position:relative; overflow:hidden; background:radial-gradient(1200px 500px at 80% -150px, #dbeafe 0%, transparent 60%), linear-gradient(180deg, #ffffff 0%, #f6fbff 100%)}     .hero-inner{display:grid; grid-template-columns: 1.2fr 1fr; gap:40px; padding:64px 0}     .badge{display:inline-flex; align-items:center; gap:8px; background:#eef7ff; color:#1e3a8a; padding:8px 12px; border-radius:999px; font-weight:700; box-shadow:inset 0 0 0 1px rgba(30,136,229,.2)}     .hero h1{font-size: clamp(28px, 4.6vw, 56px); line-height:1.1; margin:14px 0 10px}     .hero p{font-size: clamp(16px, 2.2vw, 18px); color:var(--muted); margin:0 0 22px}     .hero-actions{display:flex; gap:14px; flex-wrap:wrap}     .hero-cta{background:var(--brand); color:white; padding:14px 18px; border-radius:14px; font-weight:800}     .hero-cta.secondary{background:transparent; color:var(--brand-700); border:2px solid #cfe6ff}     .hero-graphic{position:relative;}     .hero-card{background:var(--card); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); margin-bottom:16px}     .hero-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px}     .stat{display:flex; align-items:center; gap:12px}     .stat strong{font-size:24px}     @media (max-width: 860px){       .hero-inner{grid-template-columns:1fr}     }     /* Sections */     section{padding:60px 0}     .section-head{display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:22px}     .section-head h2{font-size: clamp(22px, 3.2vw, 34px); margin:0}     .section-head p{color:var(--muted); margin:6px 0 0}     /* Cards & grids */     .grid{display:grid; gap:18px}     .grid-3{grid-template-columns: repeat(3, 1fr)}     .grid-4{grid-template-columns: repeat(4, 1fr)}     .grid-2{grid-template-columns: repeat(2, 1fr)}     @media (max-width: 960px){       .grid-4{grid-template-columns: repeat(2, 1fr)}       .grid-3{grid-template-columns: repeat(2, 1fr)}     }     @media (max-width: 640px){       .grid-3,.grid-4,.grid-2{grid-template-columns: 1fr}     }     .card{background:var(--card); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); border:1px solid rgba(2,8,23,.06)}     .card h3{margin:6px 0 8px}     .pill{display:inline-block; padding:6px 10px; background:#f1f5f9; border-radius:999px; font-size:12px; font-weight:700; color:#334155}     /* Programs */     .prog-icon{width:48px; height:48px; border-radius:12px; display:grid; place-items:center; background:linear-gradient(135deg, #eff6ff, #e0f2fe); border:1px solid #dbeafe}     /* Admissions timeline */     .timeline{position:relative; padding-left:26px}     .timeline::before{content:""; position:absolute; left:8px; top:0; bottom:0; width:2px; background:#e5e7eb}     .step{position:relative; margin:16px 0; padding-bottom:8px}     .step::before{content:""; position:absolute; left:-19px; top:2px; width:14px; height:14px; border-radius:50%; background:var(--brand); box-shadow:0 0 0 3px #e3f2fd}     /* News/Event list */     .item{display:flex; gap:14px}     .item time{font-weight:800; color:var(--brand-700)}     .item .tag{margin-left:auto}     /* Teachers */     .teacher{display:flex; align-items:center; gap:14px}     .avatar{width:64px; height:64px; border-radius:50%; background:linear-gradient(135deg, #e3f2fd, #bbdefb); display:grid; place-items:center; font-weight:900; color:#0d47a1}     /* Gallery */     .gallery{display:grid; grid-template-columns:2fr 1fr 1fr; gap:12px}     .gallery img{border-radius:14px; aspect-ratio: 4/3; object-fit:cover}     @media (max-width: 860px){.gallery{grid-template-columns:1fr 1fr}}     /* Contact */     form{display:grid; gap:12px}     input, textarea, select{padding:12px 14px; border-radius:12px; border:1px solid #e5e7eb; outline:none; font:inherit; background:white}     input:focus, textarea:focus, select:focus{box-shadow:0 0 0 4px var(--ring); border-color:#bfdbfe}     button{cursor:pointer; font-weight:800}     /* Footer */     footer{background:#0b1020; color:#d1d5db; padding:40px 0}     .footer-grid{display:grid; grid-template-columns:2fr 1fr 1fr; gap:20px}     .footer-grid a{color:#e5e7eb}     .copyright{border-top:1px solid rgba(255,255,255,.08); margin-top:24px; padding-top:16px; font-size:14px; color:#9ca3af}     @media (max-width: 860px){.footer-grid{grid-template-columns:1fr}}     /* Utilities */     .muted{color:var(--muted)}     .hidden{display:none}     .center{text-align:center}     .chips{display:flex; gap:8px; flex-wrap:wrap}     .shadow{box-shadow:var(--shadow)}     .accent{color:var(--brand)}     .btn{display:inline-flex; align-items:center; gap:10px; border-radius:12px; padding:10px 14px; border:1px solid #e5e7eb; background:white}     .btn:hover{background:#f8fafc}     .btn.primary{background:var(--brand); color:white; border-color:transparent}     .floating-top{position:fixed; right:16px; bottom:16px; border-radius:999px; padding:12px 14px; background:var(--brand); color:white; box-shadow:var(--shadow)}  #gallery .gallery {   display: grid;   grid-template-columns: repeat(4, 1fr);   gap: 10px; } #gallery .gallery img {   width: 100%;   height: 200px;   object-fit: cover;   border-radius: 12px; } /* ข่าวสาร & กิจกรรม */ #news .grid {   display: grid;   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));   gap: 1rem; } #news .card {   background: #fff; /* สีพื้นขาวเพื่อให้ข้อความเห็นชัด */   border-radius: 12px;   overflow: hidden;   box-shadow: 0 4px 6px rgba(0,0,0,0.1);   transition: transform 0.3s;   display: flex;   flex-direction: column; } #news .card:hover {   transform: translateY(-5px); } #news .card img {   width: 100%;   height: 180px;   object-fit: cover;   display: block; } #news .card time {   display: block;   font-size: 0.85rem;   color: #666;   margin: 0.5rem 1rem 0; } #news .card h3 {   margin: 0.5rem 1rem 0;   font-size: 1.2rem;   color: #333; /* ทำให้ข้อความเห็นชัด */ } #news .card p.muted {   margin: 0.25rem 1rem 1rem;   color: #555; /* ทำให้ข้อความอ่านง่าย */ } #news .tag.pill {   display: inline-block;   background: #007bff;   color: #fff;   border-radius: 20px;   padding: 0.25rem 0.75rem;   font-size: 0.8rem;   margin: 0 0 1rem 1rem; } /* หลักสูตรการเรียนรู้ */ #programs .grid {   display: grid;   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));   gap: 1rem; } #programs .card {   background: #fff;   border-radius: 12px;   overflow: hidden;   box-shadow: 0 4px 6px rgba(0,0,0,0.1);   transition: transform 0.3s;   display: flex;   flex-direction: column;   text-align: center; } #programs .card:hover {   transform: translateY(-5px); } #programs .card img {   width: 100%;   height: 180px;   object-fit: cover;   display: block; } #programs .card h3 {   margin: 0.5rem 1rem 0;   color: #333; } #programs .card p.muted {   margin: 0.25rem 1rem 1rem;   color: #555; } #programs .card .btn {   margin: 0.5rem 1rem 1rem;   padding: 0.5rem 1rem; } /* ครูและบุคลากร */ #teachers .grid {   display: grid;   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));   gap: 1rem; } #teachers .card.teacher {   display: flex;   align-items: center;   gap: 1rem;   background: #fff;   padding: 1rem;   border-radius: 12px;   box-shadow: 0 4px 6px rgba(0,0,0,0.1);   transition: transform 0.3s; } #teachers .card.teacher:hover {   transform: translateY(-5px); } #teachers .avatar {   flex-shrink: 0;   width: 80px;   height: 80px;   border-radius: 50%;   overflow: hidden; } #teachers .avatar img {   width: 100%;   height: 100%;   object-fit: cover; } #banner {   position: relative;   overflow: hidden;   width: 100%; } #banner .slider {   display: flex;   transition: transform 0.5s ease-in-out; } #banner .slide {   min-width: 100%;   position: relative; } #banner .slide img {   width: 100%;   display: block; } #banner .caption {   position: absolute;   bottom: 20%;   left: 10%;   color: #fff;   background: rgba(0,0,0,0.4);   padding: 1rem 2rem;   border-radius: 10px; } #banner .slider-nav {   position: absolute;   top: 50%;   width: 100%;   display: flex;   justify-content: space-between;   transform: translateY(-50%); } #banner .slider-nav span {   cursor: pointer;   font-size: 2rem;   color: #fff;   padding: 0 1rem;   user-select: none; } /* ลดระยะห่างบน-ล่างของทุก section */ section {   padding-top: 20px;   padding-bottom: 20px; } /* section แรก (banner/hero) อาจใหญ่หน่อย */ section:first-of-type {   padding-top: 40px;   padding-bottom: 40px; } /* ลด margin ของ section-head */ .section-head {   margin-bottom: 12px; /* ลดลงจากเดิม */   display: flex;   align-items: flex-end;   justify-content: space-between;   gap: 12px; } /* ปรับ gap ของ grid ให้เล็กลง */ .grid {   display: grid;   gap: 8px; /* จากเดิม 18px */ } /* ปรับ gap ของ chips */ .chips {   display: flex;   gap: 4px; /* จากเดิม 8px */   flex-wrap: wrap; } /* ปรับ card hover effect ให้น้อยลง */ .card:hover {   transform: translateY(-2px); } /* สำหรับมือถือ */ @media (max-width: 860px) {   .hero-inner {     padding: 16px 0;      gap: 12px;   } } .mobile-menu {   display: flex;   flex-direction: column;   gap: 12px; } .mobile-menu.hidden {   display: none; } @media(min-width: 860px){   .menu-btn,   .mobile-menu {     display: none;   }   .nav-links {     display: flex;     gap: 20px;   } } | 
3. ผลการทำงาน

อื่นๆ เอาไปพัฒนาเพิ่มเติมได้เองเลยนะครับ
ร่วมสนับสนุน ค่ากาแฟ ค่าโฮส devbanban.com ได้ที่
ธนาคารกรุงไทย
ชื่อบัญชี นายพิศิษฐ์ บวรเลิศสุธี เลขที่ 878-0-17747-6
————————————————————————————
ธนาคารไทยพาณิชย์
ชื่อบัญชี นายพิศิษฐ์ บวรเลิศสุธี เลขที่ 406-359094-1
————————————————————————————
ธนาคารกสิกร
ชื่อบัญชี นายพิศิษฐ์ บวรเลิศสุธี เลขที่ 048-1-17571-2
fanpage : https://www.facebook.com/sornwebsites/