Skip to content

Commit 0ec0899

Browse files
authored
fix: home banner style (#153)
1 parent ad46763 commit 0ec0899

6 files changed

Lines changed: 22 additions & 5 deletions

File tree

src/components/Footer/index.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
}
2323

2424
.containerWrapper {
25+
max-width: 80rem;
26+
padding: 0 32px;
2527
margin: auto;
2628
margin-bottom: 48px;
2729

src/components/HeroCard/index.less

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@
8484
background-color: rgb(53, 169, 245);
8585
border-radius: 50%;
8686
}
87+
88+
&:last-child {
89+
margin-bottom: 0;
90+
}
8791
}
8892
}
8993
}
@@ -95,16 +99,16 @@
9599
}
96100

97101
.cardPosition0 {
98-
bottom: -10px;
102+
bottom: 65px;
99103
right: 100px;
100104
}
101105

102106
.cardPosition1 {
103-
top: 140px;
107+
top: 65px;
104108
right: 200px;
105109
}
106110

107111
.cardPosition2 {
108-
top: -25px;
112+
top: -90px;
109113
right: 100px;
110114
}

src/components/ProductBanner/index.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
display: flex;
1111
justify-content: space-between;
1212
flex-wrap: wrap;
13+
align-items: center;
1314

1415
@media (min-width: 640px) {
1516
padding-top: 5rem;

src/components/TrackSVG/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.mianBox {
2-
transform: translate(110px, 170px) rotate(45deg);
2+
transform: translate(110px, 95px) rotate(45deg);
33
}
44

55
.box {

src/components/TrackSVG/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import styles from './index.less';
32

43
const TrackSVG = () => {

src/layouts/index.less

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
padding: 88px 32px 0;
1717
}
1818

19+
.content {
20+
max-width: 80rem;
21+
margin: auto;
22+
}
23+
1924
@media screen and (max-width: 768px) {
2025
.mainWrapper {
2126
padding: 88px 16px 0;
@@ -26,3 +31,9 @@
2631
width: 1440px;
2732
}
2833
}
34+
35+
@media (min-width: 1440) {
36+
.mainWrapper {
37+
margin: 2.5rem 160px 0;
38+
}
39+
}

0 commit comments

Comments
 (0)