From ee517eace5f5a0ef2956483d69a89a4fe327877d Mon Sep 17 00:00:00 2001 From: renatoveludo Date: Mon, 25 Nov 2024 10:45:53 -0300 Subject: [PATCH 1/2] add task solution --- readme.md | 4 +-- src/index.html | 43 +++++++++++++++++++++++++- src/style.css | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 128 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index e72b8051e7..066e8f2ebc 100644 --- a/readme.md +++ b/readme.md @@ -27,8 +27,8 @@ 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://renatoveludo.github.io/layout_moyo-header/) +- [TEST REPORT LINK](https://renatoveludo.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. diff --git a/src/index.html b/src/index.html index b39fe97123..0fea68b8db 100644 --- a/src/index.html +++ b/src/index.html @@ -15,8 +15,49 @@ rel="stylesheet" href="./style.css" /> + + + -

Moyo header

+
+ +
+ +
diff --git a/src/style.css b/src/style.css index 293d3b1f13..a4bce978d5 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,87 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + body { margin: 0; } + +.header { + width: 100%; + display: flex; + align-items: center; +} + +.box_empty { + display: flex; + height: 60px; + flex-grow: 1; +} + +.container { + display: flex; + height: 60px; + justify-content: flex-end; + margin-left: 0; + margin-right: 50px; +} + +.titles { + font-family: Roboto, sans-serif; + font-weight: 500; + font-style: normal; + font-size: 12px; + list-style: none; + align-items: center; + display: flex; +} + +.menu { + color: black; + margin-left: 20px; + height: 60px; + line-height: 60px; +} + +.menu:hover { + text-decoration: underline; + text-decoration-thickness: 3px; + text-underline-offset: 0; + text-decoration-color: #00acdc; +} + +.logo { + position: absolute; + z-index: 1; + top: 10px; + left: 50px; + width: 40px; + height: 40px; +} + +.menu-4:hover { + color: #00acdc; + text-decoration: none; +} + +.a.is-active { + color: #00acdc; + position: relative; + display: inline-block; + margin-left: 0; +} + +.a.is-active::after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + width: 100%; + height: 4px; + background-color: #00acdc; + transition: background-color 0.3s; + border-radius: 10px; + border-style: 10px solid; +} From f9ea24c3d0991f96d7c1ce85201c46b454bdf357 Mon Sep 17 00:00:00 2001 From: renatoveludo Date: Mon, 25 Nov 2024 10:56:55 -0300 Subject: [PATCH 2/2] add task solution again --- src/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/style.css b/src/style.css index a4bce978d5..aa3952c75e 100644 --- a/src/style.css +++ b/src/style.css @@ -66,14 +66,14 @@ body { text-decoration: none; } -.a.is-active { +.is-active { color: #00acdc; position: relative; display: inline-block; margin-left: 0; } -.a.is-active::after { +.is-active::after { content: ''; position: absolute; left: 0;