Skip to content

Commit faa4fa3

Browse files
committed
Fix: Prevent navbar jump on button hover by stabilizing border and transition
1 parent 09358b0 commit faa4fa3

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@
1515
"typecheck": "tsc"
1616
},
1717
"dependencies": {
18-
"@docusaurus/core": "3.7.0",
19-
"@docusaurus/plugin-content-docs": "3.7.0",
18+
"@docusaurus/plugin-content-blog": "^3.8.1",
19+
"@docusaurus/plugin-content-docs": "^3.8.1",
20+
"@docusaurus/plugin-content-pages": "^3.8.1",
2021
"@docusaurus/plugin-google-analytics": "^3.8.1",
21-
"@docusaurus/plugin-ideal-image": "3.7.0",
22-
"@docusaurus/preset-classic": "3.7.0",
23-
"@docusaurus/theme-mermaid": "3.7.0",
22+
"@docusaurus/plugin-ideal-image": "^3.8.1",
23+
"@docusaurus/plugin-sitemap": "^3.8.1",
24+
"@docusaurus/preset-classic": "^3.8.1",
25+
"@docusaurus/theme-classic": "^3.8.1",
26+
"@docusaurus/theme-mermaid": "^3.8.1",
2427
"@docusaurus/theme-search-algolia": "3.7.0",
2528
"@floating-ui/react": "^0.27.8",
2629
"@giscus/react": "^3.1.0",
@@ -53,6 +56,7 @@
5356
"vanilla-tilt": "^1.8.1"
5457
},
5558
"devDependencies": {
59+
"@docusaurus/core": "^3.8.1",
5660
"@docusaurus/module-type-aliases": "3.7.0",
5761
"@docusaurus/tsconfig": "3.7.0",
5862
"@docusaurus/types": "3.7.0",

src/components/header/header.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@
77
padding: 3rem auto;
88
}
99

10+
.navbar {
11+
background: rgba(255, 255, 255, 0.15); /* semi-transparent background */
12+
backdrop-filter: blur(10px); /* blur effect */
13+
-webkit-backdrop-filter: blur(10px); /* Safari support */
14+
border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* optional subtle border */
15+
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* optional shadow */
16+
position: fixed;
17+
top: 0;
18+
width: 100%;
19+
z-index: 100;
20+
}
1021
.chh__header {
1122
display: flex;
1223
flex-direction: row;

src/components/ui/FirebaseAuthGithub.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const FirebaseAuthGithub: React.FC = () => {
5050

5151
return (
5252
<div style={{ textAlign: 'center' }} className='flex justify-center items-center gap-5 p-0'>
53-
<button onClick={handleGithubSignIn} className="bg-black text-white px-4 py-2 rounded flex items-center gap-2">
53+
<button onClick={handleGithubSignIn} className="bg-black text-white px-4 py-2 rounded-md flex items-center gap-2 border border-transparent transition-colors duration-200 ease-in-out hover:bg-white hover:text-black hover:border-black">
5454
<svg height="24" width="24" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.65 7.65 0 0 1 2-.27c.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>
5555
Sign in with GitHub
5656
</button>

0 commit comments

Comments
 (0)