Skip to content

Commit

Permalink
appointment-feature added
Browse files Browse the repository at this point in the history
  • Loading branch information
MadhavDhatrak committed Oct 2, 2024
1 parent b89f640 commit da51eb4
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 0 deletions.
72 changes: 72 additions & 0 deletions Appointment.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}

body {
background-color: #f0f4f8;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

.container {
background-color: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
width: 400px;
}

h1 {
text-align: center;
margin-bottom: 20px;
color: #333;
}

.appointment-form {
display: flex;
flex-direction: column;
}

.form-group {
margin-bottom: 15px;
}

.form-group label {
margin-bottom: 5px;
font-size: 14px;
color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 14px;
}

.form-group textarea {
resize: none;
}

.btn {
background-color: #4CAF50;
color: white;
padding: 10px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}

.btn:hover {
background-color: #45a049;
}

53 changes: 53 additions & 0 deletions appointment.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Doctor Appointment</title>
<link rel="stylesheet" href="Appointment.css">
</head>
<body>
<div class="container">
<h1>Book Your Doctor's Appointment</h1>

<form class="appointment-form">
<div class="form-group">
<label for="name">Full Name:</label>
<input type="text" id="name" name="name" placeholder="Enter your full name" required>
</div>

<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" placeholder="Enter your email" required>
</div>

<div class="form-group">
<label for="phone">Phone Number:</label>
<input type="tel" id="phone" name="phone" placeholder="Enter your phone number" required>
</div>

<div class="form-group">
<label for="date">Appointment Date:</label>
<input type="date" id="date" name="date" required>
</div>

<div class="form-group">
<label for="doctor">Select Doctor:</label>
<select id="doctor" name="doctor" required>
<option value="" disabled selected>Select a doctor</option>
<option value="dr_smith">Dr. John Smith</option>
<option value="dr_jones">Dr. Emily Jones</option>
<option value="dr_brown">Dr. Michael Brown</option>
</select>
</div>

<div class="form-group">
<label for="message">Additional Notes:</label>
<textarea id="message" name="message" rows="4" placeholder="Any special concerns or requirements"></textarea>
</div>

<button type="submit" class="btn">Book Appointment</button>
</form>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<a href="#contact">Contact</a>
<a href="#blogs">Blogs</a>
<a href="nearby.html">Nearby</a>
<a href="appointment.html"><span>Book Your Appointment</span></a>
</nav>

</header>
Expand Down

0 comments on commit da51eb4

Please sign in to comment.