From a8358f7f3dab27e1d326c8cc8a35b985fd0e040e Mon Sep 17 00:00:00 2001 From: YUAN-TSUNG Date: Thu, 25 Apr 2024 11:49:29 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20new=20post?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/navBarCommon/index.module.scss | 19 +- src/components/common/navBarCommon/index.tsx | 13 +- .../blog/blogPageContent/index.module.scss | 1 + src/posts/codepen-works-review-01.mdx | 131 ++++++++++ src/posts/javascript-note-class.mdx | 116 --------- src/posts/javascript-note.mdx | 240 ------------------ src/styles/globals.scss | 4 +- 7 files changed, 159 insertions(+), 365 deletions(-) create mode 100644 src/posts/codepen-works-review-01.mdx delete mode 100644 src/posts/javascript-note-class.mdx delete mode 100644 src/posts/javascript-note.mdx diff --git a/src/components/common/navBarCommon/index.module.scss b/src/components/common/navBarCommon/index.module.scss index a1dc16d..b05da90 100644 --- a/src/components/common/navBarCommon/index.module.scss +++ b/src/components/common/navBarCommon/index.module.scss @@ -5,7 +5,7 @@ left: 0; z-index: 1000; width: min(100%, 700px); - padding: 12px; + padding: 8px; margin: 10px auto; font-family: utils.$font-serif; font-size: 16px; @@ -30,14 +30,19 @@ @extend %center-items-grid; z-index: 100; - grid-template-columns: repeat(5, 1fr); + grid-template-columns: 1fr 1fr 40px 1fr 1fr; + gap: 8px; padding: 0; margin: 0 auto; list-style: none; } -.icons { - height: 30px; +.nav-item { + @extend %center-items-grid; + + width: 100%; + height: 100%; + border-radius: 100px; } .c-mark-nav { @@ -51,4 +56,10 @@ .text-link { position: relative; + + &.-active { + // layer won't work for this + text-decoration: underline; + text-underline-offset: 4px; + } } diff --git a/src/components/common/navBarCommon/index.tsx b/src/components/common/navBarCommon/index.tsx index 5dc1f10..cfc1ab9 100644 --- a/src/components/common/navBarCommon/index.tsx +++ b/src/components/common/navBarCommon/index.tsx @@ -27,7 +27,7 @@ export const NavBarCommon = () => { return (