<%- include('partials/header', { username: username }) %> <div class="container my-5 edit-project-container"> <h2 class="text-center mb-4 edit-project-title">Edit Project</h2> <div class="card shadow-lg edit-project-card"> <div class="card-body"> <form action="/project/edit/<%= project.id %>" method="POST"> <div class="form-group"> <label for="project_name" class="edit-label">Project Name</label> <input type="text" class="form-control edit-input" name="project_name" id="project_name" value="<%= project.project_name %>" required> </div> <div class="form-group"> <label for="description" class="edit-label">Description</label> <textarea class="form-control edit-input" name="description" id="description" rows="6"><%= project.description %></textarea> </div> <button type="submit" class="btn btn-block edit-submit-btn"> Update Project </button> </form> </div> </div> </div> <%- include('partials/footer') %> <style> /* พื้นหลังและฟอนต์หลัก */ body { background: #f4f4f4; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } /* Container สำหรับหน้า Edit Project */ .edit-project-container { max-width: 600px; background: #ffffff; border-radius: 10px; padding: 40px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } /* หัวข้อหน้า */ .edit-project-title { color: #EE4D2D; font-size: 2.2rem; font-weight: 700; } /* Card styling */ .edit-project-card { border: none; border-radius: 10px; overflow: hidden; } /* Label ในฟอร์ม */ .edit-label { font-weight: 600; color: #333; margin-bottom: 5px; } /* Input fields ในฟอร์ม */ .edit-input { border: 1px solid #ddd; border-radius: 5px; padding: 12px; transition: border-color 0.3s ease; } .edit-input:focus { border-color: #EE4D2D; box-shadow: 0 0 5px rgba(238, 77, 45, 0.3); } /* Submit button */ .edit-submit-btn { background-color: #EE4D2D; color: #fff; border: none; border-radius: 50px; padding: 12px; font-size: 1.1rem; font-weight: 600; transition: background-color 0.3s ease; } .edit-submit-btn:hover { background-color: #d84315; } </style>