forked from mate-academy/layout_moyo-header
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
41 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,29 @@ | ||
# Frontend practice with header | ||
|
||
## Main goal: | ||
Create HTML page with header. Understand `flexbox` usage. Create | ||
HTML layout from the mockup. | ||
|
||
Use this [mockup](https://www.figma.com/file/KAV1NnDp7hgQtPnaD6XdOcnG/Moyo-Header?node-id=0%3A1) | ||
for development. | ||
|
||
If you don't want to see other users cursors you can disable `Multiplayer | ||
Cursors` in figma. [Learn how](https://mate-academy.github.io/layout_task-guideline/figma.html#multiplayer-cursors) | ||
|
||
## Common mistakes | ||
* Do not use tabs. Use 2 spaces for indentation. | ||
* Don't use repeated styles. | ||
* Don't use extra elements for blue line. Figure out how to work with `::after` | ||
* Check font styles. Use [google fonts](https://fonts.google.com/) | ||
|
||
## Requirements: | ||
|
||
* pay attention the mock is adaptive. Develop the layout to fit on 1024px and | ||
1200px the same as on the mock. | ||
* reset browser's default margins | ||
* use images from [src/images](src/images) | ||
* Use semantic tags. `<header>`, `<nav>` | ||
* change links styles on :hover | ||
* follow styles from the mock | ||
* link with blue color and line below is an active link. It should have | ||
`class="is-active"` and relevant styles | ||
* link with only blue color is an example of `:hover` styles. Every link in the | ||
row should have blue color on :hover. | ||
* add attribute `data-qa="hover"` to the 4th link for testing (`Ноутбуки и | ||
компьютеры`) | ||
|
||
Screenshot of the header: | ||
![screenshot](./references/header-example.png) | ||
|
||
1. Replace `<your_account>` with your Github username in the links | ||
- [DEMO LINK](https://<your_account>.github.io/layout_moyo-header/) <br> | ||
- [TEST REPORT LINK](https://<your_account>.github.io/layout_moyo-header/report/html_report/) | ||
2. Follow [this instructions](https://mate-academy.github.io/layout_task-guideline/) | ||
___ | ||
|
||
## The task | ||
Create HTML page with the header using `flexbox` basing on [this mockup](https://www.figma.com/file/KAV1NnDp7hgQtPnaD6XdOcnG/Moyo-Header?node-id=0%3A1). | ||
|
||
### Common mistakes | ||
- Do not use tabs. Use 2 spaces for indentation. | ||
- Don't use repeated styles. | ||
- Don't use extra elements for blue line. Figure out how to work with `::after` | ||
- Check font styles. Use [google fonts](https://fonts.google.com/) | ||
|
||
### Requirements: | ||
- pay attention the mock is adaptive. Develop the layout to fit on 1024px and 1200px the same as on the mock. | ||
- reset browser's default margins | ||
- use images from [src/images](src/images) | ||
- Use semantic tags. `<header>`, `<nav>` | ||
- change links styles on :hover | ||
- follow styles from the mock | ||
- the link with blue color and line below is an active link. It should have `class="is-active"` and relevant styles. | ||
- the link with only blue color is an example of `:hover` styles. Every link in the row should have blue color on `:hover`. | ||
- add `data-qa="hover"` attribute to the 4th link for testing (`Ноутбуки и компьютеры`) | ||
--- | ||
**Read the guideline before start** | ||
|
||
[Guideline](https://mate-academy.github.io/layout_task-guideline/) | ||
|
||
**Result** | ||
|
||
- [UPDATE DEMO LINK](https://<your_account>.github.io/<repo_name>/) | ||
- [UPDATE TEST REPORT LINK](https://<your_account>.github.io/<repo_name>/report/html_report/) | ||
![screenshot](./references/header-example.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters