Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions components/buttons/ScrollButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useEffect, useState } from 'react';
import Image from 'next/image';

/**
* @returns {JSX.Element} The ScrollButton component
Expand Down Expand Up @@ -26,13 +27,13 @@ function ScrollButton() {
};

return (
<div className='fixed bottom-14 right-4 z-40 h-16 w-12'>
<div className='fixed bottom-4 right-4 z-40 flex h-16 w-12 items-center justify-center'>
{backToTopButton && (
<button
className='rounded-full bg-white shadow-md transition-all duration-300 ease-in-out hover:scale-110 hover:bg-[#8851FB]'
className='rounded-full bg-white p-2 shadow-md transition-all duration-300 ease-in-out hover:scale-110 hover:bg-[#8851FB]'
onClick={scrollUp}
>
<img src={scrollImage} alt='scroll to top' />
<Image src={scrollImage} alt='scroll to top' width={24} height={24} />
</button>
)}
</div>
Expand Down
Loading