Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove scrolling in mobile view #272

Closed
Show file tree
Hide file tree
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
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
Loading