-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
306ab81
commit 147f0a8
Showing
3 changed files
with
20 additions
and
19 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
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import {FaUsers,FaUser} from 'react-icons/fa'; | ||
import { FaUsers, FaUser } from "react-icons/fa"; | ||
|
||
const Instructor = ({instructor}) => { | ||
// console.log(instructor.instructorName[0].instructor); | ||
return ( | ||
<div className="card w-96 bg-base-100 shadow-xl"> | ||
<figure><img src={instructor.instructorImage[0].image} alt="Instructor Image" /></figure> | ||
<div className="card-body"> | ||
<h2 className="card-title text-3xl">{instructor.instructorName[0].instructor}</h2> | ||
<p className="text-1xl font-semibold flex"> <FaUser></FaUser> Instructor Id: {instructor._id}</p> | ||
<p className="text-2xl font-semibold flex"><FaUsers></FaUsers>Total Student: {instructor.totalEnrollments}</p> | ||
<div className="card-actions justify-end"> | ||
<button className="btn btn-primary">View Details</button> | ||
</div> | ||
</div> | ||
const Instructor = ({ instructor }) => { | ||
console.log(instructor.instructorImage[0]); | ||
return ( | ||
<div className="card w-96 bg-base-200 shadow-xl flex flex-col items-center p-5 transform transition-all duration-1000 hover:scale-105 my-3"> | ||
<div className="avatar flex items-center justify-center "> | ||
<div className="w-24 rounded-full ring ring-primary ring-offset-base-100 ring-offset-2"> | ||
<img src={instructor.instructorImage[0].image} /> | ||
</div> | ||
); | ||
</div> | ||
<div className="card-body text-center"> | ||
<h2 className="card-title">{instructor.instructorName[0].instructor}</h2> | ||
<h2>Speak-Up Mentor</h2> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Instructor; | ||
export default Instructor; |