diff --git a/components/header.js b/components/header.js index 2bc418c..976a8f8 100644 --- a/components/header.js +++ b/components/header.js @@ -44,7 +44,7 @@ class Header extends HTMLElement { border-bottom: 1px solid var(--bg-300); background-color: var(--bg-200); - @media only screen and (min-width: 1024px) { + @media only screen and (min-width: 1024px) { z-index: 1000; } } @@ -53,25 +53,17 @@ class Header extends HTMLElement { background-color: var(--bg-100); } - *:focus { - border: 1px solid black; - } - header { display: flex; - margin: 0 27px 0; + margin: 0 27px; justify-content: space-between; align-items: center; @media only screen and (min-width: 768px) { - flex-direction: row !important; - } - - @media only screen and (min-width: 1024px) { width: 80%; margin: 0 auto; + flex-direction: row !important; } - } header.vertical { @@ -80,8 +72,6 @@ class Header extends HTMLElement { .buttons-container { display: none; - align-items: center; - column-gap: 40px; @media only screen and (min-width: 768px) { display: flex !important; @@ -98,6 +88,14 @@ class Header extends HTMLElement { align-items: center; row-gap: 18px; margin-top: 30px; + + @media only screen and (min-width: 768px) { + display: flex; + flex-direction: row; + align-items: center; + column-gap: 40px; + margin-top: 0; + } } a { @@ -105,10 +103,11 @@ class Header extends HTMLElement { gap: 10px; align-items: center; text-decoration: none; + padding: 10px 20px; span { display: none; - + @media only screen and (min-width: 768px) { display: inline; font-size: 16px; @@ -119,15 +118,39 @@ class Header extends HTMLElement { } } - img { + svg { width: 41px; height: 20.5px; - + @media only screen and (min-width: 1024px) { width: 45px; height: 22.5px; } } + + &:focus { + outline: 3px solid #846de9; + outline-offset: 2px; + border-radius: 10px; + } + + &:focus-visible { + outline: 3px solid #24eaca; + outline-offset: 2px; + border-radius: 10px; + } + + &:hover { + box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25); + } + + &:active svg path { + fill: #160b46; + } + + &:active span { + color: #846de9; + } } button { @@ -137,24 +160,45 @@ class Header extends HTMLElement { display: flex; align-items: center; cursor: pointer; - padding: 0; - width: 18px; - height: 18px; + width: 48px; + height: 40px; + + &:focus { + outline: 3px solid #846de9; + outline-offset: 2px; + border-radius: 10px; + } + + &:focus-visible { + outline: 3px solid #24eaca; + outline-offset: 2px; + border-radius: 10px; + } + + &:hover { + box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25); + } + + &:active svg path { + fill: #846de9; + } @media only screen and (min-width: 768px) { display: none; } } - button > img { + button > svg { + width: 18px; + height: 17px; + top: 12px; + left: 14px; position: absolute; - top: 0; - left: 0; opacity: 1; transition: opacity 200ms ease-in-out; } - button > img.hide { + button > svg.hide { opacity: 0; } @@ -171,33 +215,67 @@ class Header extends HTMLElement {
- logo + 달레 스터디
- 참여방법 안내 + + diff --git a/images/logo.png b/images/logo.png deleted file mode 100644 index bc55df2..0000000 Binary files a/images/logo.png and /dev/null differ diff --git a/images/logo.svg b/images/logo.svg new file mode 100644 index 0000000..4f46a0b --- /dev/null +++ b/images/logo.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/images/menu.png b/images/menu.png deleted file mode 100644 index 292ddb7..0000000 Binary files a/images/menu.png and /dev/null differ diff --git a/images/menu.svg b/images/menu.svg new file mode 100644 index 0000000..d6360e9 --- /dev/null +++ b/images/menu.svg @@ -0,0 +1,3 @@ + + +