react-gldn-kit 0.0.7 → 0.0.9
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.
|
@@ -44,11 +44,11 @@ var classnames_1 = __importDefault(require("classnames"));
|
|
|
44
44
|
var DownloadSvg_1 = require("components/ui/Icons/Base/DownloadSvg");
|
|
45
45
|
var BaseButton_1 = require("components/ui/Buttons/BaseButton");
|
|
46
46
|
var Text_1 = require("components/Text");
|
|
47
|
+
var ui_1 = require("types/ui");
|
|
47
48
|
var constants_1 = require("./constants");
|
|
48
49
|
var styles = __importStar(require("./PromotionMobileApp.module.css"));
|
|
49
|
-
var ui_1 = require("types/ui");
|
|
50
50
|
var PromotionMobileApp = function (props) {
|
|
51
|
-
var _a = props.translation, translation = _a === void 0 ? constants_1.DEFAULT_TRANSLATION : _a, qrLink = props.qrLink, handleDownloadApp = props.handleDownloadApp, appType = props.appType;
|
|
52
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperMainBanner, styles["wrapperMainBanner".concat(ui_1.EAppType[appType])]) }, { children: [(0, jsx_runtime_1.jsx)("img", { src:
|
|
51
|
+
var _a = props.translation, translation = _a === void 0 ? constants_1.DEFAULT_TRANSLATION : _a, qrLink = props.qrLink, handleDownloadApp = props.handleDownloadApp, appType = props.appType, bannerImagePath = props.bannerImagePath;
|
|
52
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperMainBanner, styles["wrapperMainBanner".concat(ui_1.EAppType[appType])]) }, { children: [(0, jsx_runtime_1.jsx)("img", { src: bannerImagePath, className: styles.banner }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.contentBanner }, { children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.title }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: translation.title }) })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.subTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: translation.subTitle }) }))] }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.qrContent }, { children: [(0, jsx_runtime_1.jsx)(react_qr_code_1.default, { value: qrLink, size: 200, bgColor: "transparent", fgColor: "rgb(var(--primary))" }), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.description }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: translation.qrDescription }) })), (0, jsx_runtime_1.jsx)(BaseButton_1.BaseButton, { text: translation.downloadText, handleClick: handleDownloadApp, size: "--button-full", buttonHeight: "--button-height-xxl", color: "primary", centreText: true, startIcon: (0, jsx_runtime_1.jsx)(DownloadSvg_1.DownloadSvg, { classes: styles.whiteSvg }), classes: styles.mobileBtn })] }))] }))] })));
|
|
53
53
|
};
|
|
54
54
|
exports.PromotionMobileApp = PromotionMobileApp;
|
|
@@ -24,6 +24,10 @@ var useTranslate = function (name, specValue) {
|
|
|
24
24
|
.replaceAll('[INJECT_VALUE]', '')
|
|
25
25
|
.replaceAll('[VALUE]', specValue);
|
|
26
26
|
}
|
|
27
|
+
if (result.includes('[YEAR]')) {
|
|
28
|
+
result = result
|
|
29
|
+
.replaceAll('[YEAR]', new Date().getFullYear().toString());
|
|
30
|
+
}
|
|
27
31
|
if (result === null || result === void 0 ? void 0 : result.includes('HTML!')) {
|
|
28
32
|
result = result.replaceAll('HTML!', '[HTML]');
|
|
29
33
|
}
|
package/dist/main.css
CHANGED
|
@@ -1751,7 +1751,7 @@
|
|
|
1751
1751
|
}
|
|
1752
1752
|
}
|
|
1753
1753
|
|
|
1754
|
-
.KIT__PromotionMobileApp-module__wrapperMainBanner___En6WH .KIT__PromotionMobileApp-
|
|
1754
|
+
.KIT__PromotionMobileApp-module__wrapperMainBanner___En6WH .KIT__PromotionMobileApp-module__banner___YcNTY {
|
|
1755
1755
|
position: absolute;
|
|
1756
1756
|
left: 0;
|
|
1757
1757
|
top: 0;
|
|
@@ -1763,18 +1763,7 @@
|
|
|
1763
1763
|
|
|
1764
1764
|
@media screen and (max-width: 768px) {
|
|
1765
1765
|
|
|
1766
|
-
.KIT__PromotionMobileApp-module__wrapperMainBanner___En6WH .KIT__PromotionMobileApp-
|
|
1767
|
-
display: none;
|
|
1768
|
-
}
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1771
|
-
.KIT__PromotionMobileApp-module__wrapperMainBanner___En6WH .KIT__PromotionMobileApp-module__mobileBanner___KNrfX {
|
|
1772
|
-
display: none;
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
@media screen and (max-width: 768px) {
|
|
1776
|
-
|
|
1777
|
-
.KIT__PromotionMobileApp-module__wrapperMainBanner___En6WH .KIT__PromotionMobileApp-module__mobileBanner___KNrfX {
|
|
1766
|
+
.KIT__PromotionMobileApp-module__wrapperMainBanner___En6WH .KIT__PromotionMobileApp-module__banner___YcNTY {
|
|
1778
1767
|
display: block;
|
|
1779
1768
|
position: absolute;
|
|
1780
1769
|
bottom: 0;
|
|
@@ -1860,35 +1849,34 @@
|
|
|
1860
1849
|
}
|
|
1861
1850
|
}
|
|
1862
1851
|
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1852
|
+
@media screen and (min-width: 768px) {
|
|
1853
|
+
.KIT__PromotionMobileApp-module__wrapperMainBannerJabiBet___rtnk7 .KIT__PromotionMobileApp-module__banner___YcNTY {
|
|
1854
|
+
height: 100%;
|
|
1855
|
+
width: 100%;
|
|
1856
|
+
right: 0;
|
|
1857
|
+
}
|
|
1868
1858
|
}
|
|
1869
1859
|
|
|
1870
1860
|
.KIT__PromotionMobileApp-module__wrapperMainBannerElon___rSUsO {
|
|
1871
|
-
background: #
|
|
1861
|
+
background: #3c16d4;
|
|
1872
1862
|
}
|
|
1873
1863
|
|
|
1874
|
-
.KIT__PromotionMobileApp-module__wrapperMainBannerElon___rSUsO .KIT__PromotionMobileApp-
|
|
1864
|
+
.KIT__PromotionMobileApp-module__wrapperMainBannerElon___rSUsO .KIT__PromotionMobileApp-module__banner___YcNTY {
|
|
1875
1865
|
bottom: -20%;
|
|
1876
1866
|
}
|
|
1877
1867
|
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1868
|
+
@media screen and (min-width: 768px) {
|
|
1869
|
+
.KIT__PromotionMobileApp-module__wrapperMainBannerElon___rSUsO .KIT__PromotionMobileApp-module__banner___YcNTY {
|
|
1870
|
+
height: 100%;
|
|
1871
|
+
width: auto;
|
|
1872
|
+
left: auto;
|
|
1873
|
+
left: initial;
|
|
1874
|
+
right: 0;
|
|
1875
|
+
bottom: auto;
|
|
1876
|
+
bottom: initial;
|
|
1877
|
+
}
|
|
1884
1878
|
}
|
|
1885
1879
|
|
|
1886
|
-
.KIT__PromotionMobileApp-module__wrapperMainBannerFsWin___lNZ2e {
|
|
1887
|
-
/* background: linear-gradient(0deg, #e9e9eb, #e9e9eb),
|
|
1888
|
-
linear-gradient(103.54deg, #9b23f8 -28.05%, #f6f6f6 18.07%),
|
|
1889
|
-
linear-gradient(113.11deg, rgba(255, 211, 20, 0) 70.72%, #ffd314 102.08%); */
|
|
1890
|
-
}
|
|
1891
|
-
|
|
1892
1880
|
@keyframes KIT__PromotionMobileApp-module__PopUpPhone___d1MO7 {
|
|
1893
1881
|
0% {
|
|
1894
1882
|
transform: translateY(100%);
|
|
@@ -1898,6 +1886,7 @@
|
|
|
1898
1886
|
transform: translateY(0);
|
|
1899
1887
|
}
|
|
1900
1888
|
}
|
|
1889
|
+
|
|
1901
1890
|
.KIT__Tabs-module__wrapperTabs___rFoBY {
|
|
1902
1891
|
display: flex;
|
|
1903
1892
|
align-items: center;
|