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

Set up color variables and types to ensure color consistency #83

Merged

Conversation

Tammy-Ajoko
Copy link
Contributor

@Tammy-Ajoko Tammy-Ajoko commented Oct 23, 2022

Summary

Fixes #82
Addresses #10

  • Set up color variables and types to ensure color consistency.
  • Refactored both the login and signup CSS files into a single CSS file.

List of changes proposed in this PR (pull-request)

  • Added a root containing color variables to the CSS file
  • Changed individual colors in the CSS file to assigned variable names.
  • Created a new CSS folder.
  • Refactored both login and signup CSS files into a single file.
  • Deleted old login and signup CSS files.

What should a reviewer concentrate their feedback on?

  • Color balance
  • Everything looks ok?
  • Let me know if there's any change that i can remove or add to make this functionality work optimally

@sandygudie @BatoolMM

Comment on lines 3 to 13
:root{
--black-20: rgb(20, 20, 20);
--gray-52: rgb(52, 52, 52);
--gray-72: rgb(72, 72, 72);
--gray-203: rgb(203, 213, 225);
--white-255: rgb(255, 255, 255);
--white-248: rgb(248, 250, 252);
--skyblue-190: hsl(190, 97%, 47%);
--darkblue-245: hsl(245, 95%, 22%);
--blue-208: hsl(208, 97%, 58%);
}
Copy link
Member

@sandygudie sandygudie Oct 23, 2022

Choose a reason for hiding this comment

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

Welldone @Tammy-Ajoko for this great work, i will suggest a few changes:

Rather than repeating this root color variables and the google font in each file(login and sign up), you could use
@import url(../../GlobalStyles.css); to import the global CSS file to each of the files

Comment on lines 1 to 11
:root{
--black-20: rgb(20, 20, 20);
--gray-52: rgb(52, 52, 52);
--gray-72: rgb(72, 72, 72);
--gray-203: rgb(203, 213, 225);
--white-248: rgb(248,250,252);
--white-255: rgb(255, 255, 255);
--skyblue-190: hsl(190, 97%, 47%);
--darkblue-245: hsl(245, 95%, 22%);
--blue-208: hsl(208, 97%, 58%);
}
Copy link
Member

Choose a reason for hiding this comment

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

Please use/add the color variables from the Figma design

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sandygudie I have added colors from the Figma file but if there are still any you feel I missed please let me know, it would be most helpful if you specify the exact section in which I didn't use the exact color.

@sandygudie
Copy link
Member

sandygudie commented Oct 23, 2022

@Tammy-Ajoko Also, (this is not from you)

  • I noticed that the existing login and sign-up pages have conflicting class names(for example container)
  • Also, the login CSS files and signup CSS files are basically the same code,
    please can you refactor it to one CSS file for both login and sign-up pages
    Do let me know if you need clarity on this
    Thanks

@Tammy-Ajoko
Copy link
Contributor Author

@sandygudie I noticed that and was going to make comment on that. I understand what you mean I would refactor it into 1 CSS file and let you know if I have any questions 😊

@Tammy-Ajoko
Copy link
Contributor Author

Tammy-Ajoko commented Oct 25, 2022

@sandygudie do I create a new pull request for the refactored CSS file or just update this one

Copy link
Contributor Author

@Tammy-Ajoko Tammy-Ajoko left a comment

Choose a reason for hiding this comment

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

  • I added a new color variable to GlobalStyle.css
  • I refactored both the login and signup CSS files into a single CSS file

Copy link
Contributor Author

@Tammy-Ajoko Tammy-Ajoko left a comment

Choose a reason for hiding this comment

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

Added new color variables

Frontend/src/pages/CSS/login-signup.css Outdated Show resolved Hide resolved
import "./signup.css"
import "../CSS/login-signup.css"
Copy link
Member

@sandygudie sandygudie Nov 2, 2022

Choose a reason for hiding this comment

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

Regarding the login/signup CSS file, I will suggest this

  • Rename the "CSS" folder to "auth", this folder will be for everything authentication.
  • Move the login JSX file and signup JSX file to it.
  • update the path on the routing file.

Please do let me know if you need clarity

@netlify
Copy link

netlify bot commented Nov 10, 2022

Deploy Preview for oscsa-moocs ready!

Name Link
🔨 Latest commit c628836
🔍 Latest deploy log https://app.netlify.com/sites/oscsa-moocs/deploys/636d1f9abad4dd0009793e66
😎 Deploy Preview https://deploy-preview-83--oscsa-moocs.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sandygudie sandygudie self-requested a review November 10, 2022 15:59
@sandygudie sandygudie merged commit d36367b into Open-Science-Community-Saudi-Arabia:dev_team2 Nov 10, 2022
RealRichi3 pushed a commit to RealRichi3/MOOCs that referenced this pull request Feb 21, 2023
…Ajoko/dev_team2

Set up color variables and types to ensure color consistency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants