diff --git a/components/doctors/ListDoctors.js b/components/doctors/ListDoctors.js deleted file mode 100644 index f5742e9..0000000 --- a/components/doctors/ListDoctors.js +++ /dev/null @@ -1,17 +0,0 @@ -import doctors from '@/data/doctors.json' - -function ListDoctors() { - - console.log(doctors); - console.log('doctors'); - - return ( -
- -
- ) -} - -export default ListDoctors \ No newline at end of file diff --git a/components/doctors/index.js b/components/doctors/index.js index 8ca9a19..bfd952f 100644 --- a/components/doctors/index.js +++ b/components/doctors/index.js @@ -1,7 +1,7 @@ import { Button } from "@mui/material"; import LocationD from "../icons/LocationD"; import SearchBar from "./search"; -import ListDoctors from "./ListDoctors"; +import ListDoctors from "./listDoctors"; function DoctorsPage() { return ( diff --git a/components/doctors/listDoctors/ItemDoctor.js b/components/doctors/listDoctors/ItemDoctor.js new file mode 100644 index 0000000..9a9856b --- /dev/null +++ b/components/doctors/listDoctors/ItemDoctor.js @@ -0,0 +1,30 @@ +import LikeD from "@/components/icons/LikeD" +import Image from "next/image" + +function ItemDoctor({ doctor }) { + return ( +
  • +
    + image-doctor +
    +

    {doctor.name}

    +

    تخصص: {doctor.expertise}

    +
    +
    + +

    {doctor.satisfaction}%

    +
    +
    +
    +
    +
  • + ) +} + +export default ItemDoctor \ No newline at end of file diff --git a/components/doctors/listDoctors/index.js b/components/doctors/listDoctors/index.js new file mode 100644 index 0000000..823039e --- /dev/null +++ b/components/doctors/listDoctors/index.js @@ -0,0 +1,23 @@ +import doctors from '@/data/doctors.json' +import ItemDoctor from './ItemDoctor'; + +function ListDoctors() { + + console.log(doctors); + console.log('doctors'); + + return ( +
    + +
    + ) +} + +export default ListDoctors \ No newline at end of file diff --git a/components/icons/LikeD.js b/components/icons/LikeD.js new file mode 100644 index 0000000..c5f2a49 --- /dev/null +++ b/components/icons/LikeD.js @@ -0,0 +1,10 @@ +function LikeD() { + return ( + + + + + ) +} + +export default LikeD \ No newline at end of file diff --git a/public/assets/images/doctor.png b/public/assets/images/doctor.png index 7e37f47..43a2b3d 100644 Binary files a/public/assets/images/doctor.png and b/public/assets/images/doctor.png differ