-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
base: master
Are you sure you want to change the base?
My awsome bike #2572
Conversation
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.
UI looks awesome 🎉 but code needs improvements 👨🏽💻
@import "utils/mixins.scss"; | ||
@import "utils/reset.scss"; | ||
|
||
.logo { |
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 is an extra empty line after the '.logo' class declaration. Consider removing unnecessary empty lines for cleaner code.
src/styles/main.scss
Outdated
body { | ||
background: $c-gray; | ||
} | ||
@import "utils/variables.scss"; |
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.
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" |
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.
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"> |
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.
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.
src/styles/blocks/form-field.scss
Outdated
|
||
&:hover { | ||
border-color: #d5d7de; | ||
color: $formColor; |
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 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
src/styles/blocks/button.scss
Outdated
|
||
width: 100%; | ||
height: 56px; | ||
|
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.
please remove those white spaces in whole project
src/styles/blocks/button.scss
Outdated
font-size: inherit; | ||
font-weight: 700; | ||
line-height: 27px; | ||
color: $DarkTextColor; |
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 variable can be just $color-dark
src/styles/blocks/button.scss
Outdated
width: 100%; | ||
height: 56px; | ||
|
||
background: #fff; |
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.
consider to move this color to variables
src/styles/blocks/contact-us.scss
Outdated
margin-bottom: 8px; | ||
|
||
font-size: 14px; | ||
line-height: $textLineHeight; |
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.
maybe cleaner $text-line-height
src/styles/blocks/header.scss
Outdated
justify-content: space-between; | ||
|
||
height: 100vh; | ||
padding: $headerTopPadding 0 88px; |
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 variable can be just $header-padding
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.
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" |
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 should be rather .logo__image
src/index.html
Outdated
<img | ||
src="images/icons/menu_logo.svg" | ||
alt="MyBike logo" | ||
class="logo--image" |
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 should be rather .logo__image
src/index.html
Outdated
|
||
<a | ||
href="tel: +1 234 555-55-55" | ||
class="icon icon--phone header__call" |
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.
icon__phone
src/index.html
Outdated
></a> | ||
<a | ||
href="#menu" | ||
class="icon icon--menu" |
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.
icon__menu
src/index.html
Outdated
> | ||
</a> | ||
|
||
<a href="#" class="icon icon--cross"></a> |
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.
icon__cross
src/index.html
Outdated
</h2> | ||
|
||
<div class="details__bike-details bike-details"> | ||
<div class="bike-details__photos"> |
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.
bike-details__photos
src/index.html
Outdated
<img | ||
src="images/photos/1.jpg" | ||
alt="detail 1" | ||
class="bike-details__photo" |
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.
bike-details__image
src/index.html
Outdated
<section class="page__section contact-us" id="contacts"> | ||
<div class="container"> | ||
<h2 | ||
class="page__section-title" |
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.
contact-us__title
src/styles/utils/variables.scss
Outdated
$titleSizeIpad: 48px; | ||
$titleSizeDesktop: 64px; | ||
$textLineHeight: 140%; | ||
$DarkGrayColor: #292929; |
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.
names for colors should follow this convention:
$color-dark-gray;
$color-white;
$color-light-gray;
it's shorter and easier to read :)
src/styles/utils/variables.scss
Outdated
@@ -0,0 +1,8 @@ | |||
$headerPadding: 30px; |
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.
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 :)
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.
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"> |
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 class name suggest body tag, change it to something like page__wrapper
src/styles/blocks/page.scss
Outdated
font-family: Poppins, sans-serif; | ||
font-size: 16px; | ||
color: $color-white; | ||
scroll-behavior: smooth; |
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 should be set on the html element, add it in the main.scss
after imports
src/styles/blocks/page.scss
Outdated
overflow: hidden; | ||
} | ||
|
||
&__body { |
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.
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"> |
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.
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"> |
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.
src/index.html
Outdated
</div> | ||
|
||
<div class="grid__item grid__item--ipad--4-6 grid__item--desktop--7-12"> | ||
<div |
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 should be a p
src/index.html
Outdated
Sporty 4 | ||
</h3> | ||
|
||
<div class="bike__description"> |
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.
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"> |
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.
span
src/index.html
Outdated
Ride in town ST | ||
</h3> | ||
|
||
<div class="bike__description"> |
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.
p
src/index.html
Outdated
</div> | ||
</div> | ||
|
||
<div class="bike-details__info bike-details"> |
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 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.
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 ;) |
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.
You did an amazing job! Looks good! Let's do some improvements (check comments)
- center your content to avoid such view on bi screens
- download another image from figma without additional elements
- consider remove background-color after autocomplete the form, change the default styles because it breaks design. Read more about changing autocomplete styles
- make all form field required (message)
- fix contact part according mockup
your solution
design
- cross icon in menu should have '#1d1d1d' color according design
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 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.
Nice job 👍
Very nice animations for content 🚀
Let's improve your page
- 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%
- Add a placeholder text for the textarea and need to fix the indents for text
- Need to remove autocomplete styles for these fields
- When I send data no need to show this data in the url, the fields should only clear and the page should not reload
- Add hover effects for these clickable elements
- Need to fix the background image size on the footer
Demo
ad. p. 4 @volodymyr-soltys97 |
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.
You have a huge progress here! There are just a few fixes from previous reviews still here:
Validation errors should be fixed
Links should slightly change their styles on hover
These form fields should be required
A user should be able to scroll the menu in landscape mode (checklist - 17)
For resetting values in the form on submit, you can use the button type submit and this small piece of code
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.
Nice!
To improve:
- Use svg format instead of png one for icons all over the page
- Add transition for links hover effects
- Use common font for all inputs
- 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
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.
Well done 🔥
https://DominikaKarmel.github.io/layout_miami/