Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 0746b669 authored by 65160394's avatar 65160394
Browse files

Project Round 7

parent 7429a295
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ header {
nav {
display: flex;
justify-content: center;
gap: 15px;
gap: 20px;
margin-top: 10px;
}
......@@ -43,11 +43,10 @@ nav a:hover {
.header {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
text-align: center;
padding: 20px;
background-color: #4c4cd9; /* สีพื้นหลัง */
background-color: #4c4cd9;
color: white;
}
......
......@@ -19,15 +19,13 @@
<input type="text" name="query" placeholder="Search for tours..." required>
<button type="submit">Search</button>
</form>
</nav>
<div class="header">
<% if (session && session.userId) { %> <!-- ตรวจสอบว่า userId อยู่ใน session หรือไม่ -->
<a><%= session.userName %></a> <!-- แสดงชื่อผู้ใช้ -->
<a href="/logout">Logout</a>
<% } else { %>
<a href="/login" class="login-btn">Login</a> <!-- ถ้ายังไม่ได้ login -->
<% } %>
</div>
</nav>
</header>
<section>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment