File tree Expand file tree Collapse file tree 5 files changed +99
-0
lines changed Expand file tree Collapse file tree 5 files changed +99
-0
lines changed Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 44 IntroCopy ,
55 Marquee ,
66 TriangleGrid ,
7+ Overlap ,
78} from 'components' ;
89import 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 ) ;
You can’t perform that action at this time.
0 commit comments