From e5cab5f14c042fd77d5f118ad116ca143eda6e3c Mon Sep 17 00:00:00 2001 From: Atiwit Pattanapukdee <65160394@go.buu.ac.th> Date: Tue, 18 Mar 2025 23:16:21 +0700 Subject: [PATCH] Project Round 6 --- public/{ => css}/profile.css | 0 public/css/styles.css | 12 ++++++++++++ views/createtour.ejs | 5 +---- views/index.ejs | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) rename public/{ => css}/profile.css (100%) diff --git a/public/profile.css b/public/css/profile.css similarity index 100% rename from public/profile.css rename to public/css/profile.css diff --git a/public/css/styles.css b/public/css/styles.css index 491b2dd..355dcd9 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -41,6 +41,18 @@ nav a:hover { background: rgba(255, 255, 255, 0.5); } +.btn-login { + background-color: #4CAF50; + color: white; + padding: 10px 20px; + border-radius: 5px; + text-decoration: none; + font-weight: bold; +} + +.btn-login:hover { + background-color: #45a049; +} /* SEARCH BAR */ form { diff --git a/views/createtour.ejs b/views/createtour.ejs index 601e065..2687700 100644 --- a/views/createtour.ejs +++ b/views/createtour.ejs @@ -7,11 +7,8 @@ <link rel="stylesheet" href="/css/create.css"> </head> <body> - <header> - <h1>Create New Tour</h1> - </header> - <main> + <h1>Create New Tour</h1> <form action="/create" method="POST"> <div> <label for="tourName">Tour Name:</label> diff --git a/views/index.ejs b/views/index.ejs index e59dd42..56c199c 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -22,7 +22,7 @@ <a href="/profile"><%= session.userName %></a> <!-- แสดงชื่อผู้ใช้ --> <a href="/logout">Logout</a> <% } else { %> - <a href="/login">Login</a> <!-- ถ้ายังไม่ได้ login --> + <a href="/login" class="btn-login">Login</a> <!-- ถ้ายังไม่ได้ login --> <% } %> </nav> </header> -- GitLab