-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Solution #4326
base: master
Are you sure you want to change the base?
Solution #4326
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- #region head --> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
|
@@ -15,18 +16,50 @@ | |
rel="stylesheet" | ||
href="style.css" | ||
/> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" | ||
rel="stylesheet" | ||
Comment on lines
+20
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The URL for the href attribute of the link tag seems to be missing. Ensure you provide the correct path to the stylesheet. |
||
/> | ||
Comment on lines
+20
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Attributes within the tag should be ordered consistently. You should place 'rel' before 'href' for readability and consistency. |
||
</head> | ||
<!-- #endregion --> | ||
<body> | ||
<input | ||
type="text" | ||
data-qa="keypress" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
<form class="form"> | ||
<div | ||
class="form__search" | ||
data-qa="big" | ||
> | ||
<label for="input-large"></label> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Attribute 'for' in the label should match the ID of the input it is related to, which is missing here. |
||
<img | ||
class="form-img form__img--large" | ||
src="images/Search.svg" | ||
alt="Search" | ||
/> | ||
Comment on lines
+32
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The 'alt' attribute should more accurately describe the image content, for example, 'Search icon'. |
||
<input | ||
class="form-input form__input--large" | ||
type="text" | ||
data-qa="keypress" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
Comment on lines
+26
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The label element should have content that describes the input it is associated with, or you can use the aria-label attribute on the input for screen reader users. |
||
</div> | ||
|
||
<input | ||
type="text" | ||
data-qa="hover" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
<div | ||
class="form__search" | ||
data-qa="small" | ||
> | ||
<label for="input-small"></label> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Attribute 'for' in the label should match the ID of the input it is related to, which is missing here. |
||
|
||
<input | ||
class="form-input form__input--small" | ||
type="text" | ||
data-qa="hover" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
<img | ||
class="form-img form__img--small" | ||
src="images/Search.svg" | ||
alt="Search" | ||
/> | ||
Comment on lines
+51
to
+61
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Although the class name 'form__input--small' suggests a modifier for a BEM element, make sure that the element class 'form__input' exists, as it's not clear from this snippet. Also, ensure 'form-img' and 'form-input' follow BEM conventions if they are part of the same component. |
||
</div> | ||
</form> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,83 @@ | ||
/* add styles here */ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
Comment on lines
+2
to
+4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using the '*' selector for setting |
||
|
||
@font-face { | ||
font-family: Avenir-Book, sans-serif; | ||
src: url(fonts/Avenir-Book.ttf); | ||
Comment on lines
+7
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
} | ||
|
||
@font-face { | ||
font-family: Avenir-Heavy, sans-serif; | ||
src: url(fonts/Avenir-Heavy.ttf); | ||
font-style: bold; | ||
font-weight: bold; | ||
} | ||
Comment on lines
+12
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
|
||
.form { | ||
margin-top: auto; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
} | ||
|
||
.form-input { | ||
display: block; | ||
margin: o; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a typo in the |
||
width: 100%; | ||
font-family: Avenir-Book, sans-serif; | ||
font-weight: 300; | ||
font-size: 16px; /* розмір шрифтк */ | ||
color: rgba(255, 255, 255, 1); | ||
border: 1px solid rgba(225, 231, 237, 1); | ||
border-radius: 4px; | ||
box-shadow: rgba(61, 78, 97, 0.1); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
} | ||
|
||
.form__input--large { | ||
margin-top: 20px; | ||
height: 70px; | ||
padding-left: 62px; /* додаємо відступ, щоб текст не накладався на іконку */ | ||
} | ||
|
||
.form__input--small { | ||
height: 42px; | ||
margin-top: 20px; | ||
padding-left: 33px; /* додаємо відступ, щоб текст не накладався на іконку */ | ||
size: 14px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
} | ||
|
||
.form__img { | ||
margin-right: 100px; | ||
} | ||
|
||
.form__img--large { | ||
width: 19px; | ||
height: 19px; | ||
position: absolute; | ||
top: 45px; | ||
left: 34px; | ||
} | ||
|
||
.form__img--small { | ||
width: 11px; | ||
height: 11px; | ||
position: relative; | ||
bottom: 30px; | ||
left: 13px; | ||
} | ||
|
||
.form-input:hover { | ||
border: 1px solid rgba(225, 231, 237, 1); | ||
box-shadow: 0 1px 8px 0 rgba(61, 78, 97, 0.2); | ||
} | ||
|
||
.form-input:focus { | ||
font-family: Avenir-Heavy, sans-serif; | ||
background: rgba(246, 246, 247, 1); | ||
border-radius: 3px; | ||
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25); | ||
color: rgba(61, 78, 97, 1); | ||
border-color: rgba(225, 231, 237, 1); | ||
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.25); | ||
font-weight: bold; | ||
font-style: bold; | ||
} |
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 <!doctype html> declaration must be the very first thing in an HTML document, before the tag.