Skip to content

Commit b238525

Browse files
committed
stuff ugh katie help
1 parent 5f11338 commit b238525

File tree

7 files changed

+14877
-13921
lines changed

7 files changed

+14877
-13921
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"version": "0.1.0",
66
"author": "Kyle Mathews <[email protected]>",
77
"dependencies": {
8+
"anime": "^0.1.2",
89
"gatsby": "^2.23.12",
910
"gatsby-image": "^2.4.9",
1011
"gatsby-plugin-manifest": "^2.4.14",
@@ -18,6 +19,7 @@
1819
"react": "^16.12.0",
1920
"react-dom": "^16.12.0",
2021
"react-helmet": "^6.1.0",
22+
"scrollmonitor-hooks": "^1.0.2",
2123
"styled-components": "^5.1.1"
2224
},
2325
"devDependencies": {

src/components/animated-svg.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import React from 'react';
2+
import styled from 'styled-components';
3+
4+
const Morph = styled.svg`
5+
position: relative;
6+
height: 100%;
7+
fill: var(--background-color-2);
8+
flex: none;
9+
`
10+
class AnimatedSVG extends React.Component {
11+
12+
13+
render() {
14+
return (
15+
<Morph className="morph" width="100%" height="100%" viewBox="0 0 1400 770">
16+
<path d={shape.pathAlt} />
17+
</Morph>
18+
)
19+
/*return (
20+
<Morph>
21+
<Anime easing="easeOutElastic"
22+
duration={shape.animation.path.duration}
23+
direction="alternate"
24+
loop={true}
25+
autoplay={true}
26+
d={shape.pathAlt}
27+
scale={[shape.scaleX, shape.scaleY]}>
28+
<path d={shape.path} />
29+
</Anime>
30+
</Morph>
31+
);
32+
*/
33+
}
34+
} export default AnimatedSVG;

src/components/landing.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,20 @@ overflow: hidden;
6161
6262
*/
6363

64-
const Landing = () => {
65-
return(
66-
<>
67-
<SectionContainer>
68-
<TitleContainer>
69-
<University>Northeastern University</University>
70-
<Name>Computer Science Mentoring Organization</Name>
71-
<InfoContainer>
72-
<InfoSection>Northeastern's Computer Science Mentoring Organization serves to better connect Northeastern students who are interested in computer science.</InfoSection>
73-
<InfoSection>We run a mentorship program every semester where undergraduates who are interested in computer science can get the help they need with classes, co-ops, and more.</InfoSection>
74-
<InfoSection>CoSMO is open to all. No prior CS experience required!</InfoSection>
75-
</InfoContainer>
76-
</TitleContainer>
77-
</SectionContainer>
78-
</>
64+
const Landing = ({ callbacks }) => {
65+
return (
66+
67+
<SectionContainer callbacks={callbacks}>
68+
<TitleContainer>
69+
<University>Northeastern University</University>
70+
<Name>Computer Science Mentoring Organization</Name>
71+
<InfoContainer>
72+
<InfoSection>Northeastern's Computer Science Mentoring Organization serves to better connect Northeastern students who are interested in computer science.</InfoSection>
73+
<InfoSection>We run a mentorship program every semester where undergraduates who are interested in computer science can get the help they need with classes, co-ops, and more.</InfoSection>
74+
<InfoSection>CoSMO is open to all. No prior CS experience required!</InfoSection>
75+
</InfoContainer>
76+
</TitleContainer>
77+
</SectionContainer>
7978
)
8079
}
8180

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
import styled from "styled-components"
2+
import { useScrollMonitor } from 'scrollmonitor-hooks';
3+
import React, { useRef } from "react"
24

3-
const SectionContainer = styled.div`
5+
6+
const SectionContainerBase = styled.div`
47
width: 100%;
58
height: 900px;
69
max-width: 1600px;
710
margin: auto;
811
`
12+
13+
const SectionContainer = ({children, callbacks}) => {
14+
const ref = useRef(null);
15+
useScrollMonitor(ref, callbacks, -300);
16+
return (
17+
<SectionContainerBase ref={ref} className="content-wrap">
18+
{children}
19+
</SectionContainerBase>
20+
);
21+
}
922
export default SectionContainer;

src/components/values.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ const valuesSectionShowcaseProps = {
3636
]
3737
}
3838

39-
const Values = () => {
39+
const Values = ({callbacks}) => {
4040
return (
41-
<SectionContainer>
41+
<SectionContainer callbacks={callbacks}>
4242
<Title>
4343
Our goals... idk what to put here lol but this is space we can put more info
4444
</Title>

0 commit comments

Comments
 (0)