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

My awsome bike #2572

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

Conversation

DominikaKarmel
Copy link

Copy link

@darokrk darokrk left a comment

Choose a reason for hiding this comment

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

UI looks awesome 🎉 but code needs improvements 👨🏽‍💻

@import "utils/mixins.scss";
@import "utils/reset.scss";

.logo {
Copy link

Choose a reason for hiding this comment

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

There is an extra empty line after the '.logo' class declaration. Consider removing unnecessary empty lines for cleaner code.

body {
background: $c-gray;
}
@import "utils/variables.scss";
Copy link

Choose a reason for hiding this comment

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

Importing 'variables.scss', 'mixins.scss', and 'reset.scss' at the end of the file. They should be imported at the beginning of the file as they contain base styles, variables, and mixins that need to be applied first and may be used in other stylesheets.

src/index.html Outdated
<title>MyBike</title>
<link
rel="icon"
type="image"
Copy link

Choose a reason for hiding this comment

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

The type attribute for the favicon link should be 'image/x-icon' or 'image/vnd.microsoft.icon' for .ico files. If you're using .jpg or .png, it should be 'image/jpeg' or 'image/png' respectively.

src/index.html Outdated
@@ -1,13 +1,555 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" class="page">
Copy link

Choose a reason for hiding this comment

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

You added a class to the html tag. It's generally not recommended to add classes to html tag. Consider moving this to body tag or another wrapper div.


&:hover {
border-color: #d5d7de;
color: $formColor;
Copy link

Choose a reason for hiding this comment

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

this variable should point color, name can be e.g $color-black or $color-white, know that is used here for form but maybe you will can use this somewhere else


width: 100%;
height: 56px;

Copy link

Choose a reason for hiding this comment

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

please remove those white spaces in whole project

font-size: inherit;
font-weight: 700;
line-height: 27px;
color: $DarkTextColor;
Copy link

Choose a reason for hiding this comment

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

this variable can be just $color-dark

width: 100%;
height: 56px;

background: #fff;
Copy link

Choose a reason for hiding this comment

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

consider to move this color to variables

margin-bottom: 8px;

font-size: 14px;
line-height: $textLineHeight;
Copy link

Choose a reason for hiding this comment

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

maybe cleaner $text-line-height

justify-content: space-between;

height: 100vh;
padding: $headerTopPadding 0 88px;
Copy link

Choose a reason for hiding this comment

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

this variable can be just $header-padding

@DominikaKarmel DominikaKarmel requested a review from darokrk July 31, 2023 13:21
Copy link

@darokrk darokrk left a comment

Choose a reason for hiding this comment

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

The code still needs some refactoring. Specially BEM naming classes, you have a lot of mix there, please try to refactor my mentions and should be better 👍🏽 😃

src/index.html Outdated
<img
src="images/icons/menu_logo.png"
alt="MyBike logo"
class="logo--image"
Copy link

Choose a reason for hiding this comment

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

this should be rather .logo__image

src/index.html Outdated
<img
src="images/icons/menu_logo.svg"
alt="MyBike logo"
class="logo--image"
Copy link

Choose a reason for hiding this comment

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

this should be rather .logo__image

src/index.html Outdated

<a
href="tel: +1 234 555-55-55"
class="icon icon--phone header__call"
Copy link

Choose a reason for hiding this comment

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

icon__phone

src/index.html Outdated
></a>
<a
href="#menu"
class="icon icon--menu"
Copy link

Choose a reason for hiding this comment

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

icon__menu

src/index.html Outdated
>
</a>

<a href="#" class="icon icon--cross"></a>
Copy link

Choose a reason for hiding this comment

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

icon__cross

src/index.html Outdated
</h2>

<div class="details__bike-details bike-details">
<div class="bike-details__photos">
Copy link

Choose a reason for hiding this comment

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

bike-details__photos

src/index.html Outdated
<img
src="images/photos/1.jpg"
alt="detail 1"
class="bike-details__photo"
Copy link

Choose a reason for hiding this comment

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

bike-details__image

src/index.html Outdated
<section class="page__section contact-us" id="contacts">
<div class="container">
<h2
class="page__section-title"
Copy link

Choose a reason for hiding this comment

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

contact-us__title

$titleSizeIpad: 48px;
$titleSizeDesktop: 64px;
$textLineHeight: 140%;
$DarkGrayColor: #292929;
Copy link

Choose a reason for hiding this comment

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

names for colors should follow this convention:

$color-dark-gray;
$color-white;
$color-light-gray;

it's shorter and easier to read :)

@@ -0,0 +1,8 @@
$headerPadding: 30px;
Copy link

Choose a reason for hiding this comment

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

think you should follow naming like that:

$header-padding;
$title-size-ipad;
$title-size-desktop;
etc.....

it's easier to read compare to camelcase naming :)

@DominikaKarmel DominikaKarmel requested a review from darokrk August 10, 2023 11:31
Copy link

@Radoslaw-Czerniawski Radoslaw-Czerniawski left a comment

Choose a reason for hiding this comment

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

Layout looks very good :D, there are some errors though:

  • 16.Add a smooth scroll for the whole page, Checklist
  • you are doing a lot of unnecessary nesting, your html structure should be as flat as possible, one wrapper per pair / set of children should be enough, add reusable classes to already existing wrappers rather than creating more
  • you are not using semantic html, there is a lot of text wrapped in divs rather than in span / p
    I didn't point out all error regarding the nesting and wrong semantics.

src/index.html Outdated
<body>
<h1>Miami</h1>
<body class="page">
<div class="page__body">

Choose a reason for hiding this comment

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

This class name suggest body tag, change it to something like page__wrapper

font-family: Poppins, sans-serif;
font-size: 16px;
color: $color-white;
scroll-behavior: smooth;

Choose a reason for hiding this comment

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

This should be set on the html element, add it in the main.scss after imports

overflow: hidden;
}

&__body {

Choose a reason for hiding this comment

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

As mentioned previously, by reading the scss alone I immediately assume this styles body element

<div class="page__body">
<div class="upward"></div>

<header class="header">

Choose a reason for hiding this comment

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

Why is there a triple nesting here? One container per pair of children is more than enough:

<header>
  <a><img></a>

  <h1>...</h1>
</header>

</div>
</header>

<nav class="page__menu menu" id="menu">

Choose a reason for hiding this comment

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

Again, why there is a need for such deep nesting? Apart from the classes this should be closer to such structure,
image
also nav is placed in the header area so logically it should be a part of the header

src/index.html Outdated
</div>

<div class="grid__item grid__item--ipad--4-6 grid__item--desktop--7-12">
<div

Choose a reason for hiding this comment

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

This should be a p

src/index.html Outdated
Sporty 4
</h3>

<div class="bike__description">

Choose a reason for hiding this comment

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

p

src/index.html Outdated
The iconic frame brought to a new performance height as a sporty, active ride.
</div>

<div class="bike__info bike__info--rotate">

Choose a reason for hiding this comment

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

span

src/index.html Outdated
Ride in town ST
</h3>

<div class="bike__description">

Choose a reason for hiding this comment

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

p

src/index.html Outdated
</div>
</div>

<div class="bike-details__info bike-details">

Choose a reason for hiding this comment

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

Again here
image

Copy link

@darokrk darokrk left a comment

Choose a reason for hiding this comment

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

Nice fixes but what about Radek's mentions? Did you see them? Please try to fix them and correct demo link bcs it does not work now, so can't see how page looks like live 🛠️

@DominikaKarmel
Copy link
Author

Nice fixes but what about Radek's mentions? Did you see them? Please try to fix them and correct demo link bcs it does not work now, so can't see how page looks like live 🛠️

done! commit before this one was mistake ;)

Copy link

@loralevitska loralevitska left a comment

Choose a reason for hiding this comment

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

You did an amazing job! Looks good! Let's do some improvements (check comments)

  • center your content to avoid such view on bi screens
    image
  • download another image from figma without additional elements
    image
  • consider remove background-color after autocomplete the form, change the default styles because it breaks design. Read more about changing autocomplete styles
    image
  • make all form field required (message)
  • fix contact part according mockup
    your solution
    image
    design
    image
  • cross icon in menu should have '#1d1d1d' color according design
    image

Copy link

@anastasiiavorobiova anastasiiavorobiova left a comment

Choose a reason for hiding this comment

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

Your work looks stunning! I love your animations
Screenshot 2023-10-18 at 14 22 15
Consider fixing validation errors
Screenshot 2023-10-18 at 14 23 20
Screenshot 2023-10-18 at 14 20 20
The menu for mobiles also should be fixed
Screenshot 2023-10-18 at 14 23 10
Screenshot 2023-10-18 at 14 22 47
Rounded corners don't meet the Figma design
Screenshot 2023-10-18 at 14 20 00
Add a placeholder to the message field

@DominikaKarmel
Copy link
Author

  1. I fixed space for href on an 'a' elements,
  2. I don't know, why should the menu panel be longer than the header? Why it can't be 100vh? I set the height like figma design, but i don't know how should I fix it for cell phones with screen rotated...
  3. I want the border-radius for the images in the 'details' section to remain as it is. I know that it is different from the figma, while the task says that the layout does not have to match every pixel. Now it is nice :)
  4. I donno what happend with placeholder in textarea and now i don't know how to fix it. It is correct in html, in css also - i think. The problem is, that when you click it cursor appears in middle of window and you have to hold backspace to see placeholder. Trying to fix it, but i don't have any idea what happend.
    image

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Nice job 👍
Very nice animations for content 🚀
Let's improve your page

  1. It is not necessary to hardcode the height of the header and menu, it should be the entire height of the screen, i.e. 100%
