From 2bfa2d25910b035028e217a743aca3b8fe7ff47c Mon Sep 17 00:00:00 2001 From: Allan Cordella Date: Sat, 30 Nov 2024 01:55:53 -0300 Subject: [PATCH 1/3] moyo-header --- src/index.html | 98 ++++++++++++++++++++++++++++++++++++++++++++++++-- src/style.css | 96 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 192 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index b39fe97123..42dbe747b0 100644 --- a/src/index.html +++ b/src/index.html @@ -10,13 +10,107 @@ http-equiv="X-UA-Compatible" content="ie=edge" /> - Moyo header + + + + MOYO Header -

Moyo header

+ + moyologo + + +
+ +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..aa5466d4a3 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,99 @@ +html { + margin: 0; + font-family: roboto, sans-serif; +} + body { margin: 0; } + +a { + text-decoration: none; + color: #000; +} + +ul { + padding: 0; + list-style: none; +} + +li { + list-style: none; +} + +.img { + position: absolute; + top: 10px; + left: 50px; +} + +.header { + display: flex; + + background-color: #fff; + + justify-content: end; + align-items: center; +} + +.nav { + /* background-color: chartreuse; */ + + width: 639px; + height: 60px; + display: flex; + align-items: center; + margin-right: 50px; +} + +.nav__list { + display: flex; + width: 100%; + align-items: center; + + /* background-color: blueviolet; */ + + justify-content: space-between; +} + +.nav__iten { + /* background-color: beige; */ + display: flex; + align-items: center; + flex-direction: row; + justify-content: center; +} + +.nav__link { + /* background-color: cyan; */ + height: 60px; + display: flex; + font-weight: 500; + color: #000; + font-size: 12px; + text-transform: uppercase; + align-items: center; +} + +:hover { + color: #00acdc; +} + +.is-active { + color: #00acdc; + display: flex; + align-items: center; + position: relative; +} + +.is-active::after { + content: ''; + + background-color: #00acdc; + border: solid #00acdc 1px; + height: 2px; + border-radius: 8px; + position: absolute; + bottom: 0; + width: 36px; +} From c5b3484d8d4f1e5bc6bd82a538e17eeeb8eb84cc Mon Sep 17 00:00:00 2001 From: Allan Cordella Date: Sat, 30 Nov 2024 02:38:25 -0300 Subject: [PATCH 2/3] moyo-task --- readme.md | 18 +++++++++--------- src/index.html | 38 +++++++++++++++++++------------------- src/style.css | 4 ++-- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/readme.md b/readme.md index e72b8051e7..5d5768ba5e 100644 --- a/readme.md +++ b/readme.md @@ -27,15 +27,15 @@ The page should match the design Pixel Perfect: all the sizes, colors and distan ❗️ Replace `` with your Github username and copy the links to `Pull Request` description: -- [DEMO LINK](https://.github.io/layout_moyo-header/) -- [TEST REPORT LINK](https://.github.io/layout_moyo-header/report/html_report/) +- [DEMO LINK](https://AllanCordella.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://AllanCordella.github.io/layout_moyo-header/report/html_report/) ❗️ Copy this `Checklist` to the `Pull Request` description after links, and put `- [x]` before each point after you checked it. -- [ ] 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 ❗️](./checklist.md) +- [x] Header height is set in 1 place (for the links) +- [x] Content is vertically centered (for any header height) +- [x] CSS is used to show all letters in Uppercase (don't type them in HTML) +- [x] Logo is an image wrapped with a link +- [x] **CSS Variable** is used for a blue color +- [x] Pseudo-element is used for a blue line below the active link +- [x] Code follows all the [Code Style Rules ❗️](./checklist.md) diff --git a/src/index.html b/src/index.html index 42dbe747b0..31b3b2a754 100644 --- a/src/index.html +++ b/src/index.html @@ -29,22 +29,22 @@ /> - - moyologo - -
+ + moyologo + +