สวัสดีครับ ในบทความนี้ผมจะแจก POS UX UI HTML CSS Bootstrap5 Gen Code ด้วย Gemini ลองเอาไปศึกษาและพัฒนาต่อยอดนะครับ
โปรโมชั่นพิเศษ ลดสูงสุด 80%!
ขาย Source Code พร้อมใช้งาน นำไปต่อยอดได้ทันที
ดูสินค้าทั้งหมด ได้ที่ : https://devbanban.com/?p=4425
ซื้อแล้วปรึกษาได้ตลอด
สนใจติดต่อ inbox ที่แฟนเพจ
☎️ โทร: 094-861-6709
Line OA : https://lin.ee/v8VwivgC
- รวมคลิปสอน PHP PDO MySQL (ฟรีคอร์ส) เข้าเรียน คลิก
- รวมคลิปสอน Laravel v.12 (ฟรีคอร์ส) เข้าเรียน คลิก
ขอแนะนำระบบร้านอาหารสวยๆ น่าใช้ ราคาเบาๆ
ราคา 2,900 บาท ได้โค้ดทั้งหมด demo คลิก
ขอแนะนำระบบร้านบุฟเฟ่ ชาบู สวยๆ น่าใช้ ราคาเบาๆ
ราคา 3,900 บาท ได้โค้ดทั้งหมด demo คลิก
ระบบร้านชาบู หมูกระทะ ชั่งกิโล
ราคา 4,900 บาท ได้โค้ดทั้งหมด demo คลิก
1. Full Code สามารถ save เป็นไฟล์ .html และ run ได้เลยครับ เช่น สร้างโฟลเดอร์ POS/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 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 |
<!DOCTYPE html> <html lang="th"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>บ้านๆ POS System devbanban.com </title> <!-- โปรแรง! ลดสูงสุด 80% Source Code กว่า 40 โปรแกรม พร้อมใช้ทันที ✔️ ซื้อแล้วปรึกษาได้ฟรี เลือกดูสินค้า: คลิกเลย https://devbanban.com/?p=4425 Inbox | Line: https://lin.ee/NIX8sbh --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css"> <style> /* ------------------------- * Global & Layout * ------------------------- */ body { background-color: #f4f7f6; /* สีพื้นหลังเทาอ่อนๆ */ font-family: 'Inter', sans-serif; /* ใช้ Font ที่ดู Modern (ถ้ามี) */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* * Layout หลัก: * ใช้ Flexbox เพื่อให้ได้ 2 คอลัมน์เต็มความสูง * และบังคับให้แต่ละคอลัมน์ scroll ได้อย่างอิสระ */ .main-wrapper { display: flex; flex-direction: column; height: 100vh; overflow: hidden; } .main-content { flex-grow: 1; /* ให้ content กินพื้นที่ที่เหลือ */ overflow: hidden; /* ซ่อน scrollbar ของ wrapper */ } .main-content .row { height: 100%; } /* คอลัมน์สินค้าและคอลัมน์ตะกร้า */ .product-column, .cart-column { height: 100%; display: flex; flex-direction: column; overflow-y: auto; /* ให้ scrollbar เกิดในคอลัมน์นี้ */ padding-bottom: 24px; } /* ------------------------- * Navbar * ------------------------- */ .navbar { box-shadow: 0 2px 10px rgba(0,0,0,0.05); background-color: #ffffff; } .navbar-brand { font-weight: 700; color: #0d6efd !important; } .user-profile { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; border: 2px solid #eee; } /* ------------------------- * Product Column (ฝั่งซ้าย) * ------------------------- */ .search-bar { border-radius: 12px; border: 1px solid #dee2e6; box-shadow: 0 4px 12px rgba(0,0,0,0.03); } .search-bar .form-control { border: none; box-shadow: none !important; } .search-bar .input-group-text { border: none; background: transparent; color: #6c757d; } /* ปุ่ม Category */ .category-nav .nav-link { border-radius: 10px; margin-right: 8px; font-weight: 500; color: #495057; transition: all 0.2s ease; } .category-nav .nav-link.active { background-color: #0d6efd; color: #ffffff; box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3); } .category-nav .nav-link:hover:not(.active) { background-color: #e9ecef; } /* การ์ดสินค้า */ .product-card { background-color: #ffffff; border: 1px solid #e9ecef; border-radius: 16px; /* ขอบมนมากๆ */ box-shadow: 0 4px 12px rgba(0,0,0,0.03); transition: all 0.2s ease-in-out; cursor: pointer; overflow: hidden; /* กันรูปทะลุขอบมน */ } .product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); } .product-card-img { height: 150px; object-fit: cover; } .product-card .card-body { padding: 1rem; } .product-card .card-title { font-size: 1rem; font-weight: 600; color: #343a40; margin-bottom: 0.25rem; } .product-card .card-text { font-size: 1.1rem; font-weight: 700; color: #0d6efd; } /* ------------------------- * Cart Column (ฝั่งขวา) * ------------------------- */ .cart-sidebar { background-color: #ffffff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.07); padding: 24px; /* ทำให้ส่วนรายการสินค้า scroll ได้ */ display: flex; flex-direction: column; height: 100%; /* สำคัญมาก */ } .cart-items-list { flex-grow: 1; /* ให้ส่วนนี้ยืดจนเต็มพื้นที่ */ overflow-y: auto; /* มี scrollbar เฉพาะส่วนนี้ */ margin-bottom: 1rem; padding-right: 10px; /* เว้นที่ให้ scrollbar */ } /* Custom scrollbar */ .cart-items-list::-webkit-scrollbar { width: 6px; } .cart-items-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; } .cart-items-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; } .cart-items-list::-webkit-scrollbar-thumb:hover { background: #aaa; } .cart-item { padding: 1rem 0; border-bottom: 1px solid #f0f0f0; } .cart-item:last-child { border-bottom: none; } .cart-item-title { font-weight: 600; margin-bottom: 0.25rem; } .cart-item-price { font-size: 0.9rem; color: #6c757d; } .quantity-control { width: 110px; } .quantity-control .btn { border-radius: 8px !important; background-color: #f1f3f5; border: none; color: #495057; font-weight: bold; } .quantity-control .form-control { border: none; box-shadow: none; text-align: center; font-weight: 600; padding: 0.375rem 0.25rem; } .remove-btn { font-size: 1.2rem; color: #dc3545; transition: color 0.2s; } .remove-btn:hover { color: #a71d2a; } /* ส่วนสรุปยอด */ .cart-summary { border-top: 2px dashed #e9ecef; padding-top: 1.5rem; } .cart-summary .summary-row { font-size: 1rem; font-weight: 500; } .cart-summary .summary-row.total { font-size: 1.25rem; font-weight: 700; color: #212529; } .cart-summary .summary-row.total .price { color: #0d6efd; } /* ปุ่มจ่ายเงิน */ .btn-pay { font-size: 1.1rem; font-weight: 600; padding: 0.8rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3); } </style> </head> <body> <div class="main-wrapper"> <nav class="navbar navbar-expand-lg sticky-top"> <div class="container-fluid"> <a class="navbar-brand" href="https://devbanban.com/?p=4425" target="_blank"> <i class="bi bi-cart4"></i> บ้านๆ POS </a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarText"> <ul class="navbar-nav me-auto mb-2 mb-lg-0"> <li class="nav-item"> <a class="nav-link active" aria-current="page" href="https://devbanban.com/?p=4425" target="_blank">หน้าขาย</a> </li> <li class="nav-item"> <a class="nav-link" href="https://devbanban.com/?p=4425" target="_blank">รายงาน</a> </li> <li class="nav-item"> <a class="nav-link" href="https://devbanban.com/?p=4425" target="_blank">ตั้งค่า</a> </li> </ul> <span class="navbar-text d-flex align-items-center"> <span class="me-3">สวัสดี, devbanban</span> <img src="https://scontent.fbkk7-3.fna.fbcdn.net/v/t39.30808-6/293805040_435132671959468_6665761187450629818_n.jpg?_nc_cat=101&ccb=1-7&_nc_sid=6ee11a&_nc_ohc=u8c4MBNh3U0Q7kNvwFgJuUY&_nc_oc=AdkJZEIN_-MINSar6H8q8OWylTHFACjZddc_wKFOz_JksYblpoR0jrAYbmZZmORyNHQ&_nc_zt=23&_nc_ht=scontent.fbkk7-3.fna&_nc_gid=q2txHM5tN6N5by0nQPN_zQ&oh=00_AfdS-aZwVUaSDbXQSxZUV6kjqc5LnMTFn6wDj_8huHo1Bg&oe=6905595B" alt="User" class="user-profile"> </span> </div> </div> </nav> <main class="main-content"> <div class="row g-0"> <div class="col-lg-7 col-xl-8 product-column p-4"> <div class="mb-4"> <div class="input-group input-group-lg search-bar"> <span class="input-group-text"><i class="bi bi-search"></i></span> <input type="text" class="form-control" placeholder="ค้นหาสินค้า (ชื่อ, รหัส)..."> </div> </div> <div class="mb-4"> <ul class="nav nav-pills category-nav"> <li class="nav-item"> <a class="nav-link active" href="#">ทั้งหมด</a> </li> <li class="nav-item"> <a class="nav-link" href="#">เครื่องดื่ม</a> </li> <li class="nav-item"> <a class="nav-link" href="#">เบเกอรี่</a> </li> <li class="nav-item"> <a class="nav-link" href="#">อาหารจานเดียว</a> </li> <li class="nav-item"> <a class="nav-link" href="#">ของทานเล่น</a> </li> </ul> </div> <div class="row row-cols-2 row-cols-md-3 row-cols-xl-4 row-cols-xxl-5 g-3"> <div class="col"> <div class="card product-card h-100"> <img src="https://devbanban.com/app/coffee/p_img/126798917220190225_110423.jpg" class="card-img-top product-card-img" alt="Latte"> <div class="card-body text-center"> <h5 class="card-title">คาเฟ่ ลาเต้ (ร้อน)</h5> <p class="card-text">฿75.00</p> </div> </div> </div> <div class="col"> <div class="card product-card h-100"> <img src="https://devbanban.com/app/coffee/p_img/126798917220190225_110423.jpg" class="card-img-top product-card-img" alt="Latte"> <div class="card-body text-center"> <h5 class="card-title">ครัวซองต์เนยสด</h5> <p class="card-text">฿55.00</p> </div> </div> </div> <div class="col"> <div class="card product-card h-100"> <img src="https://devbanban.com/app/coffee/p_img/126798917220190225_110423.jpg" class="card-img-top product-card-img" alt="Latte"> <div class="card-body text-center"> <h5 class="card-title">มอคค่า (เย็น)</h5> <p class="card-text">฿85.00</p> </div> </div> </div> <div class="col"> <div class="card product-card h-100"> <img src="https://devbanban.com/app/coffee/p_img/126798917220190225_110423.jpg" class="card-img-top product-card-img" alt="Latte"> <div class="card-body text-center"> <h5 class="card-title">ชาเขียวมัทฉะ</h5> <p class="card-text">฿80.00</p> </div> </div> </div> <div class="col"> <div class="card product-card h-100 opacity-50" style="cursor: not-allowed;"> <img src="https://devbanban.com/app/coffee/p_img/126798917220190225_110423.jpg" class="card-img-top product-card-img" alt="Latte"> <div class="card-body text-center"> <h5 class="card-title">บลูเบอร์รี่ชีสเค้ก</h5> <p class="card-text text-danger"><s>฿95.00</s> (หมด)</p> </div> </div> </div> <div class="col"> <div class="card product-card h-100"> <img src="https://devbanban.com/app/coffee/p_img/126798917220190225_110423.jpg" class="card-img-top product-card-img" alt="Latte"> <div class="card-body text-center"> <h5 class="card-title">อเมริกาโน่ (เย็น)</h5> <p class="card-text">฿65.00</p> </div> </div> </div> <div class="col"> <div class="card product-card h-100"> <img src="https://devbanban.com/app/coffee/p_img/126798917220190225_110423.jpg" class="card-img-top product-card-img" alt="Latte"> <div class="card-body text-center"> <h5 class="card-title">ครัวซองต์เนยสด</h5> <p class="card-text">฿55.00</p> </div> </div> </div> <div class="col"> <div class="card product-card h-100"> <img src="https://devbanban.com/app/coffee/p_img/126798917220190225_110423.jpg" class="card-img-top product-card-img" alt="Latte"> <div class="card-body text-center"> <h5 class="card-title">มอคค่า (เย็น)</h5> <p class="card-text">฿85.00</p> </div> </div> </div> <div class="col"> <div class="card product-card h-100"> <img src="https://devbanban.com/app/coffee/p_img/126798917220190225_110423.jpg" class="card-img-top product-card-img" alt="Latte"> <div class="card-body text-center"> <h5 class="card-title">ชาเขียวมัทฉะ</h5> <p class="card-text">฿80.00</p> </div> </div> </div> <div class="col"> <div class="card product-card h-100 opacity-50" style="cursor: not-allowed;"> <img src="https://devbanban.com/app/coffee/p_img/126798917220190225_110423.jpg" class="card-img-top product-card-img" alt="Latte"> <div class="card-body text-center"> <h5 class="card-title">บลูเบอร์รี่ชีสเค้ก</h5> <p class="card-text text-danger"><s>฿95.00</s> (หมด)</p> </div> </div> </div> </div> </div> <div class="col-lg-5 col-xl-4 cart-column"> <div class="cart-sidebar m-3"> <div class="d-flex justify-content-between align-items-center mb-3"> <h4 class="mb-0 fw-bold">รายการปัจจุบัน (3)</h4> <button class="btn btn-outline-danger btn-sm"> <i class="bi bi-trash3 me-1"></i> ล้างทั้งหมด </button> </div> <div class="cart-items-list"> <div class="cart-item d-flex align-items-center"> <div class="flex-grow-1"> <div class="cart-item-title">คาเฟ่ ลาเต้ (ร้อน)</div> <div class="cart-item-price">@ ฿75.00</div> </div> <div class="input-group quantity-control mx-3"> <button class="btn btn-sm" type="button">-</button> <input type="text" class="form-control" value="1" readonly> <button class="btn btn-sm" type="button">+</button> </div> <div class="fw-bold me-3">฿75.00</div> <a href="#" class="remove-btn"><i class="bi bi-x-circle-fill"></i></a> </div> <div class="cart-item d-flex align-items-center"> <div class="flex-grow-1"> <div class="cart-item-title">ครัวซองต์เนยสด</div> <div class="cart-item-price">@ ฿55.00</div> </div> <div class="input-group quantity-control mx-3"> <button class="btn btn-sm" type="button">-</button> <input type="text" class="form-control" value="2" readonly> <button class="btn btn-sm" type="button">+</button> </div> <div class="fw-bold me-3">฿110.00</div> <a href="#" class="remove-btn"><i class="bi bi-x-circle-fill"></i></a> </div> <div class="cart-item d-flex align-items-center"> <div class="flex-grow-1"> <div class="cart-item-title">ชาเขียวมัทฉะ</div> <div class="cart-item-price">@ ฿80.00</div> </div> <div class="input-group quantity-control mx-3"> <button class="btn btn-sm" type="button">-</button> <input type="text" class="form-control" value="1" readonly> <button class="btn btn-sm" type="button">+</button> </div> <div class="fw-bold me-3">฿80.00</div> <a href="#" class="remove-btn"><i class="bi bi-x-circle-fill"></i></a> </div> </div> <div class="cart-summary"> <div class="d-flex justify-content-between mb-2 summary-row"> <span>ยอดรวม (Subtotal)</span> <span>฿265.00</span> </div> <div class="d-flex justify-content-between mb-2 summary-row"> <span>ส่วนลด (Discount)</span> <span class="text-danger">-฿0.00</span> </div> <div class="d-flex justify-content-between mb-3 summary-row"> <span>ภาษี (VAT 7%)</span> <span>฿18.55</span> </div> <div class="d-flex justify-content-between mb-4 summary-row total"> <span>ยอดสุทธิ</span> <span class="price">฿283.55</span> </div> <div class="d-grid gap-2"> <button class="btn btn-primary btn-lg btn-pay" type="button"> <i class="bi bi-credit-card-fill me-2"></i> ชำระเงิน </button> <button class="btn btn-outline-secondary" type="button"> <i class="bi bi-pause-circle me-1"></i> พักบิล </button> </div> </div> </div> </div> </div> </main> <footer> <p class="text-center mt-5 mb-5"> Code from Gemini, Modify by devbanban.com @2025 <a href="https://devbanban.com/?p=4425"> read more...</a> </p> </footer> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> </body> </html> <!-- โปรแรง! ลดสูงสุด 80% Source Code กว่า 40 โปรแกรม พร้อมใช้ทันที ✔️ ซื้อแล้วปรึกษาได้ฟรี เลือกดูสินค้า: คลิกเลย https://devbanban.com/?p=4425 Inbox | Line: https://lin.ee/NIX8sbh --> |
2.ผลการทำงาน

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