Skip to content

Commit

Permalink
Update Feed.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ramith-kulal authored Feb 22, 2024
1 parent 97c32d2 commit b384ea0
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions src/Feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,22 @@ const Feed = () => {
};

const arrowColor = colorMode === 'dark' ? 'white' : 'black';
const buttonStyle = {
position: 'fixed',
bottom: showGoToTop ? '20px' : '-100px', // Show/hide based on scroll position
right: '20px',
backgroundColor: 'yellow',
color: 'black',
padding: '8px',
borderRadius: '50%',
height: '40px',
width: '40px',
fontSize: '27px',
boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)',
transition: 'bottom 0.3s ease-in-out',
marginRight: '440px',
};
const buttonStyle = {
position: 'fixed',
bottom: showGoToTop ? '20px' : '-100px', // Show/hide based on scroll position
right: '20px',
backgroundColor: '#3685fb', // Specific color code for the background
color: '#0d213f', // Specific color code for the text
padding: '8px',
borderRadius: '50%',
height: '40px',
width: '40px',
fontSize: '27px',
boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)',
transition: 'bottom 0.3s ease-in-out',
marginRight: '440px',
};


return (
<div className='feed' ref={feedRef}>
Expand Down

0 comments on commit b384ea0

Please sign in to comment.