@openeventkit/event-site 1.0.11 → 1.0.12

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/gatsby-config.js CHANGED
@@ -18,6 +18,19 @@ catch (e) {
18
18
  console.log("Falling back to default site settings.")
19
19
  }
20
20
 
21
+ const relativeContentDir = `${__dirname}/${STATIC_CONTENT_DIR_PATH}`;
22
+ const resolvedContentDir = path.resolve(STATIC_CONTENT_DIR_PATH);
23
+ const contentDirs = [relativeContentDir];
24
+ if (relativeContentDir !== resolvedContentDir) {
25
+ contentDirs.unshift(resolvedContentDir);
26
+ };
27
+ const gatsbySourceFilesystemContentConfigs = contentDirs.map(contentDir => ({
28
+ resolve: "gatsby-source-filesystem",
29
+ options: {
30
+ path: contentDir
31
+ }
32
+ }));
33
+
21
34
  module.exports = {
22
35
  siteMetadata: {
23
36
  title: `${siteSettings?.siteMetadata?.title || process.env.GATSBY_METADATA_TITLE || 'Event Site'}`,
@@ -77,13 +90,7 @@ module.exports = {
77
90
  name: "pages"
78
91
  }
79
92
  },
80
- {
81
- resolve: "gatsby-source-filesystem",
82
- options: {
83
- path: `${__dirname}/${STATIC_CONTENT_DIR_PATH}`,
84
- name: "content"
85
- }
86
- },
93
+ ...gatsbySourceFilesystemContentConfigs,
87
94
  "gatsby-plugin-image",
88
95
  "gatsby-plugin-sharp",
89
96
  "gatsby-transformer-sharp",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openeventkit/event-site",
3
3
  "description": "Event Site",
4
- "version": "1.0.11",
4
+ "version": "1.0.12",
5
5
  "author": "Tipit LLC",
6
6
  "dependencies": {
7
7
  "@mui/base": "^5.0.0-alpha.114",
@@ -2,7 +2,7 @@ import * as React from "react";
2
2
  import { connect } from "react-redux";
3
3
  import FooterTemplate from "./template";
4
4
 
5
- import footerContent from "../../content/footer/index.json";
5
+ import footerContent from "content/footer/index.json";
6
6
 
7
7
  const Footer = ({ summit, marketing }) => (
8
8
  <FooterTemplate
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import Link from "./Link";
3
3
 
4
- import footerContent from "../content/footer/index.json";
4
+ import footerContent from "content/footer/index.json";
5
5
 
6
6
  import styles from "../styles/footer.module.scss";
7
7
 
@@ -22,11 +22,7 @@ const FooterMarketing = () => (
22
22
  {footerContent.social.networks.map((net, index) => (
23
23
  net.display &&
24
24
  <Link href={net.link} className={styles.link} key={index}>
25
- {net.icon === 'fa-facebook' ?
26
- <img alt="logo" style={{ width: 25, margin: '-10px 10px 0 0' }} src="/img/f_logo_RGB-White_58.png" />
27
- :
28
- <i className={`fa icon is-large ${net.icon}`} />
29
- }
25
+ <i className={`fa icon is-large ${net.icon}`} />
30
26
  </Link>
31
27
  ))}
32
28
  </div>
@@ -17,7 +17,6 @@ import { PAGE_RESTRICTIONS } from "../../cms/config/collections/configurationsCo
17
17
  import navbarContent from "content/navbar/index.json";
18
18
 
19
19
  const Navbar = ({
20
- location,
21
20
  summitPhase,
22
21
  summit,
23
22
  isLoggedUser,
@@ -64,6 +64,7 @@
64
64
  padding: 1rem 2rem;
65
65
  display: flex;
66
66
  align-items: center;
67
+ z-index: 1;
67
68
 
68
69
  .link {
69
70
  color: #ffffff;