Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Conversation

@farzaneh-haghani
Copy link
Contributor

@farzaneh-haghani farzaneh-haghani commented Jan 12, 2024

  • CYF font and CYF favicon applied.
  • All react components deleted and changed to pure HTML.
  • README is in progress...

Performance: 96
Accessibility: 100
Best Practices: 95
SEO: 90

@netlify
Copy link

netlify bot commented Jan 12, 2024

Deploy Preview for cyf-labs ready!

Name Link
🔨 Latest commit 24bcf04
🔍 Latest deploy log https://app.netlify.com/sites/cyf-labs/deploys/65a1a87ef44f690008a2d88e
😎 Deploy Preview https://deploy-preview-11--cyf-labs.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 configuration.

@farzaneh-haghani
Copy link
Contributor Author

@SallyMcGrath I would appreciate, if you could review it and give me ideas on how to improve.

Copy link
Member

@SallyMcGrath SallyMcGrath left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together. ⭐

If you're interested in polishing this up, you might find this workshop useful. You could ask other people to join you and do it in class or midweek.

https://github.com/CodeYourFuture/CYF-Workshops/tree/main/polish

It goes over some of the most common ways to elevate a site with professional techniques.

I would also like to see a container on the line length please! https://baymard.com/blog/line-length-readability

}

.App .cyf .about-trainees figure {
.cyf .about-trainees figure {
Copy link
Member

Choose a reason for hiding this comment

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

Do you need this to be so specfied?

Always use the lightest weight you can when writing CSS. Only use what you must. I think many of these rules could be simplified in this way. What do you think?

https://css-tricks.com/strategies-keeping-css-specificity-low/

body {
background-color: var(--gray);
min-height: 100vh;
min-width: 300px;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
min-width: 300px;

What is this doing? Can you talk me through it?

margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Raleway", "Roboto", "Open Sans", sans-serif;
Copy link
Member

Choose a reason for hiding this comment

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

Do you need to use universal selector to apply a general font rule?

Would it be more usual to apply this to the body? Have a think.

border-radius: 5px;
margin-top: 20px;
padding: 20px;
margin-top: 1rem;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
margin-top: 1rem;

Avoid using margin-top if you can. In general, top margins aren't reliable in CSS and in a more complex sheet they can cause unexpected behaviours.

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_box_model/Mastering_margin_collapsing

Well it's not that unexpected. They collapse! 😉


.header h1 {
flex-grow: 0.75;
font-size: 2rem;
Copy link
Member

Choose a reason for hiding this comment

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

The font scale seems a bit random.

Typically in a design we define a font scale - perhaps put this at the top of the page with your colour palette and your spacing - and then pick sizes from that scale.

https://fonts.google.com/knowledge/glossary/scale

@media screen and (min-width: 665px) and (max-width: 1120px) {
.App {
padding: 0 20px;
@media screen and (min-width: 765px) and (max-width: 1120px) {
Copy link
Member

Choose a reason for hiding this comment

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

This is a curiously specific sizing rule. Could this be a magic number?

https://css-tricks.com/magic-numbers-in-css/

What problem are you trying to resolve with this - is it possible you could resolve with one of these layout classics:

https://web.dev/articles/one-line-layouts

.App .cyf .about-trainees figure {
.cyf .about-trainees figure {
grid-template-columns: repeat(4, 1fr);
gap: 0px;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
gap: 0px;

If you removed this, what would happen?

@farzaneh-haghani farzaneh-haghani marked this pull request as ready for review April 8, 2025 00:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants