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

Develop #3935

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

Develop #3935

wants to merge 2 commits into from

Conversation

KwagFN
Copy link

@KwagFN KwagFN commented Nov 10, 2024

  • DEMO LINK
  • TEST REPORT LINK
  • Changing 'month-lengh' and 'start-day' modifier in the code element
    reflects in changing calendar layout
  • Each day has no modifiers, only class (eg. calendar__day)
  • All Typical Mistakes from BEM lesson theory are checked.
  • Code follows all the Code Style Rules ❗️

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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


Thank you for your hard work on this project! 😊 While your code meets most of the task requirements, there are a few critical issues that need to be addressed before we can approve the pull request:

  1. SCSS File Location and Naming: The task specifies that styles should be written in src/styles/main.scss, but currently, they are in src/styles/index.scss. Please move the SCSS code to the correct file and ensure the naming aligns with the task requirements.

  2. Margin Calculation: There seems to be a potential issue with the margin-left calculation for the first day of the week. Please verify that this calculation is correct and aligns with your design intentions.

  3. Checklist Compliance: Ensure that typical BEM mistakes are checked and that your code follows the provided code style rules. Document these checks in your pull request description.

Once these issues are resolved, your code will be in great shape! Keep up the great work, and feel free to reach out if you have any questions or need further assistance. 🚀

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review button in the Reviewers tab.

Comment on lines 30 to 31
margin-left: (
$calendar-day-width * ($i) + ($calendar-day-width * ($i) / 100)

Choose a reason for hiding this comment

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

The calculation for margin-left seems to be adding an extra percentage of the calendar-day-width. Ensure this is intentional and aligns with your design requirements. If not, consider revising the calculation.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

Congratulations on your progress! 🎉 Your code now meets the task requirements and constraints, and the previous issues have been addressed effectively. Here are some key points and suggestions for further improvement:

  1. SCSS File Location and Naming: You've correctly placed your styles in src/styles/main.scss. Great job!

  2. Margin Calculation: The margin-left calculation for the first day of the week is implemented using a variable and appears to be correct. However, ensure that the calculation aligns with your design intentions, as there seems to be an extra percentage-based margin. Double-check this to avoid layout issues.

  3. BEM and Code Style: Your code adheres to BEM conventions, and the style rules are followed as per the task requirements. Keep up the good work!

  4. Link to Compiled CSS: The href attribute in your HTML file is currently pointing to main.scss, which is incorrect. It should link to the compiled CSS file, typically main.css. Make sure your build process compiles SCSS to CSS and update the link accordingly.

Overall, you've done a fantastic job resolving the previous issues. Remember to address the critical points mentioned to enhance your code quality further. This decision is made to help you move forward with your learning journey. Keep improving and learning from these experiences! 🚀

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

@@ -9,10 +9,42 @@
<title>Calendar</title>
<link
rel="stylesheet"
href="styles/index.scss"
href="styles/main.scss"

Choose a reason for hiding this comment

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

The href attribute is pointing to main.scss, which is incorrect. It should point to the compiled CSS file, typically main.css, after the SCSS is processed. Ensure that your build process compiles SCSS to CSS and update the link accordingly.

Comment on lines +30 to +31
margin-left: (
$calendar-day-width * ($i) + ($calendar-day-width * ($i) / 100)

Choose a reason for hiding this comment

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

The margin-left calculation for the first day of the week seems to be adding an extra percentage-based margin. Verify if this is intentional and aligns with your design intentions. If not, consider adjusting the calculation.

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.

2 participants