-
Notifications
You must be signed in to change notification settings - Fork 38
Feature/after comments #30
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
base: main
Are you sure you want to change the base?
Conversation
Tamir198
left a comment
There was a problem hiding this 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 cooments, they are relevant to every place in the code.
I just didnt want to repeat myself a lot
| @@ -0,0 +1,28 @@ | |||
| const emailPattern = document.getElementById("email"); | |||
| const CCC = "#ccc" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should not be colors in here, they should sit inside css variable object, also ccc is not a good name, the name should indicate the color and not the hexa value
| @@ -0,0 +1,28 @@ | |||
| const emailPattern = document.getElementById("email"); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the patterns but the element
| const email = emailPattern.value; | ||
| const pattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; | ||
| if (email === "") { | ||
| emailPattern.style.borderColor = "CCC"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never style via js, only from css and dynamic classes
|
|
||
|
|
||
| body { | ||
| background-color: hsl(234, 29%, 20%); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bring the colors from css variables
|
|
||
| .container { | ||
| display: flex; | ||
| background: white; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here and for all of the similar places
| background: white; | ||
| width: 45%; | ||
| height: 55%; | ||
| border-radius: 25px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try not to mix different units, go with 1
| justify-content: center; | ||
| padding: 50px; | ||
| width: 43%; | ||
| height: auto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really need this? will it have any effect?
|
|
||
| } | ||
|
|
||
| #left-side h1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you think of a better name than left side? what if this will not be on the left side in the future?
| </p> | ||
|
|
||
| <ul> | ||
| <li><img src="assets/images/icon-list.svg" alt="">Product discovery and building what matters</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty alt means nothing in terms of accessibility
No description provided.