Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

london9-lovelace-html-css-challemges-Boshra-Mahmoudi#214

Open
BoshraM wants to merge 3 commits into
CodeYourFuture:mainfrom
BoshraM:main
Open

london9-lovelace-html-css-challemges-Boshra-Mahmoudi#214
BoshraM wants to merge 3 commits into
CodeYourFuture:mainfrom
BoshraM:main

Conversation

@BoshraM
Copy link
Copy Markdown

@BoshraM BoshraM commented Nov 14, 2022

No description provided.

Copy link
Copy Markdown

@kahei-li kahei-li left a comment

Choose a reason for hiding this comment

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

Overall very well done @BoshraM ! Design is clean and well thought out. Just a few improvement points and mistakes to watch out for going forward! Keep up the good work :)

Comment thread Form-Controls/styles.css
Comment on lines +9 to +18
background-color: #d5f0fd;
width: 90%;
text-align: center;
border-bottom: solid 5px #d8cefe;
}

main {
width: 90%;
margin: auto;
background-color: #ddebf8;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

For colors, you can use css var to define these colors at the beginning for readability. Especially, when you are reusing them multiple times later in the file. Hint: using ':root'
Improvement 1: define and use css var for colors

Comment thread Form-Controls/styles.css
border-bottom: 5px solid #d8d5fd;
}

@media screen and (max-width: 900px) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Very nice! Making it responsive here already!

Comment thread Form-Controls/index.html
Comment on lines +21 to +25
><img
class="color_img"
alt="Black T-shirt"
src="https://static.thcdn.com/productimg/1600/1600/13254031-1024901106882108.jpg"
/><br />
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I know you are trying to format it for readability. But you should try keep certain tags like into 1 line if you can. Long as it is readable. Ultimately, the more lines you have the longer it will take browser to load the files so you want to minimise things for performance. Hope this make sense :)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

first of all thank you to review my codes, i was looking why my performance is not 100% i didn't figure out is because of that. I will use local path , but about line when i save my code in Vs code ,it is just changed in this way. I will look to find out why?

Comment thread Form-Controls/index.html
Comment on lines +26 to +32
<input
type="radio"
id="balck"
name="colour"
required
/>Black</label
>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

again same here. can be 1 line

Comment thread Form-Controls/index.html
<label for="grey"
><img
class="color_img"
alt="Grey T-shirt"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Well done on adding descriptive 'alt' text to your images! Lots of people miss this or not use descriptive names. As we also need to cater this for visually impaired users who will be user screen readers.

Comment thread Form-Controls/index.html
type="text"
id="name"
placeholder="your register name"
pattern="[Bb]oshra [Mm]ahmoudi|[Mm]ehreen [Aa]ziz|[Ss]hayan [Mm]ahnam|[Hh]ary [Ll]i"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Took me a while to get this working on the site. Then I figured you have put 'hary' instead of 'harry'. Just becareful on typos and spellings, especially for rules and patterns. A common but can be devastating mistake. But very nicely done getting the pattern setup!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

sorry about that, spelling is one of my weakness in coding. I should pay attention more

Comment thread Form-Controls/index.html
required
/></label>

<label for="eamil">Email</label>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

think you have a typo here 'eamil' instead of 'email'. This could be hard to spot later if we continued this exercise to build a backend. The 'for' attribute needs to be the same as the 'id' so this would have broken something when submitting the form.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I will change as your suggestion , thanks a lot

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants