@t2ca/gatsby-theme-showcase 1.0.5 → 1.0.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t2ca/gatsby-theme-showcase",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -17,7 +17,7 @@ export default props => {
17
17
  px: [4, 5],
18
18
  position: "relative",
19
19
  bg: `MainHero`,
20
- minHeight: `screenHeight`, // 80vh
20
+ minHeight: `80vh`, // screenHeight
21
21
  }}
22
22
  >
23
23
  <Container>
@@ -9,10 +9,10 @@ const styles = {
9
9
  px: 0,
10
10
  py: 0,
11
11
  color: "primary",
12
- margin: 4,
12
+ margin: 3,
13
13
  textDecoration: "none",
14
14
  borderBottom: `2px solid transparent`,
15
- lineHeight: 5,
15
+ lineHeight: 2,
16
16
  transition: `all .5s ease-in;`,
17
17
  "&.active": {
18
18
  borderBottom: `1px solid transparent`,
@@ -20,39 +20,71 @@ const Project = data => {
20
20
  })
21
21
 
22
22
  return (
23
- <div>
24
- <Container sx={{ px: [0, 4], py: 0 }}>
25
- <div
26
- sx={{
27
- py: "15rem",
28
- px: ["1.5rem", "3rem"],
29
- zIndex: "1",
30
- position: "relative",
31
- }}
32
- >
33
- <animated.div style={titleProps}>
34
- <Styled.a as={Link} to="/projects/">
35
- <FaArrowLeft size={12} sx={{ marginRight: ".25rem" }} />
36
- Back to showcase
37
- </Styled.a>
38
- <Styled.h1>{data.title}</Styled.h1>
39
- </animated.div>
40
-
41
- <Image
42
- fluid={data.hero.childImageSharp.fluid}
43
- style={imgProps}
23
+ <React.Fragment>
24
+ <div>
25
+ <Container sx={{ px: [0, 4], py: 0 }}>
26
+ <div
44
27
  sx={{
45
- position: "absolute !important",
46
- top: "0",
47
- left: "10vw",
48
- right: "0",
49
- bottom: "0",
50
- zIndex: "-1",
28
+ py: "15rem",
29
+ px: ["1.5rem", "3rem"],
30
+ zIndex: "1",
31
+ position: "relative",
51
32
  }}
52
- />
53
- </div>
54
- </Container>
55
- </div>
33
+ >
34
+ <animated.div style={titleProps}>
35
+ <Styled.a as={Link} to="/projects/">
36
+ <FaArrowLeft size={12} sx={{ marginRight: ".25rem" }} />
37
+ Back to showcase
38
+ </Styled.a>
39
+ <Styled.h1>{data.title}</Styled.h1>
40
+ </animated.div>
41
+
42
+ <Image
43
+ fluid={data.hero.childImageSharp.fluid}
44
+ style={imgProps}
45
+ sx={{
46
+ position: "absolute !important",
47
+ top: "0",
48
+ left: "10vw",
49
+ right: "0",
50
+ bottom: "0",
51
+ zIndex: "-1",
52
+ }}
53
+ />
54
+ </div>
55
+ </Container>
56
+ </div>
57
+ <div sx={{ bg: `gray.1` }}>
58
+ <svg
59
+ sx={{ bg: "pink.1" }}
60
+ xmlns="http://www.w3.org/2000/svg"
61
+ viewBox="0 0 1440 200"
62
+ >
63
+ <path
64
+ sx={{ fill: "Menu" }}
65
+ d="M0,96L40,112C80,128,160,160,240,170.7C320,181,400,171,480,160C560,149,640,139,720,112C800,85,880,43,960,37.3C1040,32,1120,64,1200,96C1280,128,1360,160,1400,176L1440,192L1440,0L1400,0C1360,0,1280,0,1200,0C1120,0,1040,0,960,0C880,0,800,0,720,0C640,0,560,0,480,0C400,0,320,0,240,0C160,0,80,0,40,0L0,0Z"
66
+ ></path>
67
+ <g transform="translate(0.000000, 44.000000)">
68
+ <path
69
+ sx={{ fill: "waveX" }}
70
+ d="M0,0 C90.7283404,0.927527913 147.912752,27.187927 291.910178,59.9119003 C387.908462,81.7278826 543.605069,89.334785 759,82.7326078 C469.336065,156.254352 216.336065,153.6679 0,74.9732496"
71
+ opacity="0.100000001"
72
+ ></path>
73
+ <path
74
+ sx={{ fill: "waveY" }}
75
+ d="M100,104.708498 C277.413333,72.2345949 426.147877,52.5246657 546.203633,45.5787101 C666.259389,38.6327546 810.524845,41.7979068 979,55.0741668 C931.069965,56.122511 810.303266,74.8455141 616.699903,111.243176 C423.096539,147.640838 250.863238,145.462612 100,104.708498 Z"
76
+ opacity="0.100000001"
77
+ ></path>
78
+ <path
79
+ sx={{ fill: "waveZ" }}
80
+ d="M920,51.6521276 C1130.83045,29.328812 1279.08318,17.607883 1439,40.1656806 L1439,120 C1271.17211,77.9435312 1140.17211,55.1609071 1046,51.6521276 Z"
81
+ id="Path-4"
82
+ opacity="0.200000003"
83
+ ></path>
84
+ </g>
85
+ </svg>
86
+ </div>
87
+ </React.Fragment>
56
88
  )
57
89
  }
58
90