@t2ca/gatsby-theme-showcase 1.0.25 → 1.0.27
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/package.json +1 -1
- package/src/components/hero.js +54 -12
package/package.json
CHANGED
package/src/components/hero.js
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from "react"
|
|
3
|
-
import {
|
|
3
|
+
// import { useStaticQuery, graphql } from "gatsby"
|
|
4
|
+
// import Img from "gatsby-image"
|
|
5
|
+
import { jsx, Styled, Container, Flex, Box } from "theme-ui"
|
|
4
6
|
import { useSpring, animated } from "react-spring"
|
|
5
7
|
|
|
6
8
|
export default ({
|
|
7
9
|
headingTop,
|
|
8
10
|
headingMiddle,
|
|
9
11
|
headingBottom,
|
|
12
|
+
background = `MainHero`,
|
|
13
|
+
color,
|
|
10
14
|
minHeight = `100vh`,
|
|
15
|
+
svg,
|
|
11
16
|
}) => {
|
|
12
17
|
const titleProps = useSpring({
|
|
13
18
|
from: { opacity: 0, transform: "translate3d(0, -200px, 0)" },
|
|
@@ -21,23 +26,60 @@ export default ({
|
|
|
21
26
|
pt: 6,
|
|
22
27
|
px: [4, 5],
|
|
23
28
|
position: "relative",
|
|
24
|
-
bg:
|
|
29
|
+
bg: background,
|
|
25
30
|
minHeight: minHeight, // screenHeight
|
|
26
31
|
}}
|
|
27
32
|
>
|
|
28
33
|
<Container sx={{ py: 3, px: 4 }}>
|
|
29
34
|
<animated.div style={titleProps}>
|
|
30
|
-
<
|
|
31
|
-
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
<Flex
|
|
36
|
+
sx={{
|
|
37
|
+
display: [`block`, `flex`],
|
|
38
|
+
alignItems: `center`,
|
|
39
|
+
justifyContent: `center`,
|
|
40
|
+
width: `100%`,
|
|
41
|
+
}}
|
|
42
|
+
>
|
|
43
|
+
<Flex
|
|
44
|
+
sx={{
|
|
45
|
+
// alignItems: `center`,
|
|
46
|
+
// justifyContent: `center`,
|
|
47
|
+
flexDirection: `column`,
|
|
48
|
+
flexBasis: `100%`,
|
|
49
|
+
color: color,
|
|
50
|
+
// flex: `1 0 0`,
|
|
51
|
+
}}
|
|
52
|
+
>
|
|
53
|
+
<Styled.h1 sx={{ fontSize: [6, 7], fontWeight: `extrabold` }}>
|
|
54
|
+
{headingTop}
|
|
55
|
+
</Styled.h1>
|
|
56
|
+
<Styled.h1 sx={{ fontSize: [6, 7], fontWeight: `extrabold` }}>
|
|
57
|
+
{headingMiddle}
|
|
58
|
+
</Styled.h1>
|
|
59
|
+
<Styled.h1 sx={{ fontSize: [6, 7], fontWeight: `extrabold` }}>
|
|
60
|
+
{headingBottom}
|
|
61
|
+
</Styled.h1>
|
|
62
|
+
</Flex>
|
|
63
|
+
<Flex
|
|
64
|
+
sx={{
|
|
65
|
+
// px: 6,
|
|
66
|
+
display: [`none`, `initial`],
|
|
67
|
+
// alignItems: `center`,
|
|
68
|
+
// justifyContent: `center`,
|
|
69
|
+
flexDirection: `column`,
|
|
70
|
+
flexBasis: `100%`,
|
|
71
|
+
// flex: `2 0 0`,
|
|
72
|
+
// alignSelf: `flex-end`,
|
|
73
|
+
maxHeight: `200px`,
|
|
74
|
+
}}
|
|
75
|
+
>
|
|
76
|
+
{svg}
|
|
77
|
+
</Flex>
|
|
78
|
+
</Flex>
|
|
39
79
|
<div sx={{ width: [`5/6`, `2/3`] }}>
|
|
40
|
-
<Styled.p
|
|
80
|
+
<Styled.p
|
|
81
|
+
sx={{ fontSize: [1, 2], py: 4, lineHeight: 2.5, color: color }}
|
|
82
|
+
>
|
|
41
83
|
Partnering with us is a journey and not just a single
|
|
42
84
|
transaction. While working together we will help you navigate
|
|
43
85
|
the dynamic digital landscape and help you get ahead of your
|