diff --git a/public/css/styles.css b/public/css/styles.css index 033ebe417610a7982e053905d0d9ab0d0bea0b51..ce8a0b515a6afecfde306c34cbcc2b5935fdb00f 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -1,164 +1,154 @@ -/* Reset styles */ +/* รีเซ็ตค่าเริ่มต้น */ * { margin: 0; padding: 0; box-sizing: border-box; + font-family: 'Arial', sans-serif; } body { - font-family: 'Arial', sans-serif; - background-color: #f4f7f6; + background-color: #f4f4f4; color: #333; line-height: 1.6; } +/* HEADER */ header { - background-color: #4CAF50; - color: white; - padding: 20px 0; + background: #0073e6; + color: #fff; + padding: 20px; text-align: center; - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); -} - -header h1 { - font-size: 2.5rem; - margin-bottom: 10px; } nav { display: flex; justify-content: center; - gap: 20px; - margin-top: 15px; + gap: 15px; + margin-top: 10px; } nav a { - color: white; + color: #fff; text-decoration: none; - font-size: 1.1rem; - padding: 8px 16px; - transition: background-color 0.3s ease; + font-weight: bold; + padding: 10px 15px; + background: rgba(255, 255, 255, 0.2); + border-radius: 5px; + transition: 0.3s; } nav a:hover { - background-color: #45a049; - border-radius: 5px; + background: rgba(255, 255, 255, 0.5); +} + +/* SEARCH BAR */ +form { + display: inline-flex; + margin-top: 10px; } +input[type="text"] { + padding: 8px; + border: none; + border-radius: 5px 0 0 5px; + width: 200px; +} + +button { + padding: 8px 12px; + border: none; + background: #ff5722; + color: white; + border-radius: 0 5px 5px 0; + cursor: pointer; + transition: 0.3s; +} + +button:hover { + background: #e64a19; +} + +/* SECTION */ section { - max-width: 1200px; + max-width: 800px; margin: 30px auto; + background: white; padding: 20px; - background-color: #fff; - border-radius: 8px; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); + border-radius: 10px; } -section h2 { - font-size: 2rem; - color: #333; - margin-bottom: 20px; +h2 { + color: #0073e6; text-align: center; + margin-bottom: 15px; } +/* TOUR LIST */ ul { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); - gap: 20px; list-style: none; } ul li { - background-color: #f9f9f9; - padding: 20px; - border-radius: 8px; - box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); - transition: transform 0.3s ease, box-shadow 0.3s ease; -} - -ul li:hover { - transform: translateY(-10px); - box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); + background: #fff; + padding: 15px; + margin: 10px 0; + border-left: 5px solid #0073e6; + display: flex; + justify-content: space-between; + align-items: center; } ul li a { - font-size: 1.2rem; - color: #333; text-decoration: none; + color: #0073e6; font-weight: bold; - display: block; - margin-bottom: 10px; } -ul li span { - font-size: 1rem; - color: #4CAF50; +ul li a:hover { + text-decoration: underline; } -.btn-create, .btn-edit { - display: inline-block; - padding: 10px 20px; - background-color: #008CBA; +/* BUTTONS */ +.btn-create, .btn-edit, .btn-delete { + padding: 8px 12px; + border: none; color: white; - text-decoration: none; border-radius: 5px; - margin-top: 20px; - font-size: 1rem; - transition: background-color 0.3s ease; + text-decoration: none; + cursor: pointer; + transition: 0.3s; } -.btn-create:hover, .btn-edit:hover { - background-color: #007bb5; +.btn-create { + background: #28a745; } -.btn-delete { - display: inline-block; - padding: 10px 20px; - background-color: #ff0000; - color: white; - text-decoration: none; - border-radius: 5px; - margin-top: 20px; - font-size: 1rem; - transition: background-color 0.3s ease; +.btn-edit { + background: #ffc107; } -.btn-delete:hover { - background-color: #e72323; +.btn-delete { + background: #dc3545; } -footer { - background-color: #333; - color: white; - text-align: center; - padding: 20px 0; - margin-top: 40px; +.btn-create:hover { + background: #218838; } -footer p { - font-size: 1rem; +.btn-edit:hover { + background: #e0a800; } -/* Mobile Responsive */ -@media (max-width: 768px) { - header h1 { - font-size: 2rem; - } - - nav { - flex-direction: column; - } - - nav a { - font-size: 1rem; - padding: 10px; - } - - section { - margin: 20px; - } +.btn-delete:hover { + background: #c82333; +} - ul { - grid-template-columns: 1fr; - } +/* FOOTER */ +footer { + text-align: center; + padding: 20px; + background: #333; + color: white; + margin-top: 30px; } diff --git a/views/index.ejs b/views/index.ejs index caf3129e9d77fdc706f14c594edd997c967c4a41..aef53ec914c84cfdb1956475c0da1ec7361e1e46 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -8,7 +8,7 @@ </head> <body> <header> - <h1>Welcome to Our Tour Website</h1> + <h1>Welcome to JourneyHub</h1> <nav> <a href="/">Home</a> <% if (session.userId) { %>