From 4e13311a8adf9dc3fcb20b63dac2aa88bbed8962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20Demirel?= Date: Thu, 26 Mar 2026 21:47:15 +0300 Subject: [PATCH] feat: progress bar --- src/components/ReadingProgress.astro | 52 ++++++++++++++++++++++++++++ src/pages/articles/[slug].astro | 2 ++ src/pages/en/articles/[slug].astro | 2 ++ 3 files changed, 56 insertions(+) create mode 100644 src/components/ReadingProgress.astro diff --git a/src/components/ReadingProgress.astro b/src/components/ReadingProgress.astro new file mode 100644 index 0000000..600a58c --- /dev/null +++ b/src/components/ReadingProgress.astro @@ -0,0 +1,52 @@ +
+
+
+
+ + diff --git a/src/pages/articles/[slug].astro b/src/pages/articles/[slug].astro index 95a0cec..800a88d 100644 --- a/src/pages/articles/[slug].astro +++ b/src/pages/articles/[slug].astro @@ -2,6 +2,7 @@ import DocsLayout from '../../layouts/DocsLayout.astro' import ShareButtons from '../../components/ShareButtons.astro' import GitHubUserCard from '../../components/GitHubUserCard.astro' +import ReadingProgress from '../../components/ReadingProgress.astro' import { getCollection, render } from 'astro:content' import { SITE } from '../../config.mjs' import { getLangFromUrl, t } from '../../i18n/index.ts' @@ -82,6 +83,7 @@ const onThisPageLabel = t(labels, 'article.onThisPage')