diff --git a/app/clinic/[slug]/page.js b/app/clinic/[slug]/page.js new file mode 100644 index 0000000..a933d73 --- /dev/null +++ b/app/clinic/[slug]/page.js @@ -0,0 +1,18 @@ +import ClinicPage from '@/components/clinic'; +import Layout from '@/components/layout'; +import clinics from '@/data/clinics.json'; + +function Blog({ params: { slug } }) { + + const clinic = clinics.find(item => item.id === +slug); + + return ( + + + + ) +} + +export default Blog \ No newline at end of file diff --git a/app/clinics/page.js b/app/clinics/page.js new file mode 100644 index 0000000..dcfef43 --- /dev/null +++ b/app/clinics/page.js @@ -0,0 +1,12 @@ +import ClinicsPage from '@/components/clinics'; +import Layout from '@/components/layout'; + +function Clinics() { + return ( + + + + ) +} + +export default Clinics \ No newline at end of file diff --git a/app/component/Pageguide.js b/app/component/Pageguide.js new file mode 100644 index 0000000..581b92b --- /dev/null +++ b/app/component/Pageguide.js @@ -0,0 +1,26 @@ +function Pageguide({ list }) { + return ( + + ) +} + +export default Pageguide \ No newline at end of file diff --git a/app/component/head/index.js b/app/component/head/index.js new file mode 100644 index 0000000..372f8ad --- /dev/null +++ b/app/component/head/index.js @@ -0,0 +1,13 @@ +function HeadPageList({ children, title, detail }) { + return ( +
+
+

{title}

+

{detail}

+ {children} +
+
+ ) +} + +export default HeadPageList \ No newline at end of file diff --git a/components/clinic/index.js b/components/clinic/index.js new file mode 100644 index 0000000..656a942 --- /dev/null +++ b/components/clinic/index.js @@ -0,0 +1,7 @@ +function ClinicPage({data}) { + return ( +
ClinicPage
+ ) +} + +export default ClinicPage \ No newline at end of file diff --git a/components/clinics/head/SearchBar.js b/components/clinics/head/SearchBar.js new file mode 100644 index 0000000..9801ea7 --- /dev/null +++ b/components/clinics/head/SearchBar.js @@ -0,0 +1,55 @@ +import ArrowBottomD from '@/components/icons/ArrowBottomD' +import SearchD from '@/components/icons/SearchD' +import SettingD from '@/components/icons/SettingD' +import { Button, ButtonGroup, TextField } from '@mui/material' +import React from 'react' + +function SearchBar() { + return ( + + + + + + ) +} + +export default SearchBar \ No newline at end of file diff --git a/components/clinics/index.js b/components/clinics/index.js new file mode 100644 index 0000000..c2332a0 --- /dev/null +++ b/components/clinics/index.js @@ -0,0 +1,19 @@ +import HeadPageList from "@/app/component/head"; +import List from "./list"; +import SearchBar from "./head/SearchBar"; + +function ClinicsPage() { + return ( +
+ + + + +
+ ) +} + +export default ClinicsPage \ No newline at end of file diff --git a/components/clinics/list/ItemClinic.js b/components/clinics/list/ItemClinic.js new file mode 100644 index 0000000..a9157d1 --- /dev/null +++ b/components/clinics/list/ItemClinic.js @@ -0,0 +1,46 @@ +import ArrowLeftD from "@/components/icons/ArrowLeftD" +import ClockClinic from "@/components/icons/ClockClinic" +import LocationClinic from "@/components/icons/LocationClinic" +import { Button } from "@mui/material" +import Image from "next/image" +import Link from "next/link" + +function ItemClinic({ data }) { + return ( +
  • +
    + img clinic +
    +

    {data.title}

    +

    {data.doctors} پزشک

    +
    +
    +
    +
    + +

    {data.location}

    +
    +
    + +

    ساعت کاری: {data.hours_of_work}

    +
    +
    + + {/* Arrow */} + + + +
  • + ) +} + +export default ItemClinic \ No newline at end of file diff --git a/components/clinics/list/index.js b/components/clinics/list/index.js new file mode 100644 index 0000000..d88b755 --- /dev/null +++ b/components/clinics/list/index.js @@ -0,0 +1,30 @@ +import Pageguide from "@/app/component/Pageguide" +import clinics from '@/data/clinics.json'; +import ItemClinic from "./ItemClinic"; +import { Pagination } from "@mui/material"; + +function List() { + + const listPage = ['کلینیک ها', 'اهواز'] + + return ( +
    + + +
    + +
    +
    + ) +} + +export default List \ No newline at end of file diff --git a/components/icons/ClockClinic.js b/components/icons/ClockClinic.js new file mode 100644 index 0000000..805cf45 --- /dev/null +++ b/components/icons/ClockClinic.js @@ -0,0 +1,10 @@ +function ClockClinic() { + return ( + + + + + ) +} + +export default ClockClinic \ No newline at end of file diff --git a/components/icons/LocationClinic.js b/components/icons/LocationClinic.js new file mode 100644 index 0000000..906864d --- /dev/null +++ b/components/icons/LocationClinic.js @@ -0,0 +1,10 @@ +function LocationClinic() { + return ( + + + + + ) +} + +export default LocationClinic \ No newline at end of file diff --git a/data/clinics.json b/data/clinics.json new file mode 100644 index 0000000..19f8886 --- /dev/null +++ b/data/clinics.json @@ -0,0 +1,194 @@ +[ + { + "id": 1, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 2, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 3, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 4, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 5, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 6, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 7, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 8, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 9, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 10, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 11, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 12, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 13, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 14, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 15, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 16, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 17, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 18, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 19, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 20, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 21, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 22, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 23, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "شنبه تا سه شنبه ساعت 16 تا 22" + }, + { + "id": 24, + "img": "/assets/images/clinic-img.png", + "title": "کلینیک تخصصی و فوق تخصصی نیکان", + "doctors": "۵۰", + "location": "اهواز، کیان آباد، خیابان 16 غربی، پلاک 10", + "hours_of_work": "ساعت کاری: شنبه تا سه شنبه ساعت 16 تا 22" + } +] \ No newline at end of file diff --git a/public/assets/images/clinic-img.png b/public/assets/images/clinic-img.png new file mode 100644 index 0000000..ee651e9 Binary files /dev/null and b/public/assets/images/clinic-img.png differ