Skip to content

mobile responsiveness fixed #6509

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
38 changes: 24 additions & 14 deletions src/sections/Devrel-platform/picture-slider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import React from "react";
import Slider from "react-slick";
import styled from "styled-components";
Expand All @@ -7,25 +6,21 @@ import ChallangePNG from "./images/challange_mac.png";
import DesignPNG from "./images/design_mac.png";
import TutorialPNG from "./images/tutorial_mac.png";


const PictureSliderWrapper = styled.div`
display:flex;
justify-content:center;
align-items:center;
text-align:center;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
width: 100%;

.slick-slider {
margin-top: 1rem;
height:100%;
width: 100%;

.slick-list{
width:100%;
}
@media (max-width: 36rem) {
margin: .5rem auto;
max-width: 100%;
.slick-list {
width: 100%;
}

.slick-prev,
.slick-next {
&:before {
Expand All @@ -34,14 +29,29 @@ const PictureSliderWrapper = styled.div`
}
}

@media (max-width: 36rem) {
overflow: hidden;
position: relative;

.slick-prev,
.slick-next {
display: none ;
}
}

.slick-track {
display: flex;

.slick-slide {
display: flex;
height: auto;
align-items: center;
justify-content: center;

img {
max-width: 100%;
height: auto;
object-fit: contain;
}
}
}
`;
Expand Down
Loading