Skip to content

Conversation

@snirtal
Copy link

@snirtal snirtal commented Dec 2, 2025

No description provided.

Copy link
Member

@Tamir198 Tamir198 left a comment

Choose a reason for hiding this comment

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

Hey left you some comments, please make sure to change every place in the code thats relevant to the comment, I didnt want to repeat myself

height: 100vh;
margin: 0;
padding: 0;
background-color: #2c2e47;
Copy link
Member

Choose a reason for hiding this comment

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

colors should come from css vairables

}

.maincontainer {
margin-top: 32%;
Copy link
Member

Choose a reason for hiding this comment

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

Will this be responsive?

background: white;
border-radius: 20px;
display: flex;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
Copy link
Member

Choose a reason for hiding this comment

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

Same comment about the color in here and in every other place

padding: 40px;
}

.text h1 {
Copy link
Member

Choose a reason for hiding this comment

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

You could give the h1 class making it more specific

}

#subscribeBtn {
width: 110%;
Copy link
Member

Choose a reason for hiding this comment

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

Can you use class instead? id will override all of the other css rules made by class.
Also, why do you need this element to be larger than his parent?


const [, domain] = email.split("@");

if (domain === "gmail.com" || domain === "colman.com") {
Copy link
Member

Choose a reason for hiding this comment

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

Hardcoded strings should be saved inside constants


if (domain === "gmail.com" || domain === "colman.com") {
btn.classList.add("valid");
} else {
Copy link
Member

Choose a reason for hiding this comment

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

You could add return here to avoid the else

}
});

btn.onclick = function () {
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need to do it like this? you are already using even listeners, dont override the default on click function

const email = input.value;

if (!email.includes("@")) {
error.style.display = "block";
Copy link
Member

Choose a reason for hiding this comment

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

Never style stuff from your js, use it via classes and css

successCard.style.display = "flex";
};

const dismissBtn = document.getElementById("dismissBtn");
Copy link
Member

Choose a reason for hiding this comment

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

You should place all of your elements on the top of the file

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