Skip to content

Commit 06330cc

Browse files
committed
stub overlap section
1 parent 6cc6824 commit 06330cc

File tree

5 files changed

+99
-0
lines changed

5 files changed

+99
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import React from 'react';
2+
import style from './Overlap.scss';
3+
import { Svg } from 'components';
4+
import { Parallax } from 'react-scroll-parallax';
5+
import circle from '!!raw-loader!./circle.svg';
6+
import circleRings from '!!raw-loader!./circle-rings.svg';
7+
8+
const Overlap = () => (
9+
<div className={style.root}>
10+
<div className={style.container}>
11+
<Parallax
12+
offsetXMax={-40}
13+
offsetXMin={20}
14+
className={style.circle}
15+
>
16+
<Svg
17+
svg={circle}
18+
/>
19+
</Parallax>
20+
<Parallax
21+
offsetXMax={40}
22+
offsetXMin={-20}
23+
className={style.circleRings}
24+
>
25+
<Svg
26+
svg={circleRings}
27+
/>
28+
</Parallax>
29+
</div>
30+
</div>
31+
);
32+
33+
export default Overlap;
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//
2+
// Intro Copy
3+
// ---------------------------
4+
5+
@import '../../styles/colors';
6+
7+
:local(.root) {
8+
position: relative;
9+
display: flex;
10+
flex-flow: column wrap;
11+
align-items: space-around;
12+
justify-content: center;
13+
align-items: center;
14+
paddin-top: 25vh;
15+
z-index: 1;
16+
}
17+
18+
:local(.container) {
19+
position: relative;
20+
width: 30em;
21+
}
22+
23+
:local(.circle) {
24+
}
25+
26+
:local(.circleRings) {
27+
position: absolute;
28+
top: 0;
29+
left: 0;
30+
right: 0;
31+
}
Lines changed: 27 additions & 0 deletions
Loading
Lines changed: 6 additions & 0 deletions
Loading

examples/components/ParallaxExample/ParallaxExample.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
IntroCopy,
55
Marquee,
66
TriangleGrid,
7+
Overlap,
78
} from 'components';
89
import style from './ParallaExample.scss';
910

@@ -15,6 +16,7 @@ export default class ParallaxExample extends Component {
1516
<Intro />
1617
<IntroCopy />
1718
<Marquee />
19+
<Overlap />
1820
<TriangleGrid />
1921
</div>
2022
);

0 commit comments

Comments
 (0)