Skip to content

Conversation

@beny25585
Copy link

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 I left you some comments

<body>
<div class="successMessege">
<img
src="assets\images\icon-success.svg"
Copy link
Member

Choose a reason for hiding this comment

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

src="assets/images/icon-success.svg" ?
Notice the / vs \

<h1>Thanks for subscribing!</h1>
<p>
A confirmation email has been sent to
<b>ash@loremcompany.com.</b> Please open it and click the button inside
Copy link
Member

Choose a reason for hiding this comment

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

Do not style via tags but via css

Copy link
Author

@beny25585 beny25585 Nov 29, 2025

Choose a reason for hiding this comment

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

I can do ita with span class=email and do in css but its seems ogly in the html but if you want i can do it

Copy link
Member

Choose a reason for hiding this comment

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

The reason we are not styling things in html is because we want to have separation of concerns, html should be used for putting elements and structore
And css should be the place where you style you structore

Just like in any other programming language we wont want to mix concepts into 1 place

<p>Join 60,000+ product managers receiving monthly updates on:</p>

Stay updated!
<div class="allCheckMarks">
Copy link
Member

Choose a reason for hiding this comment

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

Be consistent with your class names likeThis or like-this

submitBtn.addEventListener("click", (e) => {
if (checkValidEmail(emailInput.value)) {
e.preventDefault();
successMessege.classList.add("active");
Copy link
Member

Choose a reason for hiding this comment

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

In here if you will add a return after the if you will not need the else
Also remove the console logs that you have, in production we never ship logging like this

display: flex;
flex-direction: column;
height: fit-content;
width: fit-content;
Copy link
Member

Choose a reason for hiding this comment

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

Will it work if you remove both height and width?
if not why are you using those properties?

padding: 10px;
cursor: pointer;
border-radius: 5px;
border: none;
Copy link
Member

Choose a reason for hiding this comment

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

Did you button had some border ? or why did you need to explicitly remove the border?

Copy link
Author

Choose a reason for hiding this comment

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

ther is a litle gray border its boder me

}
.error-message.active {
display: block;
color: red;
Copy link
Member

Choose a reason for hiding this comment

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

So color from variables comment above apply to this entire file

align-items: flex-start;
background-color: white;
position: absolute;
z-index: 3;
Copy link
Member

Choose a reason for hiding this comment

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

You have 2 z-indexes in this file and they are both 3.
Why did you add those? and why 3 and not something lower?

.successMessege p {
font-size: clamp(0.8rem, 2vw, 1.2rem);
}
.successMessege .success-icon {
Copy link
Member

Choose a reason for hiding this comment

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

How about just .success-icon

display: flex;
flex-direction: column;
width: 100vw;
height: 110vh;
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 this to be more tall than the view port?

Copy link
Author

Choose a reason for hiding this comment

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

image 110h

Copy link
Author

Choose a reason for hiding this comment

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

image 100h

Copy link
Member

Choose a reason for hiding this comment

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

I think that means that your code is not responsive enough, for the task its fine

@beny25585 beny25585 requested a review from Tamir198 November 29, 2025 11:33
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.

Great work

A confirmation email has been sent to
<b>ash@loremcompany.com.</b> Please open it and click the button inside
to confirm your subscription.
<span class="companyEmail">ash@loremcompany.com.</span> Please open it
Copy link
Member

Choose a reason for hiding this comment

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

Graet

@@ -1,4 +1,9 @@
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
:root {
--error-color: #ff3333;
Copy link
Member

Choose a reason for hiding this comment

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

Great work

border-radius: 5px;
}
input:active::placeholder {
color: red;
Copy link
Member

Choose a reason for hiding this comment

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

Just this color bring form css variables as well

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