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

Made the section Playground section responsive #6071

Merged
merged 10 commits into from
Nov 10, 2024
16 changes: 15 additions & 1 deletion src/sections/Home/Playground-home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const ViewsSectionWrapper = styled.div`
height: 500px;
justify-content: space-evenly;
align-items: center;
padding: 0 5% 0 0;
padding: 0 0 0 0;
NishantSinghhhhh marked this conversation as resolved.
Show resolved Hide resolved
box-sizing: border-box;
//box-shadow: ${(props) => props.theme.boxShadowBlue477E96};
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
Expand All @@ -65,18 +65,32 @@ const ViewsSectionWrapper = styled.div`
text-align: center;
flex-direction: column-reverse;
NishantSinghhhhh marked this conversation as resolved.
Show resolved Hide resolved
}

@media only screen and (max-width: 450px) {
height: 600px;
}

@media only screen and (max-width: 296px) {
height: 800px;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@media only screen and (max-width: 450px) {
height: 600px;
}
@media only screen and (max-width: 296px) {
height: 800px;
}

Copy link
Contributor Author

@NishantSinghhhhh NishantSinghhhhh Nov 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sir after 300px too, this error is coming in which the text is not visible , so for that , we need to add the media query for 296px

Screenshot 2024-11-11 001336

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
.hero-text {
display: flex;
flex-direction: column;
flex: 0 0 50%;
max-width: 50%;
padding-bottom: 3rem;
padding-left: 1rem;
vishalvivekm marked this conversation as resolved.
Show resolved Hide resolved
@media only screen and (max-width: 767px) {
max-width: 100%;
justify-content: center;
text-align: center;
NishantSinghhhhh marked this conversation as resolved.
Show resolved Hide resolved
}
vishalvivekm marked this conversation as resolved.
Show resolved Hide resolved

@media only screen and (max-width: 450px) {
margin-top: 200px;
vishalvivekm marked this conversation as resolved.
Show resolved Hide resolved
}

NishantSinghhhhh marked this conversation as resolved.
Show resolved Hide resolved
}

.hero-image {
Expand Down