@t2ca/gatsby-theme-showcase 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
|
@@ -5,3 +5,5 @@ export { default as Card } from "./src/components/card"
|
|
|
5
5
|
export { default as Button } from "./src/components/button"
|
|
6
6
|
export { default as LogoBanner } from "./src/components/logo-banner"
|
|
7
7
|
export { default as Wave } from "./src/components/wave"
|
|
8
|
+
export { default as Hero } from "./src/components/hero"
|
|
9
|
+
|
package/package.json
CHANGED
package/src/components/hero.js
CHANGED
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
import React from "react"
|
|
3
3
|
import { jsx, Styled, Container } from "theme-ui"
|
|
4
4
|
import { useSpring, animated } from "react-spring"
|
|
5
|
-
import Wave from "./wave"
|
|
6
5
|
|
|
7
|
-
export default
|
|
6
|
+
export default ({
|
|
7
|
+
headingTop,
|
|
8
|
+
headingMiddle,
|
|
9
|
+
headingBottom,
|
|
10
|
+
minHeight = `100vh`,
|
|
11
|
+
}) => {
|
|
8
12
|
const titleProps = useSpring({
|
|
9
13
|
from: { opacity: 0, transform: "translate3d(0, -200px, 0)" },
|
|
10
14
|
to: { opacity: 1, transform: "translate3d(0, 0, 0)" },
|
|
@@ -18,19 +22,19 @@ export default props => {
|
|
|
18
22
|
px: [4, 5],
|
|
19
23
|
position: "relative",
|
|
20
24
|
bg: `MainHero`,
|
|
21
|
-
minHeight:
|
|
25
|
+
minHeight: minHeight, // screenHeight
|
|
22
26
|
}}
|
|
23
27
|
>
|
|
24
28
|
<Container>
|
|
25
29
|
<animated.div style={titleProps}>
|
|
26
30
|
<Styled.h1 sx={{ fontSize: [6, 7], fontWeight: `extrabold` }}>
|
|
27
|
-
{
|
|
31
|
+
{headingTop}
|
|
28
32
|
</Styled.h1>
|
|
29
33
|
<Styled.h1 sx={{ fontSize: [6, 7], fontWeight: `extrabold` }}>
|
|
30
|
-
{
|
|
34
|
+
{headingMiddle}
|
|
31
35
|
</Styled.h1>
|
|
32
36
|
<Styled.h1 sx={{ fontSize: [6, 7], fontWeight: `extrabold` }}>
|
|
33
|
-
{
|
|
37
|
+
{headingBottom}
|
|
34
38
|
</Styled.h1>
|
|
35
39
|
<div sx={{ width: [`5/6`, `2/3`] }}>
|
|
36
40
|
<Styled.p sx={{ fontSize: [1, 2], py: 4, lineHeight: 2.5 }}>
|
|
@@ -43,8 +47,6 @@ export default props => {
|
|
|
43
47
|
</animated.div>
|
|
44
48
|
</Container>
|
|
45
49
|
</div>
|
|
46
|
-
|
|
47
|
-
<Wave background="Menu" />
|
|
48
50
|
</React.Fragment>
|
|
49
51
|
)
|
|
50
52
|
}
|
package/src/components/layout.js
CHANGED
|
@@ -29,6 +29,7 @@ const Project = data => {
|
|
|
29
29
|
px: ["1.5rem", "3rem"],
|
|
30
30
|
zIndex: "1",
|
|
31
31
|
position: "relative",
|
|
32
|
+
minHeight: `75vh`, // screenHeight
|
|
32
33
|
}}
|
|
33
34
|
>
|
|
34
35
|
<animated.div style={titleProps}>
|
|
@@ -55,6 +56,12 @@ const Project = data => {
|
|
|
55
56
|
</Container>
|
|
56
57
|
|
|
57
58
|
<Wave background="cBg" />
|
|
59
|
+
|
|
60
|
+
<div sx={{ bg: `mBg` }}>
|
|
61
|
+
<Container>
|
|
62
|
+
<Image fluid={data.laptop.childImageSharp.fluid} sx={{}} />
|
|
63
|
+
</Container>
|
|
64
|
+
</div>
|
|
58
65
|
</React.Fragment>
|
|
59
66
|
)
|
|
60
67
|
}
|
|
@@ -7,13 +7,12 @@ export default {
|
|
|
7
7
|
Header: {
|
|
8
8
|
primary: {
|
|
9
9
|
bg: `Menu`,
|
|
10
|
-
|
|
10
|
+
borderBottom: `1px solid transparent`,
|
|
11
11
|
// position: "fixed",
|
|
12
12
|
// top: 0,
|
|
13
13
|
// width: "100%",
|
|
14
14
|
// zIndex: 10,
|
|
15
15
|
// borderColor: `rgb(212, 212, 213)`,
|
|
16
|
-
|
|
17
16
|
// borderColor: `rgb(212, 212, 213)`,
|
|
18
17
|
},
|
|
19
18
|
secondary: {
|
package/src/templates/project.js
CHANGED
|
@@ -3,17 +3,13 @@ import { graphql } from "gatsby"
|
|
|
3
3
|
import Layout from "../components/layout"
|
|
4
4
|
import Project from "../components/project"
|
|
5
5
|
|
|
6
|
-
const ProjectTemplates = ({ data: { projectYaml }
|
|
6
|
+
const ProjectTemplates = ({ data: { projectYaml } }) => {
|
|
7
7
|
const styles = {
|
|
8
8
|
variant: "styles.Header.secondary",
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
return (
|
|
12
|
-
<Layout
|
|
13
|
-
main={{ ...styles, borderBottom: `inherit` }}
|
|
14
|
-
header={styles}
|
|
15
|
-
location={location}
|
|
16
|
-
>
|
|
12
|
+
<Layout main={{ ...styles, borderBottom: `inherit` }} header={styles}>
|
|
17
13
|
<Project {...projectYaml} />
|
|
18
14
|
</Layout>
|
|
19
15
|
)
|
|
@@ -32,6 +28,13 @@ export const query = graphql`
|
|
|
32
28
|
}
|
|
33
29
|
}
|
|
34
30
|
}
|
|
31
|
+
laptop {
|
|
32
|
+
childImageSharp {
|
|
33
|
+
fluid {
|
|
34
|
+
...GatsbyImageSharpFluid_withWebp_tracedSVG
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
40
|
`
|