Skip to content

Commit bf1d634

Browse files
committed
Fix landing page responsive issues on small devices
1 parent fec40b0 commit bf1d634

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

docuilib/src/components/ComponentsSection.module.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66
flex-direction: column;
77
align-items: center;
88
width: 100%;
9-
9+
padding-left: 40px;
10+
padding-right: 40px;
11+
1012
.componentsInner {
1113
text-align: center;
1214
display: flex;
1315
flex-direction: column;
1416
align-items: center;
1517
width: 100%;
18+
padding: 0;
1619

1720
p {
1821
@include desktop {

docuilib/src/components/FeatureSection.module.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
padding-bottom: 100px;
88
width: 100%;
99
text-align: center;
10+
padding-left: 40px;
11+
padding-right: 40px;
1012

1113
.cards {
1214
display: flex;

docuilib/src/components/MainSection.module.scss

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
.main {
44
position: relative;
5-
height: 75vh;
65
width: 100%;
76
display: flex;
87
justify-content: center;
8+
margin-bottom: 40px;
99

1010
@include desktop {
1111
height: 100vh;
@@ -22,16 +22,16 @@
2222
}
2323

2424
.mainContent {
25-
position: absolute;
2625
z-index: 1;
2726
display: flex;
2827
flex-direction: column;
2928
align-items: flex-start;
3029
top: 15vh;
3130
text-align: center;
32-
padding: 0 40px;
31+
padding: 40px;
3332

3433
@include desktop() {
34+
position: absolute;
3535
padding: 0;
3636
top: 15vw;
3737
left: 7vw;
@@ -40,9 +40,15 @@
4040
}
4141

4242
> p {
43-
font-size: 3em;
43+
font-size: 2.5em;
4444
font-weight: 600;
4545
margin: 0;
46+
line-height: 1.2;
47+
48+
@include desktop {
49+
font-size: 3em;
50+
line-height: 1.5;
51+
}
4652

4753
> .libName {
4854
color: $primary;
@@ -55,8 +61,10 @@
5561
border: 1px solid;
5662
border-radius: 2px;
5763
align-self: center;
58-
64+
margin-top: 20px;
65+
5966
@include desktop {
67+
margin-top: 0;
6068
align-self: flex-start;
6169
}
6270

docuilib/src/components/MainSection.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import GoldStarSvg from '@site/static/img/goldStar.svg';
88

99
export default () => {
1010
const {siteConfig} = useDocusaurusContext();
11-
console.warn('ethan - siteConfig', siteConfig.customFields.stars)
1211

1312
return (
1413
<div className={styles.main}>

0 commit comments

Comments
 (0)