Skip to content

Commit d58f970

Browse files
committed
update Marquee layout
1 parent cb00405 commit d58f970

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

examples/components/IntroCopy/IntroCopy.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
align-items: space-around;
1111
justify-content: center;
1212
align-items: center;
13-
height: 100vh;
13+
margin-top: 25vh;
14+
height: 50vh;
1415
}
1516

1617
:local(.copy) {

examples/components/Marquee/Marquee.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,11 @@ import { Svg } from 'components';
44
import { Parallax } from 'react-scroll-parallax';
55
import boxBg from '!!raw-loader!./box-bg.svg';
66
import boxOutline from '!!raw-loader!./box-outline.svg';
7+
import divider from '!!raw-loader!../shared/divider.svg';
78

89
const Marquee = () => (
910
<div className={style.root}>
10-
<Parallax
11-
offsetYMax={20}
12-
offsetYMin={-20}
13-
slowerScrollRate
14-
>
15-
<hr className={style.hr} />
16-
</Parallax>
11+
<Svg svg={divider} className={style.divider} />
1712
<div className={style.container}>
1813
<Svg
1914
svg={boxBg}

examples/components/Marquee/Marquee.scss

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@
88
position: relative;
99
display: flex;
1010
flex-flow: column wrap;
11-
align-items: space-around;
12-
justify-content: center;
11+
justify-content: space-between;
1312
align-items: center;
1413
height: 50vh;
15-
margin-bottom: 100vh;
14+
margin-bottom: 25vh;
1615
}
1716

18-
:local(.hr) {
19-
position: absolute;
20-
top: -30%;
21-
transform: skewY(-10deg);
17+
:local(.divider) {
18+
display: block;
19+
width: 100%;
2220
}
2321

2422
:local(.container) {
Lines changed: 6 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)