Skip to content

Commit fd93c4b

Browse files
committed
🐛 fix landing page theme (Attemp-4)
Partial fix, need modifications
1 parent af8ba35 commit fd93c4b

File tree

3 files changed

+39
-38
lines changed

3 files changed

+39
-38
lines changed

doc/src/templates/landing-main/contrib-section/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import Button from '../../../../../lib/button';
44
import engineerImage from '../../../images/engineer.svg';
55
import developerImage from '../../../images/man-in-office-desk-with-computer.svg';
66
import contributeImage from '../../../images/triple-arrow-merging-to-one.svg';
7-
import theme from './index.scss';
87
import FooterSection from './footer';
8+
import theme from './theme.module.scss';
9+
import './index.scss';
910

1011
const ContributionSection = () => (
1112
<div className="contrib-section">
Lines changed: 12 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,25 @@
1-
:local(.cardFooter) {
2-
justify-content: center;
3-
margin-top: 4rem;
4-
align-self: baseline;
5-
}
6-
7-
:local(.cardHeader) {
8-
color: #0c549c;
9-
margin-bottom: 2rem;
10-
text-align: center;
11-
height: 3rem;
12-
}
13-
14-
:local(.card) {
15-
padding: 1.5rem;
16-
z-index: 2;
17-
height: fit-content;
18-
width: 100%;
19-
transition: margin 0.2s ease-in-out;
20-
}
21-
22-
:local(.button) {
23-
background: #f9552a;
24-
color: white;
25-
}
261

272
@media only screen and (max-width: 630px) {
28-
.row {
29-
flex-flow: column !important;
30-
}
3+
.row {
4+
flex-flow: column !important;
5+
}
316
}
327

338
@media only screen and (max-width: 530px) {
34-
.row {
35-
padding: 2rem !important;
36-
}
9+
.row {
10+
padding: 2rem !important;
11+
}
3712
}
3813

3914

4015
.col {
41-
margin: 1rem !important;
42-
flex-flow: column;
16+
margin: 1rem !important;
17+
flex-flow: column;
4318
}
4419

4520
.card-content {
46-
img {
47-
max-width: 100% !important;
48-
height: auto;
49-
}
21+
img {
22+
max-width: 100% !important;
23+
height: auto;
24+
}
5025
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
:local(.cardFooter) {
2+
justify-content: center !important;
3+
margin-top: 4rem !important;
4+
align-self: baseline;
5+
}
6+
7+
:local(.cardHeader) {
8+
color: #0c549c;
9+
margin-bottom: 2rem !important;
10+
text-align: center;
11+
height: 3rem;
12+
}
13+
14+
:local(.card) {
15+
padding: 1.5rem !important;
16+
z-index: 2;
17+
height: fit-content;
18+
width: 100%;
19+
transition: margin 0.2s ease-in-out;
20+
}
21+
22+
:local(.button) {
23+
background-color: #f9552a !important;
24+
color: white;
25+
}

0 commit comments

Comments
 (0)