Skip to content

Commit 1e74218

Browse files
committed
cleanup svg to use global defined patterns
1 parent 06330cc commit 1e74218

File tree

13 files changed

+1328
-1897
lines changed

13 files changed

+1328
-1897
lines changed

examples/components/Intro/hemispheres.svg

Lines changed: 1 addition & 1 deletion
Loading

examples/components/Intro/ring-of-dots.svg

Lines changed: 3 additions & 800 deletions
Loading

examples/components/Marquee/Marquee.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ const Marquee = () => (
1818
className={style.text}
1919
offsetYMax={70}
2020
offsetYMin={-70}
21-
offsetXMax={-20}
22-
offsetXMin={20}
21+
offsetXMax={-30}
22+
offsetXMin={30}
2323
>
2424
<h1>
25-
Slide
25+
Horizontal
2626
</h1>
2727
</Parallax>
2828
<Parallax

examples/components/Marquee/Marquee.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
flex-flow: column wrap;
1111
justify-content: space-between;
1212
align-items: center;
13-
height: 50vh;
14-
margin-bottom: 25vh;
13+
min-height: 50vh;
14+
margin-bottom: 50vh;
1515
}
1616

1717
:local(.divider) {
1818
display: block;
1919
width: 100%;
20+
margin-bottom: 25vh;
2021
}
2122

2223
:local(.container) {

examples/components/Marquee/box-bg.svg

Lines changed: 2 additions & 1087 deletions
Loading

examples/components/Marquee/box-outline.svg

Lines changed: 1 addition & 1 deletion
Loading

examples/components/ParallaxExample/ParallaxExample.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ import {
55
Marquee,
66
TriangleGrid,
77
Overlap,
8+
Svg,
89
} from 'components';
10+
911
import style from './ParallaExample.scss';
1012

13+
import noisePattern from '!!raw-loader!../shared/noise-pattern.svg';
14+
import dotPattern from '!!raw-loader!../shared/dot-pattern.svg';
15+
1116
export default class ParallaxExample extends Component {
1217

1318
render() {
@@ -18,6 +23,9 @@ export default class ParallaxExample extends Component {
1823
<Marquee />
1924
<Overlap />
2025
<TriangleGrid />
26+
27+
<Svg svg={noisePattern} />
28+
<Svg svg={dotPattern} />
2129
</div>
2230
);
2331
}

examples/components/Svg/Svg.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44

55
:local(.root) {
66
display: block;
7-
height: auto;
7+
svg {
8+
display: block;
9+
width: 100%;
10+
height: auto;
11+
}
812
}

examples/components/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export Intro from './Intro/Intro.js';
22
export IntroCopy from './IntroCopy/IntroCopy.js';
33
export Marquee from './Marquee/Marquee.js';
4-
export Svg from './Svg/Svg.js';
54
export ParallaxExample from './ParallaxExample/ParallaxExample.js';
5+
export Svg from './Svg/Svg.js';
6+
export Overlap from './Overlap/Overlap.js';
7+
export TriangleGrid from './TriangleGrid/TriangleGrid.js';
Lines changed: 6 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)