Fixes #58 - Show doctors section on home page & Adding components to storybook#60
Fixes #58 - Show doctors section on home page & Adding components to storybook#60
Conversation
rt4914
left a comment
There was a problem hiding this comment.
@rray524 Great work.
I have left some suggestions. Also feel free to shift storybook items to next PR but in that case udpate the PR title and description to Fixes part of #xx instead of Fixes #xx and Resolves #xx.
Feel free to reach out if there any doubts.
There was a problem hiding this comment.
Add all these images inside assets/temp folder so that once our project is ready we know that we can delete this temp folder.
There was a problem hiding this comment.
Here, I have added the storybook inside this PR - changed title and description and images are shifted to under temp folder. Thank you so much for your kind review.
src/components/Paragraph.jsx
Outdated
| return ( | ||
| <p | ||
| className={`text-2xl leading-relaxed text-gray-500 ${className} font-normal`} | ||
| > |
There was a problem hiding this comment.
Convert this to single line
<p className={text-2xl leading-relaxed text-gray-500 ${className} font-normal}>
And add storybook item for this component.
| @@ -0,0 +1,20 @@ | |||
| import PropTypes from "prop-types"; | |||
|
|
|||
| const Container = ({ children, className }) => { | |||
There was a problem hiding this comment.
Add story book item fro this component.
Nice work.
There was a problem hiding this comment.
Thanks, added storybook for this.
src/index.css
Outdated
| body { | ||
| font-family: "Open Sans", Arial, sans-serif; | ||
| } | ||
| .with-background::before { |
There was a problem hiding this comment.
Create a separate slick.css file and import that only for the required component.
| import HeaderTitle from "./HeaderTitle"; | ||
| import TeamSlider from "./TeamSlider"; | ||
|
|
||
| const DoctorSectionWrapper = () => { |
There was a problem hiding this comment.
Remove OurDoctors folder and keep this directly in sections.
Also renamed to TopDoctorsSection.
There was a problem hiding this comment.
Solved it. thank you!
| @@ -0,0 +1,14 @@ | |||
| import HeaderText from "../../components/HeaderText"; | |||
|
|
|||
| const HeaderTitle = () => { | |||
There was a problem hiding this comment.
This is not required, directly use HeaderText where required.
There was a problem hiding this comment.
Solved it. thank you! HeaderText is being used directly now!
| import PropTypes from "prop-types"; | ||
| import "@fortawesome/fontawesome-free/css/all.css"; | ||
|
|
||
| const StarRating = ({ rating }) => { |
There was a problem hiding this comment.
Shift this to component folder and also add a storybook for this.
| }, | ||
| ]; | ||
|
|
||
| const TeamSlider = () => { |
There was a problem hiding this comment.
This should be doctor slider.
Also add this to containers and not sections
Also add storyboook item for this.
| ], | ||
| }; | ||
|
|
||
| return ( |
There was a problem hiding this comment.
This slider does not work on mobile screen. In that there is one item visible which is correct but there are only 2 dots, which means that dots/indicators are not responsive.
| </Slider> | ||
| ); | ||
| }; | ||
| TeamSlider.propTypes = { |
Checklist:
Our AgentssectionResolves #58
How to Add the Doctor section?
How to Get All components of Doctor Team section
Description
The "Doctor" section typically includes detailed profiles of medical professionals, covering their specialties, qualifications, experience, and availability. Key features often include booking options for consultations, reviews from patients, and contact information. This section aims to help patients make informed choices and streamline appointment scheduling.
Here, additionally storybook is added for below mentioned components for a better designer view:
Command run:
npm run storybook