mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 14:25:50 +00:00
adding sample.html file
This commit is contained in:
parent
aa2273e955
commit
b0903cb3ba
1 changed files with 91 additions and 0 deletions
91
sample.html
Normal file
91
sample.html
Normal file
|
@ -0,0 +1,91 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Registration Form</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
.form-container {
|
||||
background-color: white;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
width: 400px;
|
||||
}
|
||||
h2 {
|
||||
text-align: center;
|
||||
}
|
||||
label {
|
||||
display: block;
|
||||
margin: 8px 0 4px;
|
||||
}
|
||||
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"] {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
margin-bottom: 12px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
}
|
||||
input[type="submit"] {
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 10px 15px;
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
width: 100%;
|
||||
}
|
||||
input[type="submit"]:hover {
|
||||
background-color: #45a049;
|
||||
}
|
||||
.message {
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="form-container">
|
||||
<h2>Register</h2>
|
||||
<form action="submit_form.php" method="POST">
|
||||
<label for="fname">First Name</label>
|
||||
<input type="text" id="fname" name="fname" required>
|
||||
|
||||
<label for="lname">Last Name</label>
|
||||
<input type="text" id="lname" name="lname" required>
|
||||
|
||||
<label for="email">Email Address</label>
|
||||
<input type="email" id="email" name="email" required>
|
||||
|
||||
<label for="phone">Phone Number</label>
|
||||
<input type="tel" id="phone" name="phone" required>
|
||||
|
||||
<label for="dob">Date of Birth</label>
|
||||
<input type="date" id="dob" name="dob" required>
|
||||
|
||||
<label for="password">Password</label>
|
||||
<input type="password" id="password" name="password" required>
|
||||
|
||||
<label for="confirm-password">Confirm Password</label>
|
||||
<input type="password" id="confirm-password" name="confirm-password" required>
|
||||
|
||||
<input type="submit" value="Register">
|
||||
</form>
|
||||
|
||||
<div class="message">
|
||||
<p>Already have an account? <a href="#">Login here</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in a new issue