-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from imadityayadav/main
#23 Created a doctors Profile Page
- Loading branch information
Showing
3 changed files
with
65 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from "react"; | ||
|
||
const DoctorProfile = ({ name, specialization, experience, degrees, bio, image }) => { | ||
return ( | ||
<div className="flex flex-col items-center bg-gray-50 py-8 px-6 rounded-lg shadow-md max-w-md mx-auto mt-10"> | ||
|
||
{/* Doctor's Image */} | ||
<img | ||
className="w-40 h-40 object-cover rounded-full mb-4" | ||
src={image} | ||
alt={`Dr. ${name}`} | ||
/> | ||
{/* Doctor's Name */} | ||
<h1 className="text-3xl font-semibold text-gray-800 mb-2">Dr. {name}</h1> | ||
{/* Doctor's Specialization */} | ||
<p className="text-xl text-gray-600 mb-4">{specialization}</p> | ||
{/* Experience */} | ||
<p className="text-lg text-gray-500 mb-2">Experience: {experience} years</p> | ||
{/* Degrees */} | ||
<h2 className="text-lg font-semibold text-gray-700 mb-2">Degrees:</h2> | ||
<ul className="list-disc list-inside mb-4 text-gray-600"> | ||
{degrees.map((degree, index) => ( | ||
<li key={index}>{degree}</li> | ||
))} | ||
</ul> | ||
{/* Bio */} | ||
<p className="text-gray-600 mb-4 text-center">{bio}</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default DoctorProfile; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters