File tree Expand file tree Collapse file tree
src/sections/Devrel-platform Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,31 +7,53 @@ import ChallangePNG from "./images/challange_mac.png";
77import DesignPNG from "./images/design_mac.png" ;
88import TutorialPNG from "./images/tutorial_mac.png" ;
99
10-
1110const PictureSliderWrapper = styled . div `
12- display:flex;
13- justify-content:center;
14- align-items:center;
15- text-align:center;
11+ display: flex;
12+ justify-content: center;
13+ align-items: center;
14+ text-align: center;
15+ width: 100%;
1616
1717 .slick-slider {
1818 margin-top: 1rem;
19- height:100%;
19+ height: 100%;
2020 width: 100%;
2121
22- .slick-list{
23- width:100%;
24- }
25- @media (max-width: 36rem) {
26- margin: .5rem auto;
27- max-width: 100%;
22+ .slick-list {
23+ width: 100%;
2824 }
25+
2926 .slick-prev,
3027 .slick-next {
3128 &:before {
3229 color: ${ ( props ) => props . theme . tertiaryColor } ;
3330 }
3431 }
32+
33+ @media (max-width: 36rem) {
34+ overflow: hidden;
35+ position: relative;
36+
37+ .slick-prev,
38+ .slick-next {
39+ z-index: 2;
40+ width: 24px;
41+ height: 24px;
42+
43+ &:before {
44+ font-size: 20px;
45+ color: black;
46+ }
47+ }
48+
49+ .slick-prev {
50+ left: 10px !important;
51+ }
52+
53+ .slick-next {
54+ right: 10px !important;
55+ }
56+ }
3557 }
3658
3759 .slick-track {
@@ -42,10 +64,17 @@ const PictureSliderWrapper = styled.div`
4264 height: auto;
4365 align-items: center;
4466 justify-content: center;
67+
68+ img {
69+ max-width: 100%;
70+ height: auto;
71+ object-fit: contain;
72+ }
4573 }
4674 }
4775` ;
4876
77+
4978const PictureSlider = ( ) => {
5079 const data = [ ChallangePNG , TutorialPNG , DesignPNG ] ;
5180 const settings = {
@@ -70,3 +99,5 @@ const PictureSlider = () => {
7099} ;
71100
72101export default PictureSlider ;
102+
103+
You can’t perform that action at this time.
0 commit comments