Skip to content

Commit 39ae3d7

Browse files
committed
fix: add missing scroll elements for github badges page (#1541)
1 parent f54b70a commit 39ae3d7

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

src/pages/badges/github-badges.tsx

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@ const GithubBadgesContent = (): React.ReactElement => {
8080
isDark ? "dark-bg-primary dark-text-primary" : "bg-white text-black"
8181
}`}
8282
>
83+
<div
84+
id="progressBar"
85+
style={{
86+
position: "fixed",
87+
top: 0,
88+
left: 0,
89+
height: "4px",
90+
background: "linear-gradient(90deg, #fbbf24, #f59e0b)",
91+
zIndex: 9999,
92+
transition: "width 0.2s ease",
93+
width: "0%",
94+
}}
95+
></div>
8396
{/* Hero section */}
8497
<Head>
8598
<title>GitHub Achievements Guide - recode hive</title>
@@ -1321,6 +1334,32 @@ const GithubBadgesContent = (): React.ReactElement => {
13211334
</div>{" "}
13221335
</motion.div>
13231336
</div>
1337+
<button
1338+
id="scrollToTop"
1339+
onClick={handleScrollToTop}
1340+
title="Go to top"
1341+
style={{
1342+
position: "fixed",
1343+
bottom: "30px",
1344+
right: "30px",
1345+
zIndex: 999,
1346+
padding: "15px",
1347+
borderRadius: "50%",
1348+
cursor: "pointer",
1349+
display: "flex",
1350+
alignItems: "center",
1351+
justifyContent: "center",
1352+
width: "50px",
1353+
height: "50px",
1354+
}}
1355+
>
1356+
<span
1357+
className="arrow-icon"
1358+
style={{ fontSize: "20px", fontWeight: "bold" }}
1359+
>
1360+
1361+
</span>
1362+
</button>
13241363
</div>
13251364
</Layout>
13261365
);

0 commit comments

Comments
 (0)