gatsby-core-theme 2.0.18 → 2.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,15 @@
1
+ ## [2.0.19](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.18...v2.0.19) (2022-01-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bonus and selleing points extra divs ([892d6a4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/892d6a4542efeb16717136472b0422ca5e089ca8))
7
+ * make key dynamic cta ([a7b883c](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a7b883cfa2010d5e95d54137e1cb7f86a92115ac))
8
+
9
+
10
+ * Merge branch 'tm-2473-lottery-fixes' into 'master' ([fbc331c](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/fbc331c1d3f8ff3276b56e518e6de3e359393fc2))
11
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([86b2be9](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/86b2be99241420c6fb77fb3bea3e22f69a1ddb98))
12
+
1
13
  ## [2.0.18](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.17...v2.0.18) (2022-01-10)
2
14
 
3
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "2.0.18",
3
+ "version": "2.0.19",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "GATSBY_RECAPTCHA_SITEKEY": "6LfoyvMUAAAAAO4nl_MQnqHb4XdHxEiu5cXgIqeB",
@@ -1,15 +1,12 @@
1
- .bonus {
2
- @include flex-direction(column);
3
- div:first-child {
4
- font-size: 2rem;
5
- font-weight: 700;
6
- color: var(--primary-color);
7
- padding-right: 1rem;
8
- }
9
- div:nth-child(2) {
10
- font-size: 1.6rem;
11
- color: var(--color-22);
12
- font-weight: 700;
13
- padding: 0.5rem 0;
14
- }
1
+ .title {
2
+ font-size: 2rem;
3
+ font-weight: 700;
4
+ color: var(--primary-color);
5
+ padding-right: 1rem;
6
+ }
7
+ .desc {
8
+ font-size: 1.6rem;
9
+ color: var(--color-22);
10
+ font-weight: 700;
11
+ padding: 0.5rem 0;
15
12
  }
@@ -14,12 +14,10 @@ const Bonus = ({ item, tracker = 'main' }) => {
14
14
  const onelinerSplitted = oneLiner.one_liner.split('+');
15
15
 
16
16
  return (
17
- <div className={styles.bonus}>
18
- <div className={styles.title}>{onelinerSplitted[0]}</div>
19
- {onelinerSplitted.length === 2 && (
20
- <div className={styles.desc}>{`+${onelinerSplitted[1]}`}</div>
21
- )}
22
- </div>
17
+ <>
18
+ <p className={styles.title}>{onelinerSplitted[0]}</p>
19
+ {onelinerSplitted.length === 2 && <p className={styles.desc}>{`+${onelinerSplitted[1]}`}</p>}
20
+ </>
23
21
  );
24
22
  };
25
23
 
@@ -12,6 +12,7 @@ export default function OperatorCta({
12
12
  placeholderText = 'Coming Soon',
13
13
  closedCasinoText = 'This Casino has closed',
14
14
  playText = 'Visit',
15
+ translationKey = 'play_now',
15
16
  tracker = 'main',
16
17
  gtmClass = '',
17
18
  }) {
@@ -46,7 +47,7 @@ export default function OperatorCta({
46
47
 
47
48
  const trackerType = tracker.toLowerCase().replace(' ', '_');
48
49
  const prettyLink = prettyTracker(operator, trackerType);
49
- const translateBtn = translate(translations, 'play_now', playText);
50
+ const translateBtn = translate(translations, translationKey, playText);
50
51
  return (
51
52
  <Button
52
53
  to={prettyLink}
@@ -11,9 +11,8 @@ const SellingPoints = ({ sellingPoints, icon, limit = 3 }) => {
11
11
  return (
12
12
  <ul className={styles.sellingPoint}>
13
13
  {sellingPoints.slice(0, limit).map((item) => (
14
- <li key={keygen()}>
15
- <span className={`${icon && styles.tick}`}>{` `}</span>
16
- <span>{item}</span>
14
+ <li className={`${icon && styles.tick}`} key={keygen()}>
15
+ {item}
17
16
  </li>
18
17
  ))}
19
18
  </ul>
@@ -7,7 +7,7 @@
7
7
  font-size: 1.4rem;
8
8
  width: 100%;
9
9
 
10
- .tick {
10
+ &.tick {
11
11
  position: relative;
12
12
  margin-left: 2rem;
13
13
  &::before {
@@ -16,7 +16,6 @@
16
16
  padding: 0px 0px .8rem .32rem;
17
17
  border-right-width: .18rem;
18
18
  border-bottom-width: .18rem;
19
- bottom: -.3rem;
20
19
  left: -1.8rem;
21
20
  }
22
21
  }
@@ -43,7 +43,14 @@ const Row = ({ item, oneliner = 'main', layout = 'list', tracker = 'main' }) =>
43
43
  height={40}
44
44
  />
45
45
  </a>
46
- <Bonus item={item} tracker={oneliner} />
46
+ <a
47
+ href={prettyLink}
48
+ target="_blank"
49
+ rel="noreferrer"
50
+ className="toplist-variant-one-gtm bonus-cta"
51
+ >
52
+ <Bonus item={item} tracker={oneliner} />
53
+ </a>
47
54
  <StarRating numOfStars={5} rating={itemRating} />
48
55
  <SellingPoints icon={<MdCheck />} sellingPoints={item.selling_points} />
49
56
  <div>