Skip to content
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

week1/Order desktop #46

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

LubnaKolko
Copy link

No description provided.

Copy link

@jason-vasilev jason-vasilev left a comment

Choose a reason for hiding this comment

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

Well done. The design looks nice. The CSS can be optimized quite a lot, tho. There are many properties that are not setting anything or are introducing unnecessary limitations in width and height. Have a look at those.

You are welcome to make corrections and then merge to your own repositories main branch.

Choose a reason for hiding this comment

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

A big part of the Front-end Development craft is connected to performance optimization. This is not only related to the code, but often to all other assets. The images can be optimized in multiple ways.

  • they can be resized in a more fitting way. You would avoid loading a 1200 x 1200 px image in a container that might be just 250 x 250 px
  • they can be compressed
  • they can be exported in a more efficient format as lets say WebP

To achieve some of those improvements you can explore tools as TinyPNG and Squoosh.

Choose a reason for hiding this comment

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

You can delete this file, as it's not used anywhere in your HTML.

Choose a reason for hiding this comment

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

This can also be deleted.

Comment on lines +12 to +15
<header>
<h1>ready to pay</h1>
<p>Fill in your payment details</p>
</header>

Choose a reason for hiding this comment

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

Good semantic markup 👌

<p class="total">Total</p>
<p class="per">$333/month</p>
</div>
<hr class="order-line">

Choose a reason for hiding this comment

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

This can be done a bit more simple. Instead of a <hr> tag you could use border-top: 2px solid white; on the .row2 div ;)

Comment on lines +74 to +75
width: 55px;
height: 20px;

Choose a reason for hiding this comment

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

Questionable Figma styles (:

font-family: Arial;
font-size: 18px;
font-weight: 400;
line-height: 20.7px;

Choose a reason for hiding this comment

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

Avoid using fractions of a pixel, as browsers might round differently - some up, others down, and then your design won't look the same across browsers. Us for example either 20px or 21 here.

Comment on lines +83 to +94
.total-bold {
width: 55px;
height: 20px;
top: 81px;
left: 307px;
gap: 0px;
font-family: Arial;
font-size: 18px;
font-weight: 700;
line-height: 20.7px;
text-align: left;
}

Choose a reason for hiding this comment

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

Some properties don't take any effect as they are already set, others don't work as they take effect only on a special display type. Toggle on and off in the browser inspector to see what can be deleted.
values (1)

text-align: left;
}

.per {

Choose a reason for hiding this comment

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

Please, use more descriptive class names.

Comment on lines +113 to +117
width: 55px;
height: 20px;
top: 81px;
left: 1012px;
gap: 0px;

Choose a reason for hiding this comment

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

Using the previous comments, review the rest of your CSS and see what could be fixed. I see the same repeated issues.

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