Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
update home page
Browse files Browse the repository at this point in the history
  • Loading branch information
bakaqc committed Dec 7, 2023
1 parent f1c66db commit bf8785c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)

UserDAO.getInstance().update(us);

// String success = "Chỉnh sửa thông tin thành công.";
// request.setAttribute("success", success);
// request.getRequestDispatcher("/view/user_profile.jsp").forward(request, response);
// String success = "Chỉnh sửa thông tin thành công.";
// session.setAttribute("success", success);

response.sendRedirect("profile");
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/bakaqc/flower/dao/CartDAO.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@ public void delete(String id) {
public static void main(String[] args) {
getInstance().delete("31");
}
}
}
4 changes: 0 additions & 4 deletions src/main/webapp/style/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ h1 {
padding: 5px 300px 0;
}

.search{
padding-left: inherit;

}
.search-input {
width: 350px;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/view/common/header.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="collapse navbar-collapse p-2 flex-column" id="navbarContent">
<div class="d-flex justify-content-center justify-content-lg-between flex-column flex-lg-row w-100 test">
<a href="home" class="navbar-brand d-none d-lg-block">LovePik</a>
<form action="search" method="get" class="d-flex search">
<form action="search" method="get" class="d-flex search" style="padding-left: 200px;">
<input value="${txtS}" name="txt" type="search" class="form-control me-2 search-input" placeholder="Search" />
<button class="btn btn-outline-dark" type="submit">
<i class="fas fa-search"></i>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/view/home.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<img src="./img/banner_home.png" alt="Banner" class="w-100" height="350">
</header>

<h1>Danh mục sản phẩm</h1>
<h1>Danh sách sản phẩm</h1>

<h3 class="not-found">${notFound}</h3>

Expand Down
5 changes: 2 additions & 3 deletions src/main/webapp/view/user_history.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,8 @@
</c:if>

<c:if test="${listHB.isEmpty()}">
<div class="row pt-5 pb-3">
<h3 style="text-align: center; margin-top: 80px;">Bạn chưa mua sản phẩm nào.</h3>
</div>
<h3 style="text-align: center; margin-top: 190px;">Bạn chưa mua sản phẩm nào.</h3>


<div class="row gy-4 align-items-center pt-5 pb-5">
<div class="col-12 col-sm-4"></div>
Expand Down
2 changes: 0 additions & 2 deletions src/main/webapp/view/user_login.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@

<div class="card-body p-5 text-center " style="border-radius: 1rem;background-color: antiquewhite;border:solid 5px white;">

<h2>${success}</h2>

<form action="login" method="post">

<div class="mb-md-5 mt-md-4 pb-5">
Expand Down
3 changes: 0 additions & 3 deletions src/main/webapp/view/user_profile.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@

<div class="col-sm-10">
<h3 style="text-align: center;">Thông tin khách hàng</h3>

<!--<h4 style="color: green; text-align: center;">${success}</h4>-->

<div class="container infor" style="padding: 0;">

<form class="form" action="" method="post" id="registrationForm">
Expand Down

0 comments on commit bf8785c

Please sign in to comment.