Skip to content

Conversation

@brauni18
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 left you come commetns

generally - Do not use id so much, you can use class.
This is because class got less specificity than id, using id all over is kind of brute force solution

<body>

<!-- Sign-up form start -->
<div class="main-card" id="signup-card">
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 both id and classes? you can use 2 classes

Copy link
Author

Choose a reason for hiding this comment

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

there is no special reason, its just that I'm familiar with it

Copy link
Member

Choose a reason for hiding this comment

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

It would be better to not always use id, only for spesific cases

<!-- Success message end -->

<div class="attribution">
<!-- <div class="attribution">
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 comment your code, delete it.
we can always check the history via git

@@ -0,0 +1,91 @@
// Getting elements
Copy link
Member

Choose a reason for hiding this comment

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

The first thing that came to my mind is "ok so this entire page was generated by ai"

You don't need all of those commends, this is a really bad practice
comments that explain what the code is doing are bad comments, or the code is bad and need clarification

Am i wrong to assume that this is ai code?

Copy link
Author

Choose a reason for hiding this comment

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

not entirely I've used ai here for 2 things

  1. comments
  2. adding the fonts

const showSuccessMessage = (email) => {
signupCard.classList.add('hidden');
successCard.classList.remove('hidden');
userEmailSpan.textContent = email;
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 check that your email if defined

if (!emailDomain.includes(domain)) {
showError();
return false;
} else {
Copy link
Member

Choose a reason for hiding this comment

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

In your if you have a return statement so you dont really need the else

Also you have 2 ifs that are doing exactly the same thing.
You can save the conditions inside a variables and combine those into single if with no else

font-family: 'Roboto';
src: url('./assets/fonts/Roboto-Bold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
Copy link
Member

Choose a reason for hiding this comment

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

This is the exact same code as above, remove it

justify-content: center;
align-items: center;

background-color: hsl(234, 29%, 20%);
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 variables and not inline like this

.main-card{
display: flex;
flex-direction: row;
background-color: hsl(0, 0%, 100%);
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 for all of the colors in this page

}
.enabled-button{
transition: background 0.3s ease;
/*adding gradient to button*/
Copy link
Member

Choose a reason for hiding this comment

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

So this is ai generated? or you wrote it?
Any way remove it because comments like this are bad practice

Copy link
Author

Choose a reason for hiding this comment

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

no no thats me not ai

display: none;
}

/* Error States */
Copy link
Member

Choose a reason for hiding this comment

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

My comment about comments in code apply to this entire page

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