gatsby-core-theme 14.0.0 → 14.0.2

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,22 @@
1
+ ## [14.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v14.0.1...v14.0.2) (2022-11-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * gatsby image placeholder ([e1e35ac](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/e1e35ac28337352d653efd6b8c19390dbee7ae03))
7
+
8
+
9
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([a356764](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a356764b488c39918be9d27580097147b747b72c))
10
+
11
+ ## [14.0.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v14.0.0...v14.0.1) (2022-11-01)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * changed site ([6d630c8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6d630c8ddc793ca7f7b46daee26887ba1ad3feda))
17
+ * lightoouse metric ([3da93d0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3da93d0d8d1ce5485b1755714ea59981ca435cab))
18
+ * toplist ([270a368](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/270a368d4e060597e3815aa16ea26ee9d5fe42ac))
19
+
1
20
  # [14.0.0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v13.0.6...v14.0.0) (2022-11-01)
2
21
 
3
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "14.0.0",
3
+ "version": "14.0.2",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "GATSBY_RECAPTCHA_SITEKEY": "6LfoyvMUAAAAAO4nl_MQnqHb4XdHxEiu5cXgIqeB",
@@ -13,7 +13,15 @@ import LazyImage from '~hooks/lazy-image';
13
13
 
14
14
  import styles from './default-row.module.scss';
15
15
 
16
- const Row = ({ item, oneliner = 'main', layout = 'list', tracker = 'main', itemRefs, index }) => {
16
+ const Row = ({
17
+ item,
18
+ oneliner = 'main',
19
+ layout = 'list',
20
+ tracker = 'main',
21
+ itemRefs,
22
+ index,
23
+ className,
24
+ }) => {
17
25
  const prettyLink = prettyTracker(item);
18
26
  const itemRating = item.rating;
19
27
  const { translations } = useContext(Context) || {};
@@ -27,19 +35,13 @@ const Row = ({ item, oneliner = 'main', layout = 'list', tracker = 'main', itemR
27
35
  };
28
36
 
29
37
  return (
30
- <li className={`${styles.row} ${styles[layout]}`} ref={(el) => addToRefs(el, index)}>
38
+ <li
39
+ className={`${className} ${styles.row} ${styles[layout]}`}
40
+ ref={(el) => addToRefs(el, index)}
41
+ >
31
42
  <div className={styles.ribbons}>
32
43
  {item.ribbons && item.ribbons.map((ribbon) => <span>{ribbon}</span>)}
33
44
  </div>
34
- {/* <a
35
- href={prettyLink}
36
- className="casinos-top-list-gtm name-cta"
37
- title={item.name}
38
- target="_blank"
39
- rel="noreferrer"
40
- >
41
-
42
- </a> */}
43
45
  <a
44
46
  href={prettyLink}
45
47
  title={item.name}
@@ -42,33 +42,28 @@ export default function List({
42
42
  return (
43
43
  <>
44
44
  <ul className={styles.list} key={keygen()}>
45
- {toplist.items.map((item, index) => (
46
- <li
47
- className={index + 1 <= initLoadItems ? styles.show : null}
48
- key={keygen()}
49
- ref={(el) => (elRefs.current[index] = el)}
50
- >
51
- {CustomRow ? (
52
- <CustomRow
53
- item={item}
54
- tracker={toplist.tracker}
55
- oneliner={toplist.one_liner}
56
- isPPC={isPPCPage}
57
- index={index}
58
- className={index + 1 <= initLoadItems ? styles.show : null}
59
- key={keygen()}
60
- itemRefs={elRefs}
61
- />
62
- ) : (
63
- <Row
64
- itemRefs={elRefs}
65
- item={item}
66
- tracker={toplist.tracker}
67
- oneliner={toplist.one_liner}
68
- />
69
- )}
70
- </li>
71
- ))}
45
+ {toplist.items.map((item, index) =>
46
+ CustomRow ? (
47
+ <CustomRow
48
+ item={item}
49
+ tracker={toplist.tracker}
50
+ oneliner={toplist.one_liner}
51
+ isPPC={isPPCPage}
52
+ index={index}
53
+ className={index + 1 <= initLoadItems ? styles.show : null}
54
+ key={keygen()}
55
+ itemRefs={elRefs}
56
+ />
57
+ ) : (
58
+ <Row
59
+ itemRefs={elRefs}
60
+ item={item}
61
+ tracker={toplist.tracker}
62
+ oneliner={toplist.one_liner}
63
+ className={index + 1 <= initLoadItems ? styles.show : null}
64
+ />
65
+ )
66
+ )}
72
67
  </ul>
73
68
  {showLoadMoreButton && (
74
69
  <div ref={loadMoreBtn} className={styles.loadMore}>
@@ -12,7 +12,7 @@
12
12
  display: none;
13
13
 
14
14
  &.show {
15
- display: block;
15
+ display: grid;
16
16
  }
17
17
 
18
18
  &:before {
@@ -24,6 +24,7 @@ export const PureImage = ({
24
24
  style={{ height, width }}
25
25
  alt={alt}
26
26
  image={image.node.childImageSharp.gatsbyImageData}
27
+ placeholder="none"
27
28
  />
28
29
  );
29
30
  };