-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix styling of book info page #45
base: master
Are you sure you want to change the base?
Conversation
cursor: pointer; | ||
border-radius: 15px; | ||
} | ||
|
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.
@Shinh18 : both buttons have the same rules applied, except for the background, you could put everything in common and add two classes on your HTML element, one for the common aspect and one for the specific rule
frontend/src/pages/Book.jsx
Outdated
<dd>{book.yearPublished}</dd> | ||
</dl> | ||
<img src={`https://picsum.photos/200/300`} alt="book cover" width={200} height={300} /> | ||
<> |
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.
@Shinh18 You are missing a heading on the page, don't know where we sould put it...
the class names are not really coherent with the rest of the app you should look into the BEM methodology
for exemple : https://webuild.envato.com/blog/how-to-scale-and-maintain-legacy-css-with-sass-and-smacss/
you can also look at how I named in other components.
@@ -0,0 +1,85 @@ | |||
@import '../fonts/fontWeight.scss'; | |||
|
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.
don't really like the floats and % unit
i would also like you to change the px unit into em, em is a unit scaled on the current font-size
@Shinh18 I guess most of the layout works but i added comments, if something is not clear or you have any issue ask me anytime on discord :) |
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.
see other comments
I made the requested changes to the PR. Please review and let me know. |
Fixed #8 : Improved the current style of book info page to match the mockups