gatsby-core-theme 40.0.17 → 40.0.19

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/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## [40.0.19](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.18...v40.0.19) (2024-10-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * added sports data to sports homepage ([522ff41](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/522ff410835abba0b681b1fd07b9198dce02b2e6))
7
+
8
+ ## [40.0.18](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.17...v40.0.18) (2024-10-28)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * added sports theme homepage template in ssr ([d9bf1f5](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/d9bf1f575f907d7f5a9058990e3dd4750d2429c6))
14
+ * fix: test ([f21d329](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/f21d329b61d3129504ff34f25254c9742c3a64ea))
15
+ * make style for admin bar ([9f485b9](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/9f485b9cc233ee9ad2d928cd97652162424c4c10))
16
+
1
17
  ## [40.0.17](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.16...v40.0.17) (2024-10-28)
2
18
 
3
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "40.0.17",
3
+ "version": "40.0.19",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -24,6 +24,9 @@
24
24
  position: relative;
25
25
 
26
26
  > li:hover {
27
+ cursor: pointer;
28
+ position: relative;
29
+
27
30
  > div {
28
31
  @include flex-direction(row);
29
32
  }
@@ -9,8 +9,8 @@ describe("OperatorCtaButton Component", () => {
9
9
  const { getByText, container } = render(
10
10
  <Admin page={{ id:123 } } />
11
11
  );
12
-
13
- expect(getByText("Edit Page")).toBeInTheDocument();
12
+ // Needs to add more test
13
+ expect(getByText("Edit Layout")).toBeInTheDocument();
14
14
  expect(container.querySelector('a').getAttribute('href')).toBe('https://hercules.g2m.com/');
15
15
 
16
16
  });
@@ -27,25 +27,27 @@ const LayoutSection = ({ menus }) => {
27
27
  <li>
28
28
  <span className={`${styles.menuItem} ${styles.link}`}>{res.label}</span>
29
29
  <div className={styles.subMenuList}>
30
- {res?.sections?.map((section) => (
31
- <ul className={styles.lists}>
32
- {section.label && (
33
- <li>
34
- <span className={styles.label}>{section.label}</span>
35
- </li>
36
- )}
37
- {section?.links?.map((link) => (
38
- <li>
39
- <Redirect
40
- icon={link?.icon}
41
- path={paths(link?.type, link.data)}
42
- linkText={link.buttonText}
43
- description={link.description}
44
- />
45
- </li>
46
- ))}
47
- </ul>
48
- ))}
30
+ <div className={styles.subMenuContianer}>
31
+ {res?.sections?.map((section) => (
32
+ <ul className={styles.lists}>
33
+ {section.label && (
34
+ <li>
35
+ <span className={styles.label}>{section.label}</span>
36
+ </li>
37
+ )}
38
+ {section?.links?.map((link) => (
39
+ <li>
40
+ <Redirect
41
+ icon={link?.icon}
42
+ path={paths(link?.type, link.data)}
43
+ linkText={link.buttonText}
44
+ description={link.description}
45
+ />
46
+ </li>
47
+ ))}
48
+ </ul>
49
+ ))}
50
+ </div>
49
51
  </div>
50
52
  </li>
51
53
  ));
@@ -1,21 +1,27 @@
1
1
  .subMenuList {
2
- background-color: #000;
3
-
4
- @include flex-direction(row);
5
- @include flex-align(start, flex-start);
6
-
7
- padding: 2.4rem;
2
+ right: 0;
8
3
  display: none;
9
4
  position: absolute;
10
5
  top: 100%;
11
6
  z-index: 99;
7
+ padding-top: 3rem;
8
+
9
+ }
10
+
11
+ .subMenuContianer{
12
+ background-color: #000;
12
13
  gap: 2.4rem;
13
14
  border-radius: .8rem;
14
- left: 0;
15
+
16
+ @include flex-direction(row);
17
+ @include flex-align(start, flex-start);
18
+
19
+ padding: 2.4rem;
15
20
 
16
21
  > li a {
17
22
  @include flex-align(center, flex-start);
18
23
  }
24
+
19
25
  }
20
26
 
21
27
  .menuItem {
@@ -46,4 +52,8 @@
46
52
  @include flex-direction(column);
47
53
 
48
54
  gap: 1.6rem;
55
+
56
+ >li{
57
+ cursor: pointer;
58
+ }
49
59
  }
@@ -16,7 +16,7 @@ const PreviewLink = ({ page, preview }) => (
16
16
  }
17
17
  rel="noreferrer"
18
18
  >
19
- Preview page {preview ? <FiEyeOff /> : <FiEye />}
19
+ Preview Page {preview ? <FiEyeOff /> : <FiEye />}
20
20
  </a>
21
21
  </li>
22
22
  );
@@ -10,7 +10,7 @@ import { FaLayerGroup } from "@react-icons/all-files/fa/FaLayerGroup";
10
10
 
11
11
  export const menusConfig = (menuObj, footerSection, page, types) => [
12
12
  {
13
- label: "Layout",
13
+ label: "Edit Layout",
14
14
  sections: [
15
15
  {
16
16
  label: "Main Menu",
@@ -53,7 +53,7 @@ export const menusConfig = (menuObj, footerSection, page, types) => [
53
53
  ],
54
54
  },
55
55
  {
56
- label: "Page",
56
+ label: "Edit Page",
57
57
  sections: [
58
58
  {
59
59
  label: "Page",
@@ -46,6 +46,7 @@ export default {
46
46
  article: { 'Irishluck.ie': ['main'] },
47
47
  },
48
48
  app_ssr: [
49
+ 'homepage_sports',
49
50
  'event',
50
51
  'tournament',
51
52
  'lotto_results_and_fixtures',
@@ -121,7 +121,7 @@ export function addSportsDataToPage(sportsData, page, themeType) {
121
121
  }
122
122
  // rage-seo pages data
123
123
  if (themeType === 'rage_seo' || themeType === 'sports') {
124
- if (pageType === 'homepage' || pageType === 'default') {
124
+ if (pageType === 'homepage' || pageType === 'default' || pageType === 'homepage_sports') {
125
125
  relation.schedule = sportsData.schedule.soccer || null;
126
126
  relation.featured_events = sportsData.featured_events.soccer || null;
127
127
  relation.showcased_events = sportsData.showcased_events.soccer || null;