Skip to content

Commit

Permalink
Remove scrolling in mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
Sawan-Kushwah committed Oct 13, 2024
1 parent 7905255 commit a23e211
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions frontend/src/components/Shared/BackToTopButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ const BackToTopButton = () => {
{shouldRender && (
<button
onClick={scrollToTop}
className={`z-50 fixed bottom-12 right-8 bg-green-700 hover:bg-green-600 text-white font-bold px-5 py-3 rounded-md shadow-lg hover:shadow-xl transition-all duration-300 transform hover:scale-110 ${
isVisible ? 'animate-fadeInBounce' : 'animate-fadeOutBounce'
}`}
className={`z-50 fixed bottom-12 max-sm:right-16 right-8 bg-green-700 hover:bg-green-600 text-white font-bold px-5 py-3 rounded-md shadow-lg hover:shadow-xl transition-all duration-300 transform hover:scale-110 ${isVisible ? 'animate-fadeInBounce' : 'animate-fadeOutBounce'
}`}
style={{ boxShadow: '0 4px 8px rgba(0, 0, 0, 0.2)' }}
>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Shared/GoogleTranslate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const GoogleTranslate = () => {
}, []);

return (
<div id="google_element" className="pl-20 md:pl-0">
<div id="google_element" className="pl-20 max-sm:pl-0 md:pl-0">
<style jsx>{`
.goog-te-combo {
@apply w-full bg-white border border-gray-300 rounded px-2 py-1 text-sm;
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/components/Shared/footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ import Content from './Content';
const Footer = () => {
return (
<footer
className="relative h-[800px]"
className="relative h-[800px] max-sm:h-[600px]"
style={{ clipPath: 'polygon(0% 0, 100% 0%, 100% 100%, 0 100%)' }}
>
<div className="relative h-[calc(100vh+800px)] -top-[100vh]">
<div className="max-sm:absolute max-sm:inset-0 max-sm:top-0 max-sm:h-[600px] relative h-[calc(100vh+800px)] -top-[100vh] ">
<div className="h-[600px] sticky top-[calc(100vh-600px)]">
<Content />
</div>
</div>
</footer>

);
};

Expand Down

0 comments on commit a23e211

Please sign in to comment.