image image
  1. Add a placeholder text for the textarea and need to fix the indents for text
image image
  1. Need to remove autocomplete styles for these fields
image
  1. When I send data no need to show this data in the url, the fields should only clear and the page should not reload
image
  1. Add hover effects for these clickable elements
image
  1. Need to fix the background image size on the footer
    Demo
image

Design
image

@DominikaKarmel
Copy link
Author

ad. p. 4 @volodymyr-soltys97
You meant i should chenge type of button on 'reset'? Done, but will it be ok if the recruiter will see the type 'reset' instead of 'submit' in my html next to the 'Send' button?

Copy link

@anastasiiavorobiova anastasiiavorobiova left a comment

Choose a reason for hiding this comment

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

You have a huge progress here! There are just a few fixes from previous reviews still here:
Screenshot 2023-10-19 at 15 32 03
Validation errors should be fixed
Screenshot 2023-10-19 at 15 32 10
Links should slightly change their styles on hover
Screenshot 2023-10-19 at 15 33 04
Screenshot 2023-10-19 at 15 34 55
These form fields should be required
Screenshot 2023-10-19 at 15 35 37
A user should be able to scroll the menu in landscape mode (checklist - 17)
Screenshot 2023-10-19 at 15 41 31
For resetting values in the form on submit, you can use the button type submit and this small piece of code

Copy link

@Viktor-Kost Viktor-Kost left a comment

Choose a reason for hiding this comment

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

Nice!

To improve:

  1. Use svg format instead of png one for icons all over the page
  2. Add transition for links hover effects
  3. Use common font for all inputs
Screenshot 2023-10-19 at 17 56 26
  1. You have nice section animations yet it's not user friendly when these animations invoke each time when they got into viewport. Try to trigger them only once

Copy link

@volodymyr-soltys97 volodymyr-soltys97 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 🔥

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.

7 participants