Skip to content

Commit 84a8ac3

Browse files
committed
fix: progress bar behind navbar
1 parent 8593f16 commit 84a8ac3

File tree

5 files changed

+25
-2
lines changed

5 files changed

+25
-2
lines changed

src/pages/blog-views/DossierBlogPostPage.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,13 @@ const DossierBlogPostPage = () => {
344344
image={post?.attributes?.ogImage || post?.attributes?.image}
345345
keywords={post?.attributes?.tags}
346346
/>
347+
{/* Reading Progress */}
348+
<div className="fixed top-0 left-0 w-full h-1 z-[9999] bg-black/5">
349+
<div
350+
className="h-full bg-red-800 origin-left transition-all duration-150"
351+
style={{ width: `${readingProgress}%` }}
352+
/>
353+
</div>
347354
<GrainOverlay />
348355
<CoffeeStain />
349356

src/pages/blog-views/OldBlogPostPage.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,14 @@ const OldBlogPostPage = () => {
325325
keywords={post.attributes.tags}
326326
/>
327327

328+
{/* Reading Progress */}
329+
<div className="fixed top-0 left-0 w-full h-1 z-[9999] bg-white/5">
330+
<div
331+
className="h-full bg-emerald-500 origin-left transition-all duration-150"
332+
style={{ width: `${readingProgress}%` }}
333+
/>
334+
</div>
335+
328336
<h1 className="text-3xl md:text-5xl font-bold text-emerald-400 mb-6 tracking-tight font-mono">
329337
{post.attributes.title}
330338
</h1>

src/pages/blog-views/StandardBlogPostPage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ const StandardBlogPostPage = () => {
199199
keywords={post?.attributes?.tags}
200200
/>
201201
{/* Reading Progress */}
202-
<div className="fixed top-0 left-0 w-full h-1 z-50 bg-white/5">
202+
<div className="fixed top-0 left-0 w-full h-1 z-[9999] bg-white/5">
203203
<motion.div
204204
className="h-full bg-emerald-500 origin-left"
205205
style={{ width: `${readingProgress}%` }}

src/pages/blog-views/TerminalBlogPostPage.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,14 @@ const TerminalBlogPostPage = () => {
331331
body { background-color: black; }
332332
`}</style>
333333

334+
{/* Reading Progress */}
335+
<div className="fixed top-0 left-0 w-full h-1 z-[9999] bg-orange-950/20">
336+
<div
337+
className="h-full bg-orange-500 shadow-[0_0_10px_#f97316]"
338+
style={{ width: `${readingProgress}%` }}
339+
/>
340+
</div>
341+
334342
{/* Optional Scanline Effect Overlay */}
335343
<div
336344
className="fixed inset-0 pointer-events-none z-50 opacity-20"

src/pages/blog-views/TerminalGreenBlogPostPage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ const TerminalGreenBlogPostPage = () => {
185185
'repeating-linear-gradient(0deg, #fff, #fff 1px, transparent 1px, transparent 2px)',
186186
}}
187187
></div>
188-
<div className="fixed top-0 left-0 w-full h-1 bg-emerald-950 z-50">
188+
<div className="fixed top-0 left-0 w-full h-1 bg-emerald-950 z-[9999]">
189189
<div
190190
className="h-full bg-emerald-500 shadow-[0_0_10px_#10b981]"
191191
style={{ width: `${readingProgress}%` }}

0 commit comments

Comments
 (0)