Untitled

 avatar
unknown
plain_text
2 years ago
2.5 kB
4
Indexable
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<!-- Include Bootstrap CSS -->
<style>
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;
}

body {
	font-family: Arial, sans-serif;
	background-color: #f2f2f2;
}

.container {
	display: flex;
	flex-direction: column; margin : auto;
	width: 35%;
	margin-top: 50px;
	background-color: #fff;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
	margin: auto;
}

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;
}
</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>
<br>
	<div class="container">
		<h2>Login</h2>
		<div th:if="${errorMessage}">
		<p th:text="${errorMessage}"></p>
		</div>
	
		<form action="#" th:action="@{/zuari/getotp}" method="post">
			<label for="phone">Phone Number</label> <input type="text" id="phone"
				name="phoneNo" th:value=${phoneNo}
				placeholder="Enter your phone number">

			<button type="submit">Get OTP</button>
			<br>
			<br>
			<br>
		</form>
		<div th:if="${value == 1}">
			<form action="#" th:action="@{/zuari/verifyotp}" th:object="${user}">
				<input type="text" th:name="OTP" placeholder="Enter the OTP here"
					required> <input type="hidden" th:value="${user.id}"
					th:name="id">
				<button type="submit">Verify OTP</button>
			</form>
		</div>
		<br>
		<br>
		<div></div>
		<div>
			<h5>
				Login With Password
				<button>
					<a th:href="@{/zuari/logByPass}">Click Here
				</button>
			</h5>
		</div>
		<div>
			<a th:href="@{/zuari/signup}">Don't have an account? Register
				here </a>
		</div>

	</div>


</body>
</html>
Editor is loading...