fork download
  1. <!DOCTYPE html>
  2. <html lang="th">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  6. <title>Login</title>
  7. <style>
  8. body {
  9. font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  10. background-color: #f2f2f2;
  11. display: flex;
  12. justify-content: center;
  13. align-items: center;
  14. height: 100vh;
  15. margin: 0;
  16. }
  17.  
  18. .login-container {
  19. background: white;
  20. padding: 40px;
  21. border-radius: 10px;
  22. box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  23. width: 300px;
  24. }
  25.  
  26. .login-container h2 {
  27. text-align: center;
  28. margin-bottom: 30px;
  29. }
  30.  
  31. .form-group {
  32. margin-bottom: 20px;
  33. }
  34.  
  35. .form-group label {
  36. display: block;
  37. margin-bottom: 8px;
  38. }
  39.  
  40. .form-group input {
  41. width: 100%;
  42. padding: 10px;
  43. border: 1px solid #ccc;
  44. border-radius: 5px;
  45. }
  46.  
  47. .login-btn {
  48. width: 100%;
  49. padding: 10px;
  50. background-color: #4CAF50;
  51. color: white;
  52. border: none;
  53. border-radius: 5px;
  54. font-size: 16px;
  55. cursor: pointer;
  56. }
  57.  
  58. .login-btn:hover {
  59. background-color: #45a049;
  60. }
  61. </style>
  62. </head>
  63. <body>
  64. <div class="login-container">
  65. <h2>เข้าสู่ระบบ</h2>
  66. <form action="/login" method="POST">
  67. <div class="form-group">
  68. <label for="username">ชื่อผู้ใช้</label>
  69. <input type="text" id="username" name="username" required />
  70. </div>
  71. <div class="form-group">
  72. <label for="password">รหัสผ่าน</label>
  73. <input type="password" id="password" name="password" required />
  74. </div>
  75. <button type="submit" class="login-btn">เข้าสู่ระบบ</button>
  76. </form>
  77. </div>
  78. </body>
  79. </html>
Success #stdin #stdout 0.03s 26020KB
stdin
Standard input is empty
stdout
<!DOCTYPE html>
<html lang="th">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>Login</title>
  <style>
    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background-color: #f2f2f2;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      margin: 0;
    }

    .login-container {
      background: white;
      padding: 40px;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.2);
      width: 300px;
    }

    .login-container h2 {
      text-align: center;
      margin-bottom: 30px;
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      margin-bottom: 8px;
    }

    .form-group input {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
    }

    .login-btn {
      width: 100%;
      padding: 10px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
    }

    .login-btn:hover {
      background-color: #45a049;
    }
  </style>
</head>
<body>
  <div class="login-container">
    <h2>เข้าสู่ระบบ</h2>
    <form action="/login" method="POST">
      <div class="form-group">
        <label for="username">ชื่อผู้ใช้</label>
        <input type="text" id="username" name="username" required />
      </div>
      <div class="form-group">
        <label for="password">รหัสผ่าน</label>
        <input type="password" id="password" name="password" required />
      </div>
      <button type="submit" class="login-btn">เข้าสู่ระบบ</button>
    </form>
  </div>
</body>
</html>