-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
add task solution #5326
base: master
Are you sure you want to change the base?
add task solution #5326
Conversation
yurzxw
commented
Aug 31, 2024
•
edited
Loading
edited
- DEMO LINK
- TEST REPORT LINK
- Header height is set in 1 place (for the links)
- Content is vertically centered (for any header height)
- CSS is used to show all letters in Uppercase (don't type them in HTML)
- Logo is an image wrapped with a link
- CSS Variable is used for a blue color
- Pseudo-element is used for a blue line below the active link
- Code follows all the Code Style Rules ❗️
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.
Good job, but you have to fix your code according to comments below. Feel free to ask for help in fe_chat.
src/style.css
Outdated
bottom: -20px; | ||
width: 37px; /* Довжина лінії */ |
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.
bottom: -20px; | |
width: 37px; /* Довжина лінії */ | |
bottom: 0; | |
width: 100%; |
src/index.html
Outdated
</head> | ||
<body> | ||
<h1>Moyo header</h1> | ||
<header class="header"> | ||
<container class="container"> |
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.
<container class="container"> |
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.
Looks redundant. Please remove it.
src/index.html
Outdated
<container class="container"> | ||
<a href="#"> | ||
<img | ||
src="https://s3-alpha-sig.figma.com/img/833f/9aab/47d660efd384318772b6b8040db831aa?Expires=1725840000&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4&Signature=MJRW8Yu0t9rfw~RbBcB~YImlgu22Gqhw2VLCvrJt9QpHubYRZwarK8rWfd0cXYEq3UdLnf2pTYuHtGkIMDr2rGTTba0KbaiAY4iTHQLsAoyHlo~eXIBi-CbDvG1aArEN2ybS2cDYwwOLuHm78zORnVD8AIhelkjjsme9N7SqEsADP1J0Kh0aKujhSICCib5MWOXbMHON4vv8ZK2qmlpdH8dJdm1h-Ahcsvw3pRFygjDfC9e0kZmk1ogcKrzrPTnxQbUeclnN-budN5yWzdz2icxTPVf7qdE98Sx9nKSkHLTXcbRKQZlEdqYer8R2A6sL4FoBsP1KL2IVJuFVP9v83w__" |
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.
Just upload image inside your project and import it.
src/style.css
Outdated
@@ -1,3 +1,62 @@ | |||
body { | |||
margin: 0; | |||
font-size: 12px; | |||
font-family: Roboto, sans-serif; |
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.
use html tag to import font-family
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/style.css
Outdated
color: #00acdc; | ||
} | ||
|
||
img { |
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.
use class selector for image styles
} | ||
|
||
img { | ||
position: absolute; |
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.
position absolute seems redundant here.
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/style.css
Outdated
.container { | ||
display: flex; | ||
width: 1200px; | ||
height: 60px; | ||
justify-content: flex-end; | ||
|
||
align-items: center; | ||
} |
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.
Move styles to header instead, and remove width and height properties.
src/style.css
Outdated
border-radius: 8px; /* Закруглення країв лінії */ | ||
} | ||
|
||
nav 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.
use class selector here as well.
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
</a> | ||
<nav class="nav"> | ||
<ul class="nav_list"> | ||
<div class="underline"> |
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 div is redundant, you need to add line with ::after
<div class="underline"> |
src/index.html
Outdated
<li class="nav_item"> | ||
<a | ||
href="#" | ||
class="nav_link blue is-active" |
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.
class="nav_link blue is-active" | |
class="nav_link is-active" |
src/index.html
Outdated
</li> | ||
<li class="nav_item"> |
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.
Add the blank line between the links
</li> | |
<li class="nav_item"> | |
</li> | |
<li class="nav_item"> |
src/style.css
Outdated
@@ -1,3 +1,62 @@ | |||
body { | |||
margin: 0; | |||
font-size: 12px; | |||
font-family: Roboto, sans-serif; |
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.
@@ -1,3 +1,64 @@ | |||
body { | |||
margin: 0; | |||
font-family: Roboto, sans-serif; | |||
|
|||
--hover-color: #00acdc; |
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.
Create a variable with :root
selector
} | ||
|
||
img { | ||
position: absolute; |
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.
remove this class
src/index.html
Outdated
<li class="nav_item"> | ||
<a | ||
href="#" | ||
class="nav_link zero" |
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.
class="nav_link zero" | |
class="nav_link" |
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.
LGTM