Untitled
unknown
plain_text
3 years ago
2.0 kB
6
Indexable
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<!-- Include Bootstrap CSS -->
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
.container {
display: flex;
margin: auto;
width: 30%;
flex-direction: column;
margin-top: 50px;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
}
input[type=text], input[type=password] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
button[type=submit] {
background-color: #4CAF50;
color: #fff;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
width: 100%;
font-size: 18px;
}
button[type=submit]:hover {
background-color: #45a049;
}
h2 {
text-align: center;
}
label {
font-size: 18px;
display: block;
margin-bottom: 10px;
}
header {
display: flex;
flex-direction: column;
align-items: center;
background-color: #f5f5f5;
padding: 20px;
}
header img {
width: 150px;
margin-right: 20px;
}
header label {
font-size: 16px;
font-weight: bold;
}
}
</style>
</head>
<body>
<header>
<div>
<img src="https://zuarifarmhub.com/wp-content/uploads/2022/11/farmhub-logo-1.png" alt="Example image" style="display:inline-block;">
<div>
<label style="text-align:right;">India's Leading AgriTech Company</label>
</div>
</div>
</header>
<div class="container">
<div>
<h2>Login</h2>
</div>
<div>
<div th:if="${errorMessage}">
<p th:text="${errorMessage}"></p>
</div>
<form th:action="@{/zuari/loginSubmit}">
<label for="phone">Phone Number</label> <input type="text"
id="phone" name="phoneNo" placeholder="Enter your phone number">
<label for="password">Password</label> <input type="password"
id="password" name="password" placeholder="Enter your password">
<button type="submit">Login</button>
</form>
</div>
</div>
</body>
</html>
Editor is loading...