@t2ca/gatsby-theme-showcase 1.0.54 → 1.0.56

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.54",
3
+ "version": "1.0.56",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -30,7 +30,6 @@
30
30
  "@theme-ui/preset-tailwind": "^0.4.0-rc.1",
31
31
  "@theme-ui/sidenav": "^0.4.0-rc.1",
32
32
  "@theme-ui/typography": "^0.4.0-rc.1",
33
- "deepmerge": "^4.0.0",
34
33
  "framer-motion": "^1.10.3",
35
34
  "gatsby": "^2.13.3",
36
35
  "gatsby-image": "^2.2.7",
@@ -49,7 +48,6 @@
49
48
  "react-icons": "^3.7.0",
50
49
  "remark-slug": "^6.0.0",
51
50
  "theme-ui": "^0.4.0-rc.1",
52
- "typeface-righteous": "^0.0.72",
53
51
  "yup": "^0.29.0"
54
52
  },
55
53
  "scripts": {
@@ -64,7 +64,7 @@ export default ({
64
64
  bg: "transparent",
65
65
  border: 0,
66
66
  color: "text",
67
- display: ["initial", "none"],
67
+ display: ["initial", "initial", "none"],
68
68
  fontFamily: "inherit",
69
69
  fontSize: 24,
70
70
  p: 0,
@@ -80,7 +80,7 @@ export default ({
80
80
  <Burger />
81
81
  )}
82
82
  <Link to="/" sx={{ color: "inherit", textDecoration: "none" }}>
83
- <div sx={{ display: ["none", "inherit"], pt: "4px" }}>
83
+ <div sx={{ display: ["none", "none", "inherit"], pt: "4px" }}>
84
84
  <img
85
85
  src={isDark ? desktopLogoWhite : desktopLogo}
86
86
  height={35}
@@ -100,7 +100,7 @@ export default ({
100
100
  loading="eager"
101
101
  />*/}
102
102
  </div>
103
- <div sx={{ display: ["inherit", "none"] }}>
103
+ <div sx={{ display: ["inherit", "inherit", "none"] }}>
104
104
  <img
105
105
  src={mobileLogo}
106
106
  height={35}
@@ -131,7 +131,7 @@ export default ({
131
131
  height: 59,
132
132
  }}
133
133
  >
134
- <div sx={{ display: ["none", "inherit"] }}>
134
+ <div sx={{ display: ["none", "none", "inherit"] }}>
135
135
  {menuList &&
136
136
  menuList.map(({ node: { label, link, id } }) => (
137
137
  <NavLink key={id} to={link}>
@@ -1,8 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from "react"
3
- // import { useStaticQuery, graphql } from "gatsby"
4
- // import Img from "gatsby-image"
5
- import { jsx, Styled, Container, Flex, Box } from "theme-ui"
3
+ import { jsx, Styled, Container, Flex } from "theme-ui"
6
4
  import { motion } from "framer-motion"
7
5
 
8
6
  export default ({
@@ -62,7 +60,7 @@ export default ({
62
60
  <Flex
63
61
  sx={{
64
62
  // px: 6,
65
- display: [`none`, `initial`],
63
+ display: [`none`, `none`, `initial`],
66
64
  // alignItems: `center`,
67
65
  // justifyContent: `center`,
68
66
  flexDirection: `column`,
@@ -48,12 +48,7 @@ const Layout = ({ header, main, children }) => {
48
48
  setMenuOpen(false)
49
49
  }}
50
50
  >
51
- <Sidebar
52
- open={menuOpen}
53
- sx={{
54
- display: [null, "none"],
55
- }}
56
- />
51
+ <Sidebar open={menuOpen} />
57
52
  </div>
58
53
 
59
54
  <div
@@ -11,11 +11,11 @@ import Wave from "./wave"
11
11
  const Project = (data) => {
12
12
  return (
13
13
  <React.Fragment>
14
- <Container sx={{ px: [0, 4], py: 0 }}>
14
+ <Container sx={{ px: [0, 0, 4], py: 0 }}>
15
15
  <div
16
16
  sx={{
17
17
  py: "15rem",
18
- px: ["1.5rem", "3rem"],
18
+ px: ["1.5rem", "1.5rem", "3rem"],
19
19
  zIndex: "1",
20
20
  position: "relative",
21
21
  minHeight: `75vh`, // screenHeight
@@ -10,22 +10,24 @@ const components = {
10
10
  a: NavLink,
11
11
  }
12
12
 
13
- export default props => {
14
- const Menu = props.menuList || MenuList
13
+ export default ({ menuList, open }) => {
14
+ const Menu = menuList || MenuList
15
15
 
16
16
  return (
17
17
  <Menu
18
- {...props}
19
18
  components={components}
20
19
  sx={{
21
- width: 256,
22
- flex: "none",
23
20
  px: 3,
24
21
  pt: 3,
25
22
  pb: 4,
26
- mt: [60, 0],
23
+ mt: [60, 60, 0],
24
+ position: ["fixed", "fixed", "sticky"],
25
+ bottom: [0, 0, "auto"],
26
+ maxHeight: ["100vh", "100vh", "none"],
27
+ bg: ["Menu", "Menu", "transparent"],
28
+ display: [null, null, "none"],
29
+ transform: [open ? "translateX(0)" : "translate(-100%) !important"],
27
30
  zIndex: 10,
28
- bg: "Menu",
29
31
  }}
30
32
  />
31
33
  )
@@ -1,173 +1,154 @@
1
- import merge from "deepmerge"
1
+ import { merge } from "theme-ui"
2
2
  import tailwind from "@theme-ui/preset-tailwind"
3
3
  import styles from "./styles"
4
4
  import colors from "./colors"
5
5
 
6
- import "typeface-righteous/index.css"
7
-
8
- const overwriteMerge = (destinationArray, sourceArray, options) => sourceArray
9
-
10
- export default merge(
11
- tailwind,
12
- {
13
- // breakpoints: ["768px", "992px", "1200px"],
14
- breakpoints: ["768px", "1024px", "1280px"],
15
- // initialColorMode: `light`,
16
- // useCustomProperties: true,
17
- textStyles: {
18
- heading: {
19
- fontFamily: "heading",
20
- fontWeight: "heading",
21
- lineHeight: "heading",
22
- },
6
+ export default merge(tailwind, {
7
+ colors,
8
+ styles,
9
+ buttons: {
10
+ primary: {
11
+ ...tailwind.buttons.simple,
12
+ backgroundColor: `brand`,
13
+ outline: `none`,
14
+ "&:hover": { backgroundColor: `brandHover` },
23
15
  },
24
- colors,
25
- styles,
26
- buttons: {
27
- primary: {
28
- ...tailwind.buttons.simple,
29
- backgroundColor: `brand`,
30
- outline: `none`,
31
- "&:hover": { backgroundColor: `brandHover` },
32
- },
33
- secondary: {
34
- ...tailwind.buttons.elevated,
35
- outline: `none`,
36
- color: `gray.8`,
37
- },
38
- basic: {
39
- ...tailwind.buttons.outline,
40
- outline: `none`,
41
- borderColor: `brand`,
42
- color: `brand`,
43
- "&:hover": { backgroundColor: `brand`, color: `white` },
44
- },
16
+ secondary: {
17
+ ...tailwind.buttons.elevated,
18
+ outline: `none`,
19
+ color: `gray.8`,
20
+ },
21
+ basic: {
22
+ ...tailwind.buttons.outline,
23
+ outline: `none`,
24
+ borderColor: `brand`,
25
+ color: `brand`,
26
+ "&:hover": { backgroundColor: `brand`, color: `white` },
27
+ },
28
+ },
29
+ inputs: {
30
+ primary: {
31
+ ...tailwind.inputs.inline,
32
+ width: `full`,
33
+ caretColor: tailwind.colors.pink[6],
45
34
  },
46
- inputs: {
47
- primary: {
48
- ...tailwind.inputs.inline,
49
- width: `full`,
50
- caretColor: tailwind.colors.pink[6],
35
+ secondary: {
36
+ ...tailwind.inputs.shadow,
37
+ width: `full`,
38
+ },
39
+ },
40
+ links: {
41
+ primary: {
42
+ display: "inline-block",
43
+ px: 0,
44
+ py: 0,
45
+ color: "primary",
46
+ margin: 3,
47
+ textDecoration: "none",
48
+ lineHeight: 1.75,
49
+ position: `relative`,
50
+ "&.active": {
51
+ borderBottom: `1px solid transparent`,
52
+ borderColor: "secondary",
53
+ color: "secondary",
54
+ cursor: "default",
51
55
  },
52
- secondary: {
53
- ...tailwind.inputs.shadow,
54
- width: `full`,
56
+ "&::after": {
57
+ content: '""',
58
+ position: "absolute",
59
+ height: "1px",
60
+ width: 0,
61
+ bottom: 0,
62
+ left: 0,
63
+ bg: "primary",
64
+ transition: `all .25s ease-in-out 0s`,
65
+ },
66
+ "&:hover:not(.active)::after": {
67
+ width: `100%`,
55
68
  },
56
69
  },
57
- links: {
58
- primary: {
59
- display: "inline-block",
60
- px: 0,
61
- py: 0,
62
- color: "primary",
63
- margin: 3,
64
- textDecoration: "none",
65
- lineHeight: 1.75,
66
- position: `relative`,
67
- "&.active": {
68
- borderBottom: `1px solid transparent`,
69
- borderColor: "secondary",
70
- color: "secondary",
71
- cursor: "default",
72
- },
73
- "&::after": {
74
- content: '""',
75
- position: "absolute",
76
- height: "1px",
77
- width: 0,
78
- bottom: 0,
79
- left: 0,
80
- bg: "primary",
81
- transition: `all .25s ease-in-out 0s`,
82
- },
83
- "&:hover:not(.active)::after": {
84
- width: `100%`,
85
- },
70
+ secondary: {
71
+ display: "inline-block",
72
+ px: 0,
73
+ py: 0,
74
+ color: "primary",
75
+ margin: 3,
76
+ textDecoration: "none",
77
+ lineHeight: 1.75,
78
+ position: `relative`,
79
+ "&.active": {
80
+ borderBottom: `1px solid transparent`,
81
+ borderColor: "secondary",
82
+ color: "secondary",
83
+ cursor: "default",
86
84
  },
87
- secondary: {
88
- display: "inline-block",
89
- px: 0,
90
- py: 0,
91
- color: "primary",
92
- margin: 3,
93
- textDecoration: "none",
94
- lineHeight: 1.75,
95
- position: `relative`,
96
- "&.active": {
97
- borderBottom: `1px solid transparent`,
98
- borderColor: "secondary",
99
- color: "secondary",
100
- cursor: "default",
101
- },
102
- "&::after": {
103
- content: '""',
104
- position: "absolute",
105
- width: "100%",
106
- height: "1px",
107
- bottom: "0",
108
- left: "0",
109
- visibility: "hidden",
110
- transform: "scaleX(0)",
111
- transition: "all 0.25s ease-in-out 0s",
112
- bg: "primary",
113
- },
114
- "&:hover:not(.active)::after": {
115
- visibility: "visible",
116
- transform: "scaleX(1)",
117
- },
85
+ "&::after": {
86
+ content: '""',
87
+ position: "absolute",
88
+ width: "100%",
89
+ height: "1px",
90
+ bottom: "0",
91
+ left: "0",
92
+ visibility: "hidden",
93
+ transform: "scaleX(0)",
94
+ transition: "all 0.25s ease-in-out 0s",
95
+ bg: "primary",
118
96
  },
119
- basic: {
120
- display: "inline-block",
121
- px: 0,
122
- py: 0,
123
- color: "primary",
124
- margin: 3,
125
- textDecoration: "none",
126
- borderBottom: `2px solid transparent`,
127
- lineHeight: 2,
128
- transition: `all .5s ease-in;`,
129
- "&.active": {
130
- borderBottom: `1px solid transparent`,
131
- borderColor: "secondary",
132
- color: "secondary",
133
- cursor: "default",
134
- },
135
- "&:hover:not(.active)": {
136
- borderColor: "primary",
137
- },
97
+ "&:hover:not(.active)::after": {
98
+ visibility: "visible",
99
+ transform: "scaleX(1)",
138
100
  },
139
101
  },
140
- alerts: {
141
- error: {
142
- borderRadius: `sm`,
143
- bg: `red.1`,
144
- // border: `1px solid ${tailwind.colors.red[8]}`,
145
- boxShadow: `inset 0 0 0 1px ${tailwind.colors.red[8]}, 0 0 0 0 transparent`,
146
- opacity: 0.7,
147
- color: `red.8`,
148
- p: 3,
149
- my: 3,
150
- fontWeight: `medium`,
151
- display: `flex`,
152
- width: `100%`,
153
- alignItems: `center`,
102
+ basic: {
103
+ display: "inline-block",
104
+ px: 0,
105
+ py: 0,
106
+ color: "primary",
107
+ margin: 3,
108
+ textDecoration: "none",
109
+ borderBottom: `2px solid transparent`,
110
+ lineHeight: 2,
111
+ transition: `all .5s ease-in;`,
112
+ "&.active": {
113
+ borderBottom: `1px solid transparent`,
114
+ borderColor: "secondary",
115
+ color: "secondary",
116
+ cursor: "default",
154
117
  },
155
- success: {
156
- borderRadius: `sm`,
157
- bg: `green.1`,
158
- // border: `1px solid ${tailwind.colors.green[8]}`,
159
- boxShadow: (t) =>
160
- `inset 0 0 0 1px ${t.colors.green[8]}, 0 0 0 0 transparent`,
161
- opacity: 0.7,
162
- color: `green.8`,
163
- p: 3,
164
- my: 3,
165
- fontWeight: `medium`,
166
- display: `flex`,
167
- width: `100%`,
168
- alignItems: `center`,
118
+ "&:hover:not(.active)": {
119
+ borderColor: "primary",
169
120
  },
170
121
  },
171
122
  },
172
- { arrayMerge: overwriteMerge }
173
- )
123
+ alerts: {
124
+ error: {
125
+ borderRadius: `sm`,
126
+ bg: `red.1`,
127
+ // border: `1px solid ${tailwind.colors.red[8]}`,
128
+ boxShadow: `inset 0 0 0 1px ${tailwind.colors.red[8]}, 0 0 0 0 transparent`,
129
+ opacity: 0.7,
130
+ color: `red.8`,
131
+ p: 3,
132
+ my: 3,
133
+ fontWeight: `medium`,
134
+ display: `flex`,
135
+ width: `100%`,
136
+ alignItems: `center`,
137
+ },
138
+ success: {
139
+ borderRadius: `sm`,
140
+ bg: `green.1`,
141
+ // border: `1px solid ${tailwind.colors.green[8]}`,
142
+ boxShadow: (t) =>
143
+ `inset 0 0 0 1px ${t.colors.green[8]}, 0 0 0 0 transparent`,
144
+ opacity: 0.7,
145
+ color: `green.8`,
146
+ p: 3,
147
+ my: 3,
148
+ fontWeight: `medium`,
149
+ display: `flex`,
150
+ width: `100%`,
151
+ alignItems: `center`,
152
+ },
153
+ },
154
+ })