Skip to content

Conversation

@pol2rd
Copy link

@pol2rd pol2rd commented Nov 23, 2025

No description provided.

@R0EYK R0EYK self-requested a review November 28, 2025 10:43
Copy link

@R0EYK R0EYK left a comment

Choose a reason for hiding this comment

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

Hi , I have left you some comments on your code.

The code looks REALLY nice.

document.querySelector(".subscribe-success p b").textContent = email;
subscribeSuccessWindow.classList.add("active");
}
} No newline at end of file
Copy link

Choose a reason for hiding this comment

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

Nice clean and easy to read js code.

}
.subscribe-success.active {
max-width: 340px;
height: 350px;
Copy link

Choose a reason for hiding this comment

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

In stuff like border-radius, paddings , margings, try working with different measurments than percentages, rem is the most recommended and used one

Copy link
Author

Choose a reason for hiding this comment

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

what about width and height? and the breakpoints in the media queries?

font-family: "Roboto", sans-serif;
}

@media(min-width: 528px) {
Copy link

Choose a reason for hiding this comment

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

Good job on the media queries!

Copy link

@ShirYahav ShirYahav left a comment

Choose a reason for hiding this comment

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

Needs Improvement:

  • Improve HTML semantics and structure.
  • Review where to declare const variables.
  • Prefer responsive units over px.


<!-- Sign-up form end -->
<article class="subscribe-form">
<picture>

Choose a reason for hiding this comment

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

use div instead of picture

Copy link
Author

@pol2rd pol2rd Dec 10, 2025

Choose a reason for hiding this comment

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

but I have read the the best practice for having a picture's size dynamically change dependent of the screen's size is using
<picture> <source media="" srcset=""> <source media="" srcset=""> <img src="" alt=" > </picture>

Choose a reason for hiding this comment

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

The structure and usage of elements here could be improved. Consider pasting your code into an AI to get suggestions for a cleaner, more semantic structure

emailInput.classList.add("invalid");
document.getElementById(".inalid-email-label").classList.add("invalid");
} else {
const form = event.target;

Choose a reason for hiding this comment

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

you want to define the const variables oustside of the function - read why

Copy link
Author

Choose a reason for hiding this comment

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

but in this case those variables depend of values that exist only inside the function's scope

font-family: "Roboto", sans-serif;
}

@media(min-width: 528px) {

Choose a reason for hiding this comment

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

Choose either mobile-first or desktop-first as your default approach, no need to specify both
(paste comment to ai it will explain it)

@media(min-width: 528px) {
.subscribe-form {
max-height: 400px;
max-width: 800px;

Choose a reason for hiding this comment

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

Try to avoid using px, there are more responsive units (like rem, em, etc...) read about it

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.

3 participants