-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #58 - Show doctors section on home page & Adding components to storybook #60
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
src/assets/img_01.webp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Convert this to single line
<p className={
text-2xl leading-relaxed text-gray-500 ${className} font-normal}>
And add storybook item for this component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks
@@ -0,0 +1,20 @@ | |||
import PropTypes from "prop-types"; | |||
|
|||
const Container = ({ children, className }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add story book item fro this component.
Nice work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, added storybook for this.
src/index.css
Outdated
@@ -5,3 +5,47 @@ | |||
body { | |||
font-family: "Open Sans", Arial, sans-serif; | |||
} | |||
.with-background::before { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create a separate slick.css
file and import that only for the required component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks
import HeaderTitle from "./HeaderTitle"; | ||
import TeamSlider from "./TeamSlider"; | ||
|
||
const DoctorSectionWrapper = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove OurDoctors
folder and keep this directly in sections.
Also renamed to TopDoctorsSection
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solved it. thank you!
@@ -0,0 +1,14 @@ | |||
import HeaderText from "../../components/HeaderText"; | |||
|
|||
const HeaderTitle = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not required, directly use HeaderText
where required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shift this to component
folder and also add a storybook for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved. thanks!
}, | ||
]; | ||
|
||
const TeamSlider = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be doctor slider.
Also add this to containers
and not sections
Also add storyboook item for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved. thanks!
], | ||
}; | ||
|
||
return ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved. thanks!
</Slider> | ||
); | ||
}; | ||
TeamSlider.propTypes = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add one blank line above this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved. thanks!
Checklist:
Our Agents
sectionResolves #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