Skip to content

Commit 56b1a69

Browse files
Merge pull request #104 from Deveesh-Shetty/ui-scroll-button
Improve UI of scroll-to-top button
2 parents 89fd217 + 8cc3968 commit 56b1a69

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

pages/repos/[language].tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useRouter } from 'next/router';
33
import { GetServerSideProps } from 'next';
44

55
import { useEffect, useState } from 'react';
6-
import { BsArrowUp } from 'react-icons/bs';
6+
import { FaAngleUp } from 'react-icons/fa6';
77
import { AnimatePresence, motion } from 'framer-motion';
88

99
import Card from 'components/Card';
@@ -107,17 +107,15 @@ const Language = ({ page, repos, languageName }: Props) => {
107107
<AnimatePresence>
108108
{scrollToTopBtn && (
109109
<motion.div
110-
className="fixed z-20 bottom-2 right-2"
110+
className="fixed z-20 bottom-4 right-4"
111111
onClick={scrollToTop}
112112
initial={{ opacity: 0 }}
113113
animate={{ opacity: 1 }}
114114
exit={{ opacity: 0 }}
115115
>
116-
<div className="relative w-16 h-16 rounded-full bg-2023-bavarian-blue-2">
117-
<div className="absolute inset-3">
118-
<BsArrowUp size={40} className="text-slate-100" />
119-
</div>
120-
</div>
116+
<button className="relative w-12 aspect-square flex justify-center items-center rounded-full bg-2023-bavarian-blue-2 text-2xl hover:scale-95 transition-transform ">
117+
<FaAngleUp className="text-slate-100" />
118+
</button>
121119
</motion.div>
122120
)}
123121
</AnimatePresence>

0 commit comments

Comments
 (0)