basic style doctor page

This commit is contained in:
Ehsan
2024-06-27 17:06:05 +03:30
parent 1f70079845
commit 855f31eed8
7 changed files with 64 additions and 12 deletions
+16
View File
@@ -0,0 +1,16 @@
import DoctorPage from "@/components/doctor";
import doctors from '@/data/doctors.json';
import Layout from "@/components/layout";
function Doctor({ params: { slug } }) {
const doctor = doctors.find(item => item.id === +slug);
return (
<Layout title='دکتر ها'>
<DoctorPage doctor={doctor} />
</Layout>
)
}
export default Doctor
+2 -2
View File
@@ -1,7 +1,7 @@
import DoctorsPage from '@/components/doctors';
import Layout from '@/components/layout';
function index() {
function Doctors() {
return (
<Layout title='دکتر ها'>
<DoctorsPage />
@@ -9,4 +9,4 @@ function index() {
)
}
export default index
export default Doctors
+1 -1
View File
@@ -118,7 +118,7 @@ body {
font-family: iran-sans;
padding: 0;
margin: 0;
background: #F5F5F5;
background: #FAFAFA;
}
.font-kalame {