change footer & add pagination to doctors page & add page specialties
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
import DoctorsPage from '@/components/doctors';
|
||||||
|
import Layout from '@/components/layout';
|
||||||
|
|
||||||
|
function Doctors() {
|
||||||
|
return (
|
||||||
|
<Layout title='تخصص ها' name='specialties'>
|
||||||
|
<DoctorsPage />
|
||||||
|
</Layout>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Doctors
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
import doctors from '@/data/doctors.json'
|
import doctors from '@/data/doctors.json'
|
||||||
import ItemDoctor from './ItemDoctor';
|
import ItemDoctor from './ItemDoctor';
|
||||||
|
import { Pagination } from '@mui/material';
|
||||||
|
|
||||||
function ListDoctors() {
|
function ListDoctors() {
|
||||||
return (
|
return (
|
||||||
@@ -12,6 +13,23 @@ function ListDoctors() {
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
<div className='mt-[56px] flex justify-center'>
|
||||||
|
<Pagination
|
||||||
|
// count={doctors.length / 12} org
|
||||||
|
count={20} // test
|
||||||
|
color='primary'
|
||||||
|
sx={{
|
||||||
|
'& .mui-8q7g72-MuiButtonBase-root-MuiPaginationItem-root': {
|
||||||
|
color: '#616161',
|
||||||
|
fontSize: '16px',
|
||||||
|
fontWeight: '500'
|
||||||
|
},
|
||||||
|
'& .mui-8q7g72-MuiButtonBase-root-MuiPaginationItem-root.Mui-selected': {
|
||||||
|
color: '#F8F8FF'
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@ import { listNav } from "@/constans";
|
|||||||
import { Button } from "@mui/material";
|
import { Button } from "@mui/material";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
|
||||||
function Header() {
|
function Header({ name }) {
|
||||||
|
|
||||||
|
console.log(name);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="bg-[#FAFAFA] rounded-lg shadow-[0px_1px_24.8px_0px_rgba(204,_204,_204,_0.18)] w-full mx-auto"
|
className="bg-[#FAFAFA] rounded-lg shadow-[0px_1px_24.8px_0px_rgba(204,_204,_204,_0.18)] w-full mx-auto"
|
||||||
@@ -18,9 +21,9 @@ function Header() {
|
|||||||
<Link
|
<Link
|
||||||
href={nav.link}
|
href={nav.link}
|
||||||
className={`
|
className={`
|
||||||
${nav.id === 1 ? 'text-[#526CAC]' : 'text-[#525252]'}
|
${nav.link.replace('/', '') === name ? '!text-[#526CAC]' : 'text-[#525252]'}
|
||||||
text-[16px] font-medium
|
text-[16px] font-medium
|
||||||
`}
|
`}
|
||||||
>
|
>
|
||||||
{nav.name}
|
{nav.name}
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
import Footer from './Footer';
|
import Footer from './Footer';
|
||||||
import Header from './Header';
|
import Header from './Header';
|
||||||
|
|
||||||
function Layout({ children, title }) {
|
function Layout({ children, title, name }) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<main className="w-full min-h-screen">
|
<main className="w-full min-h-screen">
|
||||||
<header className="w-full fixed top-10 right-1/2 translate-x-1/2 padding-responsive z-[10]">
|
<header className="w-full fixed top-10 right-1/2 translate-x-1/2 padding-responsive z-[10]">
|
||||||
<Header />
|
<Header name={name} />
|
||||||
</header>
|
</header>
|
||||||
<section>
|
<section>
|
||||||
{children}
|
{children}
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
<footer className="bg-[#F5F5F5] mt-[206px] pt-[44px] bg-banner-footer !bg-center !bg-no-repeat !bg-cover">
|
<footer className="bg-[#F5F5F5] mt-[100px] pt-[44px] bg-banner-footer !bg-center !bg-no-repeat !bg-cover">
|
||||||
<div className='padding-responsive'>
|
<div className='padding-responsive'>
|
||||||
<Footer />
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
function SpecialtiesPage() {
|
||||||
|
return (
|
||||||
|
<div>SpecialtiesPage</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default SpecialtiesPage
|
||||||
Reference in New Issue
Block a user