Skip to content

Commit 9892cea

Browse files
committed
fixed darkmode-lightmode switch issue
Signed-off-by: Ashok Kumar <ashokgupta2678@gmail.com>
1 parent 3d11ea4 commit 9892cea

1 file changed

Lines changed: 57 additions & 71 deletions

File tree

  • src/sections/Home/Playground-home

src/sections/Home/Playground-home/index.js

Lines changed: 57 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -67,89 +67,73 @@ const ViewsSectionWrapper = styled.div`
6767
height: 600px;
6868
padding: 0 2%;
6969
}
70-
71-
}
72-
.hero-text {
73-
display: flex;
74-
flex-direction: column;
75-
flex: 0 0 50%;
76-
max-width: 50%;
77-
padding-bottom: 3rem;
78-
@media only screen and (max-width: 767px) {
79-
max-width: 100%;
80-
justify-content: center;
81-
text-align: center;
82-
margin-top: 4rem;
83-
}
84-
@media only screen and (min-width: 768px) and (max-width: 1100px) {
85-
padding-left: 1rem;
86-
}
87-
88-
89-
}
70+
}
9071
91-
.hero-image {
92-
position: relative;
93-
display: flex;
94-
justify-content: center;
95-
flex: 0 0 50%;
96-
max-width: 50%;
97-
overflow: hidden;
98-
height: 100%;
72+
.hero-text {
73+
display: flex;
74+
flex-direction: column;
75+
flex: 0 0 50%;
76+
max-width: 50%;
77+
padding-bottom: 3rem;
9978
100-
@media only screen and (max-width: 767px) {
101-
max-width: 100%;
102-
}
79+
@media only screen and (max-width: 767px) {
80+
max-width: 100%;
81+
justify-content: center;
82+
text-align: center;
83+
margin-top: 4rem;
10384
}
10485
105-
h2 {
106-
/* max-width: 90%; */
107-
padding-bottom: 2%;
86+
@media only screen and (min-width: 768px) and (max-width: 1100px) {
87+
padding-left: 1rem;
10888
}
10989
}
11090
111-
h4 {
112-
max-width: 90%;
113-
@media only screen and (max-width: 767px) {
114-
max-width: 100%;
115-
}
116-
}
91+
.hero-image {
92+
position: relative;
93+
display: flex;
94+
justify-content: center;
95+
flex: 0 0 50%;
96+
max-width: 50%;
97+
overflow: hidden;
98+
height: 100%;
11799
118-
.hero-image {
119-
position: relative;
120-
display: flex;
121-
justify-content: center;
122-
flex: 0 0 50%;
123-
max-width: 50%;
124-
125-
126-
127-
svg {
128-
align-items: center;
129-
justify-content: center;
130-
width: 70%;
131-
.visualizer-views-colorMode_svg__colorMode1 {
132-
fill: ${(props) => props.theme.whiteToGrey737373};
133-
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
134-
}
135-
}
100+
@media only screen and (max-width: 767px) {
101+
max-width: 100%;
102+
}
136103
137-
138-
.visible {
139-
opacity: 1;
140-
transition: all 0.2s ease-in;
141-
}
104+
svg {
105+
align-items: center;
106+
justify-content: center;
107+
width: 70%;
142108
143-
.not-visible {
144-
opacity: 0;
145-
transition: all 0.5s ease;
146-
}
109+
.visualizer-views-colorMode_svg__colorMode1 {
110+
fill: ${(props) => props.theme.whiteToGrey737373};
111+
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
112+
}
113+
}
147114
148-
@media only screen and (max-width: 767px) {
149-
max-width: 100%;
150-
}
115+
.visible {
116+
opacity: 1;
117+
transition: all 0.2s ease-in;
118+
}
119+
120+
.not-visible {
121+
opacity: 0;
122+
transition: all 0.5s ease;
123+
}
124+
}
125+
126+
h2 {
127+
padding-bottom: 2%;
128+
}
129+
130+
h4 {
131+
max-width: 90%;
151132
133+
@media only screen and (max-width: 767px) {
134+
max-width: 100%;
152135
}
136+
}
153137
154138
.overlay {
155139
width: 483px;
@@ -215,7 +199,8 @@ const ViewsSectionWrapper = styled.div`
215199
height:150px;
216200
padding: 2rem;
217201
box-sizing: border-box;
218-
background-color: ${(props) => props.theme.backgroundColor};
202+
background-color: ${(props) => props.theme.grey191919ToGreyF2F5F7};
203+
color: ${(props) => props.theme.whiteEightToBlack};
219204
margin-bottom: 1rem;
220205
border-radius: 1rem;
221206
//box-shadow: ${(props) => props.theme.boxShadowGreen00D3A9ToBlackTwoFive};
@@ -233,6 +218,7 @@ const ViewsSectionWrapper = styled.div`
233218
.box .boxText {
234219
margin-top: 1rem;
235220
text-align: center;
221+
color: ${(props) => props.theme.whiteEightToBlack};
236222
}
237223
238224
@media only screen and (max-width: 700px) {

0 commit comments

Comments
 (0)