Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Estefania Jacobo #26

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

Conversation

estefijacobo
Copy link

@estefijacobo estefijacobo commented Nov 26, 2018

What's your progress on the project?

  • Semantic HTML - 100%
  • CSS Styles - 90%
  • Responsive design - 90% (for mobile and desktop)
  • JS interactions - 50% (Customer's slider, Blog slider, warning when js is disabled).

Where should the reviewer start?

The responsive part was worked until the blog section.
Missing styling and most of the responsive design for tablet

Checklist

  • [X ] I've double checked there are no console.logs
  • I already reviewed at least other 2 PRs

import "../styles/clouds-section.scss";
import "../styles/newsletter-section.scss";
import "../styles/footer.scss";
import "../styles/responsive.scss";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice way of separating the css rules


function modifyBlogData(currentBlog) {
var textSection = document.getElementsByClassName('blog-section__content-text');
var titleText = textSection[0].getElementsByTagName('h1');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remember that selecting HTML nodes directly is not a good practice, using classes is preferred in case the site structure changes.

x[i].style.display = "block";
}
var image = document.getElementsByClassName("blog-section__content-image");
image[0].src = blogData.articles[currentBlog].images.desktop;
Copy link
Collaborator

Choose a reason for hiding this comment

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

When you manage responsive images in this way you'll have problems when users don't have js turned on, I'd recommend to use HTML native responsive images instead https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images

}
function displayCustomer(n) {
var i;
var x = document.getElementsByClassName("customers-section__images");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just as a recommendation, when selecting nodes with js is better to do it with selectors that are not related with styles and use a prefix, ie: .js-my-class-selector

Copy link
Collaborator

@ederchrono ederchrono left a comment

Choose a reason for hiding this comment

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

I made some comments and also noticed that some sections responsiveness break in some specific screen sizes, but in general the project complies with the basic requirements.

@ederchrono ederchrono added the Certificated PRs that passed the course label Jan 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Certificated PRs that passed the course
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants