Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

mshinh
Copy link
Contributor

@mshinh mshinh commented Oct 28, 2020

Fixed #8 : Improved the current style of book info page to match the mockups

@kwlskiy kwlskiy requested a review from Valloa October 28, 2020 15:30
cursor: pointer;
border-radius: 15px;
}

Copy link
Collaborator

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

<dd>{book.yearPublished}</dd>
</dl>
<img src={`https://picsum.photos/200/300`} alt="book cover" width={200} height={300} />
<>
Copy link
Collaborator

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';

Copy link
Collaborator

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

@Valloa
Copy link
Collaborator

Valloa commented Oct 28, 2020

@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 :)

Copy link
Collaborator

@Valloa Valloa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see other comments

@mshinh
Copy link
Contributor Author

mshinh commented Oct 29, 2020

I made the requested changes to the PR. Please review and let me know.
Also, if there's more changes required, let me know your discord username.
Thanks.
Discord - MuskanS.#7989

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

books html page
2 participants