diff --git a/src/main/services/window-manager.ts b/src/main/services/window-manager.ts index e1dc4dfc..c4cbad01 100644 --- a/src/main/services/window-manager.ts +++ b/src/main/services/window-manager.ts @@ -63,7 +63,7 @@ export class WindowManager { minWidth: 1024, minHeight: 540, backgroundColor: "#1c1c1c", - titleBarStyle: process.platform === "win32" ? "hidden" : "default", + titleBarStyle: process.platform === "linux" ? "default" : "hidden", ...(process.platform === "linux" ? { icon } : {}), trafficLightPosition: { x: 16, y: 16 }, titleBarOverlay: { diff --git a/src/main/workers/ludusavi.worker.ts b/src/main/workers/ludusavi.worker.ts index 4b1f339a..f101b8c9 100644 --- a/src/main/workers/ludusavi.worker.ts +++ b/src/main/workers/ludusavi.worker.ts @@ -5,6 +5,8 @@ import { workerData } from "node:worker_threads"; const { binaryPath } = workerData; +let backupGameProcess: cp.ChildProcess | null = null; + export const backupGame = ({ title, backupPath, @@ -16,15 +18,32 @@ export const backupGame = ({ preview?: boolean; winePrefix?: string; }) => { - const args = ["backup", title, "--api", "--force"]; + if (backupGameProcess && !backupGameProcess.killed) { + backupGameProcess.kill(); + backupGameProcess = null; + } - if (preview) args.push("--preview"); - if (backupPath) args.push("--path", backupPath); - if (winePrefix) args.push("--wine-prefix", winePrefix); + return new Promise((resolve, reject) => { + const args = ["backup", title, "--api", "--force"]; - const result = cp.execFileSync(binaryPath, args); + if (preview) args.push("--preview"); + if (backupPath) args.push("--path", backupPath); + if (winePrefix) args.push("--wine-prefix", winePrefix); - return JSON.parse(result.toString("utf-8")) as LudusaviBackup; + backupGameProcess = cp.execFile( + binaryPath, + args, + (err: cp.ExecFileException | null, stdout: string) => { + if (err) { + backupGameProcess = null; + return reject(err); + } + + backupGameProcess = null; + return resolve(JSON.parse(stdout) as LudusaviBackup); + } + ); + }); }; export const restoreBackup = (backupPath: string) => { diff --git a/src/renderer/src/assets/icons/flame-animated.gif b/src/renderer/src/assets/icons/flame-animated.gif new file mode 100644 index 00000000..e0acbf98 Binary files /dev/null and b/src/renderer/src/assets/icons/flame-animated.gif differ diff --git a/src/renderer/src/assets/icons/flame-static.png b/src/renderer/src/assets/icons/flame-static.png new file mode 100644 index 00000000..5353d03f Binary files /dev/null and b/src/renderer/src/assets/icons/flame-static.png differ diff --git a/src/renderer/src/assets/icons/stars-animated.gif b/src/renderer/src/assets/icons/stars-animated.gif new file mode 100644 index 00000000..97678653 Binary files /dev/null and b/src/renderer/src/assets/icons/stars-animated.gif differ diff --git a/src/renderer/src/assets/lottie/flame.json b/src/renderer/src/assets/lottie/flame.json deleted file mode 100644 index 287f5cfd..00000000 --- a/src/renderer/src/assets/lottie/flame.json +++ /dev/null @@ -1,1735 +0,0 @@ -{ - "v": "4.8.0", - "meta": { "g": "LottieFiles AE 3.6.0", "a": "", "k": "", "d": "", "tc": "" }, - "fr": 60, - "ip": 0, - "op": 120, - "w": 800, - "h": 800, - "nm": "photo_2024-09-15_23-04-57", - "ddd": 0, - "assets": [ - { - "id": "comp_0", - "layers": [ - { - "ddd": 0, - "ind": 1, - "ty": 4, - "nm": "Shape Layer 7", - "sr": 1, - "ks": { - "o": { - "a": 1, - "k": [ - { - "i": { "x": [0.667], "y": [1] }, - "o": { "x": [0.333], "y": [0] }, - "t": 47, - "s": [100] - }, - { "t": 61, "s": [0] } - ], - "ix": 11 - }, - "r": { "a": 0, "k": 0, "ix": 10 }, - "p": { - "a": 1, - "k": [ - { - "i": { "x": 0, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 0, - "s": [264.871, 490.738, 0], - "to": [0, 0, 0], - "ti": [0, 0, 0] - }, - { "t": 60, "s": [264.871, 310.738, 0] } - ], - "ix": 2 - }, - "a": { "a": 0, "k": [-135.129, -89.262, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100, 100], "ix": 6 } - }, - "ao": 0, - "shapes": [ - { - "ty": "gr", - "it": [ - { - "ind": 0, - "ty": "sh", - "ix": 1, - "ks": { - "a": 1, - "k": [ - { - "i": { "x": 0, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 0, - "s": [ - { - "i": [ - [-0.25, 1], - [-0.135, -17.717], - [-12.75, -3.75], - [-2.243, 17.242] - ], - "o": [ - [0.25, -1], - [0.139, 18.276], - [-0.75, -18.25], - [-0.814, -26.771] - ], - "v": [ - [-132.25, -138.5], - [-154, -90], - [-131.5, -40], - [-116.257, -97.242] - ], - "c": true - } - ] - }, - { - "t": 60, - "s": [ - { - "i": [ - [-7.75, 29], - [-10, -13], - [-12.5, -35], - [0.144, 18.955] - ], - "o": [ - [-17.031, 4.886], - [11.143, 14.486], - [4.5, -17.5], - [-0.116, -15.18] - ], - "v": [ - [-132.25, -138.5], - [-149, -91], - [-131.5, -40], - [-118.007, -88.242] - ], - "c": true - } - ] - } - ], - "ix": 2 - }, - "nm": "Path 1", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ty": "fl", - "c": { - "a": 0, - "k": [0.901960844152, 0.231372563979, 0.125490196078, 1], - "ix": 4 - }, - "o": { "a": 0, "k": 100, "ix": 5 }, - "r": 1, - "bm": 0, - "nm": "Fill 1", - "mn": "ADBE Vector Graphic - Fill", - "hd": false - }, - { - "ty": "tr", - "p": { "a": 0, "k": [0, 0], "ix": 2 }, - "a": { "a": 0, "k": [0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100], "ix": 3 }, - "r": { "a": 0, "k": 0, "ix": 6 }, - "o": { "a": 0, "k": 100, "ix": 7 }, - "sk": { "a": 0, "k": 0, "ix": 4 }, - "sa": { "a": 0, "k": 0, "ix": 5 }, - "nm": "Transform" - } - ], - "nm": "Shape 1", - "np": 3, - "cix": 2, - "bm": 0, - "ix": 1, - "mn": "ADBE Vector Group", - "hd": false - } - ], - "ip": 0, - "op": 120, - "st": 0, - "bm": 0 - } - ] - }, - { - "id": "comp_1", - "layers": [ - { - "ddd": 0, - "ind": 1, - "ty": 4, - "nm": "Shape Layer 6", - "sr": 1, - "ks": { - "o": { - "a": 1, - "k": [ - { - "i": { "x": [0.667], "y": [1] }, - "o": { "x": [0.333], "y": [0] }, - "t": 47, - "s": [100] - }, - { "t": 61, "s": [0] } - ], - "ix": 11 - }, - "r": { "a": 0, "k": 0, "ix": 10 }, - "p": { - "a": 1, - "k": [ - { - "i": { "x": 0, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 0, - "s": [264.871, 490.738, 0], - "to": [0, 0, 0], - "ti": [0, 0, 0] - }, - { "t": 60, "s": [264.871, 310.738, 0] } - ], - "ix": 2 - }, - "a": { "a": 0, "k": [-135.129, -89.262, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100, 100], "ix": 6 } - }, - "ao": 0, - "shapes": [ - { - "ty": "gr", - "it": [ - { - "ind": 0, - "ty": "sh", - "ix": 1, - "ks": { - "a": 1, - "k": [ - { - "i": { "x": 0, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 0, - "s": [ - { - "i": [ - [-0.25, 1], - [-0.135, -17.717], - [-12.75, -3.75], - [-2.243, 17.242] - ], - "o": [ - [0.25, -1], - [0.139, 18.276], - [-0.75, -18.25], - [-0.814, -26.771] - ], - "v": [ - [-132.25, -138.5], - [-154, -90], - [-131.5, -40], - [-116.257, -97.242] - ], - "c": true - } - ] - }, - { - "t": 60, - "s": [ - { - "i": [ - [-7.75, 29], - [-10, -13], - [-12.5, -35], - [0.144, 18.955] - ], - "o": [ - [-17.031, 4.886], - [11.143, 14.486], - [4.5, -17.5], - [-0.116, -15.18] - ], - "v": [ - [-132.25, -138.5], - [-149, -91], - [-131.5, -40], - [-118.007, -88.242] - ], - "c": true - } - ] - } - ], - "ix": 2 - }, - "nm": "Path 1", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ty": "fl", - "c": { - "a": 0, - "k": [0.901960844152, 0.231372563979, 0.125490196078, 1], - "ix": 4 - }, - "o": { "a": 0, "k": 100, "ix": 5 }, - "r": 1, - "bm": 0, - "nm": "Fill 1", - "mn": "ADBE Vector Graphic - Fill", - "hd": false - }, - { - "ty": "tr", - "p": { "a": 0, "k": [0, 0], "ix": 2 }, - "a": { "a": 0, "k": [0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100], "ix": 3 }, - "r": { "a": 0, "k": 0, "ix": 6 }, - "o": { "a": 0, "k": 100, "ix": 7 }, - "sk": { "a": 0, "k": 0, "ix": 4 }, - "sa": { "a": 0, "k": 0, "ix": 5 }, - "nm": "Transform" - } - ], - "nm": "Shape 1", - "np": 3, - "cix": 2, - "bm": 0, - "ix": 1, - "mn": "ADBE Vector Group", - "hd": false - } - ], - "ip": 0, - "op": 120, - "st": 0, - "bm": 0 - } - ] - } - ], - "layers": [ - { - "ddd": 0, - "ind": 1, - "ty": 4, - "nm": "Shape Layer 5", - "sr": 1, - "ks": { - "o": { "a": 0, "k": 100, "ix": 11 }, - "r": { "a": 0, "k": 0, "ix": 10 }, - "p": { "a": 0, "k": [400, 400, 0], "ix": 2 }, - "a": { "a": 0, "k": [0, 0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100, 100], "ix": 6 } - }, - "ao": 0, - "shapes": [ - { - "ty": "gr", - "it": [ - { - "ind": 0, - "ty": "sh", - "ix": 1, - "ks": { - "a": 1, - "k": [ - { - "i": { "x": 0.667, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 0, - "s": [ - { - "i": [ - [0, 0], - [11.75, -11.5], - [2.5, -6.75], - [0, 0], - [-70.5, -7], - [0, 0], - [1.887, 4.562], - [8.073, 13.074] - ], - "o": [ - [0, 0], - [-22.25, 18], - [-5.252, 4.377], - [0, 0], - [76.5, 4.5], - [0, 0], - [-5.873, -14.199], - [-9.034, -14.631] - ], - "v": [ - [-5, 116.75], - [-15.25, 153], - [-31, 192.75], - [-45.25, 178], - [-2, 272], - [51.25, 185.75], - [37.5, 191.25], - [34.5, 145.25] - ], - "c": true - } - ] - }, - { - "i": { "x": 0.667, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 60, - "s": [ - { - "i": [ - [0, 0], - [7.444, -13.662], - [2.5, -6.75], - [0, 0], - [-70.5, -7], - [0, 0], - [1.887, 4.562], - [8.073, 13.074] - ], - "o": [ - [0, 0], - [-6.819, 12.515], - [-5.252, 4.377], - [0, 0], - [76.5, 4.5], - [0, 0], - [-5.873, -14.199], - [-9.034, -14.631] - ], - "v": [ - [11.5, 114.75], - [-15.25, 153], - [-31, 192.75], - [-52.25, 174], - [-2, 272], - [57.25, 183.75], - [37.5, 191.25], - [32.5, 147.75] - ], - "c": true - } - ] - }, - { - "t": 118, - "s": [ - { - "i": [ - [0, 0], - [11.75, -11.5], - [2.5, -6.75], - [0, 0], - [-70.5, -7], - [0, 0], - [1.887, 4.562], - [8.073, 13.074] - ], - "o": [ - [0, 0], - [-22.25, 18], - [-5.252, 4.377], - [0, 0], - [76.5, 4.5], - [0, 0], - [-5.873, -14.199], - [-9.034, -14.631] - ], - "v": [ - [-5, 116.75], - [-15.25, 153], - [-31, 192.75], - [-45.25, 178], - [-2, 272], - [51.25, 185.75], - [37.5, 191.25], - [34.5, 145.25] - ], - "c": true - } - ] - } - ], - "ix": 2 - }, - "nm": "Path 1", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ty": "fl", - "c": { "a": 0, "k": [1, 1, 1, 1], "ix": 4 }, - "o": { "a": 0, "k": 100, "ix": 5 }, - "r": 1, - "bm": 0, - "nm": "Fill 1", - "mn": "ADBE Vector Graphic - Fill", - "hd": false - }, - { - "ty": "tr", - "p": { "a": 0, "k": [0, 0], "ix": 2 }, - "a": { "a": 0, "k": [0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100], "ix": 3 }, - "r": { "a": 0, "k": 0, "ix": 6 }, - "o": { "a": 0, "k": 100, "ix": 7 }, - "sk": { "a": 0, "k": 0, "ix": 4 }, - "sa": { "a": 0, "k": 0, "ix": 5 }, - "nm": "Transform" - } - ], - "nm": "Shape 1", - "np": 3, - "cix": 2, - "bm": 0, - "ix": 1, - "mn": "ADBE Vector Group", - "hd": false - } - ], - "ip": 0, - "op": 120, - "st": 0, - "bm": 0 - }, - { - "ddd": 0, - "ind": 2, - "ty": 4, - "nm": "Shape Layer 4", - "sr": 1, - "ks": { - "o": { "a": 0, "k": 100, "ix": 11 }, - "r": { "a": 0, "k": 0, "ix": 10 }, - "p": { "a": 0, "k": [400, 400, 0], "ix": 2 }, - "a": { "a": 0, "k": [0, 0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100, 100], "ix": 6 } - }, - "ao": 0, - "shapes": [ - { - "ty": "gr", - "it": [ - { - "ind": 0, - "ty": "sh", - "ix": 1, - "ks": { - "a": 1, - "k": [ - { - "i": { "x": 0.667, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 0, - "s": [ - { - "i": [ - [-0.222, 14.237], - [-17.5, -69.5], - [0, 0], - [-119, -18], - [0, 0], - [5.594, 8.051], - [14.307, 22.921] - ], - "o": [ - [-46.592, -2.27], - [-7.837, 8.428], - [0, 0], - [155, 1], - [0, 0], - [5.551, -27.893], - [-11.467, -18.371] - ], - "v": [ - [21, 17], - [-56, 140.5], - [-81.5, 131], - [-3, 270], - [87, 112], - [67, 142.75], - [33.805, 68.622] - ], - "c": true - } - ] - }, - { - "i": { "x": 0.667, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 60, - "s": [ - { - "i": [ - [-0.222, 14.237], - [-0.5, -38], - [0, 0], - [-119, -18], - [0, 0], - [5.594, 8.051], - [0, 0] - ], - "o": [ - [-39.5, 28.5], - [-7.837, 8.428], - [0, 0], - [155, 1], - [0, 0], - [5.551, -27.893], - [0, 0] - ], - "v": [ - [12.5, 10.5], - [-56, 140.5], - [-71.5, 125], - [-3, 270], - [79, 113], - [67, 142.75], - [49.805, 67.622] - ], - "c": true - } - ] - }, - { - "t": 118, - "s": [ - { - "i": [ - [-0.222, 14.237], - [-17.5, -69.5], - [0, 0], - [-119, -18], - [0, 0], - [5.594, 8.051], - [14.307, 22.921] - ], - "o": [ - [-46.592, -2.27], - [-7.837, 8.428], - [0, 0], - [155, 1], - [0, 0], - [5.551, -27.893], - [-11.467, -18.371] - ], - "v": [ - [21, 17], - [-56, 140.5], - [-81.5, 131], - [-3, 270], - [87, 112], - [67, 142.75], - [33.805, 68.622] - ], - "c": true - } - ] - } - ], - "ix": 2 - }, - "nm": "Path 1", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ty": "fl", - "c": { - "a": 0, - "k": [0.984313785329, 0.89019613827, 0.094117654539, 1], - "ix": 4 - }, - "o": { "a": 0, "k": 100, "ix": 5 }, - "r": 1, - "bm": 0, - "nm": "Fill 1", - "mn": "ADBE Vector Graphic - Fill", - "hd": false - }, - { - "ty": "tr", - "p": { "a": 0, "k": [0, 0], "ix": 2 }, - "a": { "a": 0, "k": [0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100], "ix": 3 }, - "r": { "a": 0, "k": 0, "ix": 6 }, - "o": { "a": 0, "k": 100, "ix": 7 }, - "sk": { "a": 0, "k": 0, "ix": 4 }, - "sa": { "a": 0, "k": 0, "ix": 5 }, - "nm": "Transform" - } - ], - "nm": "Shape 1", - "np": 3, - "cix": 2, - "bm": 0, - "ix": 1, - "mn": "ADBE Vector Group", - "hd": false - } - ], - "ip": 0, - "op": 120, - "st": 0, - "bm": 0 - }, - { - "ddd": 0, - "ind": 3, - "ty": 4, - "nm": "Shape Layer 3", - "sr": 1, - "ks": { - "o": { "a": 0, "k": 100, "ix": 11 }, - "r": { "a": 0, "k": 0, "ix": 10 }, - "p": { "a": 0, "k": [400, 400, 0], "ix": 2 }, - "a": { "a": 0, "k": [0, 0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100, 100], "ix": 6 } - }, - "ao": 0, - "shapes": [ - { - "ty": "gr", - "it": [ - { - "ind": 0, - "ty": "sh", - "ix": 1, - "ks": { - "a": 1, - "k": [ - { - "i": { "x": 0.667, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 0, - "s": [ - { - "i": [ - [0, 0], - [-198, -26], - [0, 0], - [43.297, 4.348] - ], - "o": [ - [0, 0], - [209, -23], - [0, 0], - [-46.02, -4.621] - ], - "v": [ - [-117, 53], - [-7, 273], - [122, 77], - [1, 126] - ], - "c": true - } - ] - }, - { - "i": { "x": 0.667, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 60, - "s": [ - { - "i": [ - [0, 0], - [-198, -26], - [0, 0], - [43.297, 4.348] - ], - "o": [ - [0, 0], - [209, -23], - [0, 0], - [-46.02, -4.621] - ], - "v": [ - [-142, 49], - [-7, 273], - [148, 77], - [1, 126] - ], - "c": true - } - ] - }, - { - "t": 118, - "s": [ - { - "i": [ - [0, 0], - [-198, -26], - [0, 0], - [43.297, 4.348] - ], - "o": [ - [0, 0], - [209, -23], - [0, 0], - [-46.02, -4.621] - ], - "v": [ - [-117, 53], - [-7, 273], - [122, 77], - [1, 126] - ], - "c": true - } - ] - } - ], - "ix": 2 - }, - "nm": "Path 1", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ty": "fl", - "c": { - "a": 0, - "k": [0.996078012504, 0.533332974303, 0, 1], - "ix": 4 - }, - "o": { "a": 0, "k": 100, "ix": 5 }, - "r": 1, - "bm": 0, - "nm": "Fill 1", - "mn": "ADBE Vector Graphic - Fill", - "hd": false - }, - { - "ty": "tr", - "p": { "a": 0, "k": [0, 0], "ix": 2 }, - "a": { "a": 0, "k": [0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100], "ix": 3 }, - "r": { "a": 0, "k": 0, "ix": 6 }, - "o": { "a": 0, "k": 100, "ix": 7 }, - "sk": { "a": 0, "k": 0, "ix": 4 }, - "sa": { "a": 0, "k": 0, "ix": 5 }, - "nm": "Transform" - } - ], - "nm": "Shape 1", - "np": 3, - "cix": 2, - "bm": 0, - "ix": 1, - "mn": "ADBE Vector Group", - "hd": false - } - ], - "ip": 0, - "op": 120, - "st": 0, - "bm": 0 - }, - { - "ddd": 0, - "ind": 4, - "ty": 4, - "nm": "Shape Layer 2", - "sr": 1, - "ks": { - "o": { "a": 0, "k": 100, "ix": 11 }, - "r": { "a": 0, "k": 0, "ix": 10 }, - "p": { "a": 0, "k": [412, 429.178, 0], "ix": 2 }, - "a": { "a": 0, "k": [12, -55.822, 0], "ix": 1 }, - "s": { "a": 0, "k": [77, 77, 100], "ix": 6 } - }, - "ao": 0, - "shapes": [ - { - "ty": "gr", - "it": [ - { - "ind": 0, - "ty": "sh", - "ix": 1, - "ks": { - "a": 1, - "k": [ - { - "i": { "x": 0.667, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 0, - "s": [ - { - "i": [ - [0, 0], - [58, -69], - [-23.364, -37.506], - [-36.687, 2.731], - [-2.692, 22.951], - [25.135, 44.806] - ], - "o": [ - [0, 0], - [-68, 74], - [25.544, 41.006], - [42.104, -3.134], - [5.985, -51.024], - [-22.657, -40.389] - ], - "v": [ - [-34, -193], - [-58, -76], - [-96, 51], - [44.141, 87.969], - [104, 53], - [65.757, -96.303] - ], - "c": true - } - ] - }, - { - "i": { "x": 0.667, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 60, - "s": [ - { - "i": [ - [0, 85.41], - [67, -57], - [-1.416, -16.144], - [-58.209, 4.486], - [-9.665, 27.041], - [15.818, 21.797] - ], - "o": [ - [-36, 50], - [-68, 74], - [10.922, 19.245], - [46, -3.545], - [13.161, -36.822], - [-17.64, -24.308] - ], - "v": [ - [36, -193], - [-49.5, -113], - [-96, 51], - [22.098, 79.716], - [104, 53], - [71.986, -59.858] - ], - "c": true - } - ] - }, - { - "t": 118, - "s": [ - { - "i": [ - [0, 0], - [58, -69], - [-23.364, -37.506], - [-36.687, 2.731], - [-2.692, 22.951], - [25.135, 44.806] - ], - "o": [ - [0, 0], - [-68, 74], - [25.544, 41.006], - [42.104, -3.134], - [5.985, -51.024], - [-22.657, -40.389] - ], - "v": [ - [-34, -193], - [-58, -76], - [-96, 51], - [44.141, 87.969], - [104, 53], - [65.757, -96.303] - ], - "c": true - } - ] - } - ], - "ix": 2 - }, - "nm": "Path 1", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ty": "fl", - "c": { - "a": 0, - "k": [0.996078491211, 0.533333333333, 0, 1], - "ix": 4 - }, - "o": { "a": 0, "k": 100, "ix": 5 }, - "r": 1, - "bm": 0, - "nm": "Fill 1", - "mn": "ADBE Vector Graphic - Fill", - "hd": false - }, - { - "ty": "tr", - "p": { "a": 0, "k": [0, 0], "ix": 2 }, - "a": { "a": 0, "k": [0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100], "ix": 3 }, - "r": { "a": 0, "k": 0, "ix": 6 }, - "o": { "a": 0, "k": 100, "ix": 7 }, - "sk": { "a": 0, "k": 0, "ix": 4 }, - "sa": { "a": 0, "k": 0, "ix": 5 }, - "nm": "Transform" - } - ], - "nm": "Shape 1", - "np": 3, - "cix": 2, - "bm": 0, - "ix": 1, - "mn": "ADBE Vector Group", - "hd": false - } - ], - "ip": 0, - "op": 120.12012012012, - "st": 0, - "bm": 0 - }, - { - "ddd": 0, - "ind": 5, - "ty": 4, - "nm": "base 3", - "sr": 1, - "ks": { - "o": { "a": 0, "k": 100, "ix": 11 }, - "r": { "a": 0, "k": 0, "ix": 10 }, - "p": { "a": 0, "k": [400, 405, 0], "ix": 2 }, - "a": { "a": 0, "k": [0, 0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100, 100], "ix": 6 } - }, - "ao": 0, - "shapes": [ - { - "ty": "gr", - "it": [ - { - "ind": 0, - "ty": "sh", - "ix": 1, - "ks": { - "a": 1, - "k": [ - { - "i": { "x": 0.667, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 0, - "s": [ - { - "i": [ - [0, 0], - [58, -69], - [5, -13], - [0, 0], - [-75.962, 20.451], - [0, 0], - [25.135, 44.806] - ], - "o": [ - [0, 0], - [-68, 74], - [-2.47, 7.667], - [0, 0], - [-24, -10], - [0, 0], - [-22.657, -40.389] - ], - "v": [ - [-34, -193], - [-58, -76], - [-96, 51], - [-106, 73], - [130, 72], - [104, 53], - [65.757, -96.303] - ], - "c": true - } - ] - }, - { - "i": { "x": 0.667, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 60, - "s": [ - { - "i": [ - [0, 85.41], - [67, -57], - [5, -13], - [0, 0], - [-75.962, 20.451], - [3.589, 10.117], - [15.818, 21.797] - ], - "o": [ - [-36, 50], - [-68, 74], - [-2.47, 7.667], - [0, 0], - [-24, -10], - [-0.946, -68.552], - [-17.64, -24.308] - ], - "v": [ - [36, -193], - [-49.5, -113], - [-96, 51], - [-106, 73], - [130, 72], - [104, 53], - [71.986, -59.858] - ], - "c": true - } - ] - }, - { - "t": 118.1171875, - "s": [ - { - "i": [ - [0, 0], - [58, -69], - [5, -13], - [0, 0], - [-75.962, 20.451], - [0, 0], - [25.135, 44.806] - ], - "o": [ - [0, 0], - [-68, 74], - [-2.47, 7.667], - [0, 0], - [-24, -10], - [0, 0], - [-22.657, -40.389] - ], - "v": [ - [-34, -193], - [-58, -76], - [-96, 51], - [-106, 73], - [130, 72], - [104, 53], - [65.757, -96.303] - ], - "c": true - } - ] - } - ], - "ix": 2 - }, - "nm": "Path 1", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ty": "fl", - "c": { - "a": 0, - "k": [0.901960844152, 0.231372563979, 0.125490196078, 1], - "ix": 4 - }, - "o": { "a": 0, "k": 100, "ix": 5 }, - "r": 1, - "bm": 0, - "nm": "Fill 1", - "mn": "ADBE Vector Graphic - Fill", - "hd": false - }, - { - "ty": "tr", - "p": { "a": 0, "k": [0, 0], "ix": 2 }, - "a": { "a": 0, "k": [0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100], "ix": 3 }, - "r": { "a": 0, "k": 0, "ix": 6 }, - "o": { "a": 0, "k": 100, "ix": 7 }, - "sk": { "a": 0, "k": 0, "ix": 4 }, - "sa": { "a": 0, "k": 0, "ix": 5 }, - "nm": "Transform" - } - ], - "nm": "Shape 1", - "np": 3, - "cix": 2, - "bm": 0, - "ix": 1, - "mn": "ADBE Vector Group", - "hd": false - } - ], - "ip": 0, - "op": 120.12012012012, - "st": 0, - "bm": 0 - }, - { - "ddd": 0, - "ind": 6, - "ty": 4, - "nm": "base 2", - "sr": 1, - "ks": { - "o": { "a": 0, "k": 100, "ix": 11 }, - "r": { "a": 0, "k": 0, "ix": 10 }, - "p": { "a": 0, "k": [400, 405, 0], "ix": 2 }, - "a": { "a": 0, "k": [0, 0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100, 100], "ix": 6 } - }, - "ao": 0, - "shapes": [ - { - "ty": "gr", - "it": [ - { - "ind": 0, - "ty": "sh", - "ix": 1, - "ks": { - "a": 1, - "k": [ - { - "i": { "x": 0.667, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 0, - "s": [ - { - "i": [ - [4.5, 32.5], - [-9, -32.5], - [-81, 78], - [12, 25], - [0, 0], - [68.909, 14.926] - ], - "o": [ - [-15.5, 37], - [83, 81.5], - [5, -31], - [-7, 7], - [0, 0], - [-21.738, -4.709] - ], - "v": [ - [-135, -15], - [-158, 121.5], - [164.5, 120], - [146, 14], - [112, 38.5], - [-99.5, 41.5] - ], - "c": true - } - ] - }, - { - "i": { "x": 0.667, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 60, - "s": [ - { - "i": [ - [18.5, 23], - [-9, -32.5], - [-60, 92], - [12, 25], - [0, 0], - [68.909, 14.926] - ], - "o": [ - [-15.5, 37], - [46.5, 89], - [5, -31], - [-0.5, 18.5], - [0, 0], - [-21.738, -4.708] - ], - "v": [ - [-182, 2.5], - [-160.5, 129.5], - [167, 126.5], - [173.5, 19.5], - [112, 38.5], - [-99.5, 41.5] - ], - "c": true - } - ] - }, - { - "i": { "x": 0.667, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 118, - "s": [ - { - "i": [ - [4.5, 32.5], - [-9, -32.5], - [-81, 78], - [12, 25], - [0, 0], - [68.909, 14.926] - ], - "o": [ - [-15.5, 37], - [83, 81.5], - [5, -31], - [-7, 7], - [0, 0], - [-21.738, -4.709] - ], - "v": [ - [-135, -15], - [-158, 121.5], - [164.5, 120], - [146, 14], - [112, 38.5], - [-99.5, 41.5] - ], - "c": true - } - ] - }, - { - "t": 118.1171875, - "s": [ - { - "i": [ - [4.5, 32.5], - [-9, -32.5], - [-81, 78], - [12, 25], - [0, 0], - [68.909, 14.926] - ], - "o": [ - [-15.5, 37], - [83, 81.5], - [5, -31], - [-7, 7], - [0, 0], - [-21.738, -4.709] - ], - "v": [ - [-135, -15], - [-158, 121.5], - [164.5, 120], - [146, 14], - [112, 38.5], - [-99.5, 41.5] - ], - "c": true - } - ] - } - ], - "ix": 2 - }, - "nm": "Path 1", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ty": "fl", - "c": { - "a": 0, - "k": [0.901960844152, 0.231372563979, 0.125490196078, 1], - "ix": 4 - }, - "o": { "a": 0, "k": 100, "ix": 5 }, - "r": 1, - "bm": 0, - "nm": "Fill 1", - "mn": "ADBE Vector Graphic - Fill", - "hd": false - }, - { - "ty": "tr", - "p": { "a": 0, "k": [0, 0], "ix": 2 }, - "a": { "a": 0, "k": [0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100], "ix": 3 }, - "r": { "a": 0, "k": 0, "ix": 6 }, - "o": { "a": 0, "k": 100, "ix": 7 }, - "sk": { "a": 0, "k": 0, "ix": 4 }, - "sa": { "a": 0, "k": 0, "ix": 5 }, - "nm": "Transform" - } - ], - "nm": "Shape 1", - "np": 3, - "cix": 2, - "bm": 0, - "ix": 1, - "mn": "ADBE Vector Group", - "hd": false - } - ], - "ip": 0, - "op": 120.12012012012, - "st": 0, - "bm": 0 - }, - { - "ddd": 0, - "ind": 7, - "ty": 4, - "nm": "base 1", - "sr": 1, - "ks": { - "o": { "a": 0, "k": 100, "ix": 11 }, - "r": { "a": 0, "k": 0, "ix": 10 }, - "p": { "a": 0, "k": [400.995, 595.402, 0], "ix": 2 }, - "a": { "a": 0, "k": [0.995, 195.402, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100, 100], "ix": 6 } - }, - "ao": 0, - "shapes": [ - { - "ty": "gr", - "it": [ - { - "ind": 0, - "ty": "sh", - "ix": 1, - "ks": { - "a": 1, - "k": [ - { - "i": { "x": 0.667, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 0, - "s": [ - { - "i": [ - [0, 0], - [37.011, -9.662], - [0, 0], - [28.838, 7.655], - [0, 0], - [-61, -56], - [-40.5, 66.5] - ], - "o": [ - [0, 0], - [-24.838, 6.484], - [0, 0], - [-32.513, -8.631], - [0, 0], - [31.184, 30.385], - [32.535, -30.319] - ], - "v": [ - [181, 107.5], - [77, 156], - [0, 154.75], - [-89.5, 156], - [-178, 107.5], - [-129.5, 259], - [151, 237.5] - ], - "c": true - } - ] - }, - { - "i": { "x": 0.667, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 60, - "s": [ - { - "i": [ - [0, 0], - [42.492, -9.318], - [0, 0], - [29.16, 6.316], - [0, 0], - [-61, -56], - [-40.5, 66.5] - ], - "o": [ - [0, 0], - [-25.074, 5.499], - [0, 0], - [-39.473, -8.549], - [0, 0], - [31.184, 30.385], - [32.535, -30.319] - ], - "v": [ - [216.5, 116], - [77, 156], - [0, 154.75], - [-89.5, 156], - [-221, 109], - [-129.5, 259], - [151, 237.5] - ], - "c": true - } - ] - }, - { - "t": 118.1171875, - "s": [ - { - "i": [ - [0, 0], - [37.011, -9.662], - [0, 0], - [28.838, 7.655], - [0, 0], - [-61, -56], - [-40.5, 66.5] - ], - "o": [ - [0, 0], - [-24.838, 6.484], - [0, 0], - [-32.513, -8.631], - [0, 0], - [31.184, 30.385], - [32.535, -30.319] - ], - "v": [ - [181, 107.5], - [77, 156], - [0, 154.75], - [-89.5, 156], - [-178, 107.5], - [-129.5, 259], - [151, 237.5] - ], - "c": true - } - ] - } - ], - "ix": 2 - }, - "nm": "Path 1", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ty": "fl", - "c": { - "a": 0, - "k": [0.901960844152, 0.231372563979, 0.125490196078, 1], - "ix": 4 - }, - "o": { "a": 0, "k": 100, "ix": 5 }, - "r": 1, - "bm": 0, - "nm": "Fill 1", - "mn": "ADBE Vector Graphic - Fill", - "hd": false - }, - { - "ty": "tr", - "p": { "a": 0, "k": [0, 0], "ix": 2 }, - "a": { "a": 0, "k": [0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100], "ix": 3 }, - "r": { "a": 0, "k": 0, "ix": 6 }, - "o": { "a": 0, "k": 100, "ix": 7 }, - "sk": { "a": 0, "k": 0, "ix": 4 }, - "sa": { "a": 0, "k": 0, "ix": 5 }, - "nm": "Transform" - } - ], - "nm": "Shape 1", - "np": 3, - "cix": 2, - "bm": 0, - "ix": 1, - "mn": "ADBE Vector Group", - "hd": false - } - ], - "ip": 0, - "op": 120.12012012012, - "st": 0, - "bm": 0 - }, - { - "ddd": 0, - "ind": 8, - "ty": 0, - "nm": "Shape Layer 7 Comp 1", - "refId": "comp_0", - "sr": 1, - "ks": { - "o": { "a": 0, "k": 100, "ix": 11 }, - "r": { - "a": 1, - "k": [ - { - "i": { "x": [0.094], "y": [1] }, - "o": { "x": [0.333], "y": [0] }, - "t": 8, - "s": [0] - }, - { "t": 33, "s": [-13] } - ], - "ix": 10 - }, - "p": { - "a": 1, - "k": [ - { - "i": { "x": 0.094, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 8, - "s": [276, 364, 0], - "to": [-0.333, -85.333, 0], - "ti": [2, 98.461, 0] - }, - { "t": 33, "s": [274, 224, 0] } - ], - "ix": 2 - }, - "a": { "a": 0, "k": [400, 400, 0], "ix": 1 }, - "s": { "a": 0, "k": [-100, 100, 100], "ix": 6 } - }, - "ao": 0, - "w": 800, - "h": 800, - "ip": 0, - "op": 120, - "st": 0, - "bm": 0 - }, - { - "ddd": 0, - "ind": 9, - "ty": 0, - "nm": "Shape Layer 7 Comp 1", - "refId": "comp_0", - "sr": 1, - "ks": { - "o": { "a": 0, "k": 100, "ix": 11 }, - "r": { - "a": 1, - "k": [ - { - "i": { "x": [0.094], "y": [1] }, - "o": { "x": [0.333], "y": [0] }, - "t": 8, - "s": [0] - }, - { "t": 33, "s": [-5] } - ], - "ix": 10 - }, - "p": { - "a": 1, - "k": [ - { - "i": { "x": 0.094, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 8, - "s": [674, 408, 0], - "to": [-24, -23, 0], - "ti": [0, 0, 0] - }, - { "t": 33, "s": [680, 368, 0] } - ], - "ix": 2 - }, - "a": { "a": 0, "k": [400, 400, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100, 100], "ix": 6 } - }, - "ao": 0, - "w": 800, - "h": 800, - "ip": 0, - "op": 120, - "st": 0, - "bm": 0 - }, - { - "ddd": 0, - "ind": 10, - "ty": 0, - "nm": "Shape Layer 6 Comp 1", - "refId": "comp_1", - "sr": 1, - "ks": { - "o": { "a": 0, "k": 100, "ix": 11 }, - "r": { - "a": 1, - "k": [ - { - "i": { "x": [0.094], "y": [1] }, - "o": { "x": [0.333], "y": [0] }, - "t": 8, - "s": [0] - }, - { "t": 33, "s": [-10] } - ], - "ix": 10 - }, - "p": { - "a": 1, - "k": [ - { - "i": { "x": 0.094, "y": 1 }, - "o": { "x": 0.333, "y": 0 }, - "t": 8, - "s": [400, 400, 0], - "to": [-70, -2, 0], - "ti": [0, 0, 0] - }, - { "t": 33, "s": [362, 316, 0] } - ], - "ix": 2 - }, - "a": { "a": 0, "k": [400, 400, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100, 100], "ix": 6 } - }, - "ao": 0, - "w": 800, - "h": 800, - "ip": 0, - "op": 120, - "st": 0, - "bm": 0 - } - ], - "markers": [] -} diff --git a/src/renderer/src/assets/lottie/settings.json b/src/renderer/src/assets/lottie/settings.json deleted file mode 100644 index 92fa645e..00000000 --- a/src/renderer/src/assets/lottie/settings.json +++ /dev/null @@ -1,1054 +0,0 @@ -{ - "v": "4.8.0", - "meta": { "g": "LottieFiles AE 3.5.6", "a": "", "k": "", "d": "", "tc": "" }, - "fr": 60, - "ip": 0, - "op": 120, - "w": 900, - "h": 900, - "nm": "Pre-comp 1", - "ddd": 0, - "assets": [ - { - "id": "comp_0", - "layers": [ - { - "ddd": 0, - "ind": 1, - "ty": 4, - "nm": "estrela Outlines 2", - "sr": 1, - "ks": { - "o": { "a": 0, "k": 100, "ix": 11 }, - "r": { - "a": 1, - "k": [ - { - "i": { "x": [0.667], "y": [1] }, - "o": { "x": [0.933], "y": [0] }, - "t": 0, - "s": [0] - }, - { "t": 60, "s": [180] } - ], - "ix": 10 - }, - "p": { "a": 0, "k": [450, 450, 0], "ix": 2 }, - "a": { "a": 0, "k": [308.5, 333, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100, 100], "ix": 6 } - }, - "ao": 0, - "shapes": [ - { - "ty": "gr", - "it": [ - { - "ind": 0, - "ty": "sh", - "ix": 1, - "ks": { - "a": 0, - "k": { - "i": [ - [0.011, 34.469], - [34.47, -0.012], - [-0.011, -34.469], - [-34.47, 0.011] - ], - "o": [ - [-0.012, -34.47], - [-34.469, 0.011], - [0.012, 34.47], - [34.469, -0.012] - ], - "v": [ - [62.333, 0.005], - [-0.101, -62.387], - [-62.493, 0.047], - [-0.059, 62.439] - ], - "c": true - }, - "ix": 2 - }, - "nm": "Path 1", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ind": 1, - "ty": "sh", - "ix": 2, - "ks": { - "a": 0, - "k": { - "i": [ - [0, -68.917], - [68.916, 0], - [0, 68.916], - [-68.916, 0] - ], - "o": [ - [0, 68.916], - [-68.916, 0], - [0, -68.917], - [68.916, 0] - ], - "v": [ - [124.725, 0.005], - [-0.059, 124.789], - [-124.843, 0.005], - [-0.059, -124.779] - ], - "c": true - }, - "ix": 2 - }, - "nm": "Path 2", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ind": 2, - "ty": "sh", - "ix": 3, - "ks": { - "a": 0, - "k": { - "i": [ - [15.804, -1.372], - [1.206, -4.575], - [0, 0], - [18.676, -9.234], - [6.656, -4.451], - [23.252, 6.364], - [0, 0], - [0.832, -1.206], - [6.697, -14.392], - [-3.327, -3.328], - [0, 0], - [1.331, -20.755], - [-0.499, -8.062], - [17.095, -16.887], - [0, 0], - [-0.582, -1.289], - [-9.151, -12.977], - [-4.575, 1.248], - [0, 0], - [-17.345, -11.563], - [-7.196, -3.578], - [-6.114, -23.293], - [0, 0], - [-1.497, -0.124], - [-15.804, 1.373], - [-1.207, 4.575], - [0, 0], - [-18.676, 9.234], - [-6.655, 4.451], - [-23.251, -6.364], - [0, 0], - [-0.832, 1.206], - [-6.739, 14.392], - [3.327, 3.328], - [0, 0], - [-1.331, 20.755], - [0.499, 8.061], - [-17.095, 16.887], - [0, 0], - [0.582, 1.289], - [9.144, 12.981], - [4.576, -1.248], - [0, 0], - [17.345, 11.563], - [7.202, 3.563], - [6.114, 23.293], - [0, 0], - [1.498, 0.125] - ], - "o": [ - [-1.497, 0.125], - [0, 0], - [-6.114, 23.334], - [-7.196, 3.578], - [-17.345, 11.563], - [0, 0], - [-4.534, -1.248], - [-9.151, 12.978], - [-0.582, 1.289], - [0, 0], - [17.095, 16.887], - [-0.5, 8.062], - [1.331, 20.755], - [0, 0], - [-3.369, 3.328], - [6.738, 14.392], - [0.832, 1.248], - [0, 0], - [23.293, -6.364], - [6.697, 4.451], - [18.593, 9.234], - [0, 0], - [1.206, 4.533], - [15.804, 1.373], - [1.498, -0.124], - [0, 0], - [6.114, -23.335], - [7.196, -3.578], - [17.345, -11.563], - [0, 0], - [4.534, 1.206], - [9.151, -13.019], - [0.582, -1.289], - [0, 0], - [-17.095, -16.887], - [0.499, -8.062], - [-1.331, -20.756], - [0, 0], - [3.369, -3.328], - [-6.715, -14.39], - [-0.832, -1.248], - [0, 0], - [-23.293, 6.364], - [-6.676, -4.47], - [-18.592, -9.234], - [0, 0], - [-1.207, -4.575], - [-15.804, -1.372] - ], - "v": [ - [-23.81, -269.32], - [-29.508, -263.247], - [-41.529, -217.285], - [-83.04, -167.829], - [-103.838, -155.766], - [-167.436, -144.536], - [-213.314, -157.139], - [-221.425, -155.267], - [-245.259, -114.089], - [-242.805, -106.185], - [-208.905, -72.66], - [-186.86, -12.099], - [-186.86, 12.109], - [-208.905, 72.671], - [-242.805, 106.195], - [-245.259, 114.099], - [-221.425, 155.236], - [-213.314, 157.15], - [-167.477, 144.547], - [-103.838, 155.777], - [-82.999, 167.839], - [-41.529, 217.295], - [-29.508, 263.257], - [-23.81, 269.329], - [23.691, 269.329], - [29.39, 263.257], - [41.411, 217.295], - [82.922, 167.839], - [103.719, 155.777], - [167.317, 144.547], - [213.196, 157.15], - [221.307, 155.277], - [245.141, 114.099], - [242.687, 106.195], - [208.787, 72.671], - [186.742, 12.109], - [186.742, -12.098], - [208.787, -72.66], - [242.687, -106.185], - [245.141, -114.089], - [221.307, -155.225], - [213.196, -157.139], - [167.359, -144.536], - [103.719, -155.766], - [82.88, -167.828], - [41.411, -217.285], - [29.39, -263.247], - [23.691, -269.32] - ], - "c": true - }, - "ix": 2 - }, - "nm": "Path 3", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ind": 3, - "ty": "sh", - "ix": 4, - "ks": { - "a": 0, - "k": { - "i": [ - [-9.816, 0], - [-9.697, -0.846], - [-7.071, -26.828], - [0, 0], - [-5.532, -2.745], - [-8.902, -5.948], - [-2.745, 0.79], - [0, 0], - [-17.802, -25.331], - [-8.236, -17.72], - [19.758, -19.508], - [0, 0], - [-0.416, -6.114], - [0.666, -10.69], - [-2.079, -1.997], - [0, 0], - [13.102, -28.076], - [11.232, -15.979], - [26.787, 7.363], - [0, 0], - [5.117, -3.411], - [9.602, -4.741], - [0.707, -2.745], - [0, 0], - [30.904, -2.663], - [19.401, 1.705], - [7.03, 26.87], - [0, 0], - [5.532, 2.745], - [8.891, 5.969], - [2.746, -0.79], - [0, 0], - [17.802, 25.332], - [8.277, 17.703], - [-19.716, 19.508], - [0, 0], - [0.416, 6.114], - [-0.666, 10.693], - [2.08, 1.997], - [0, 0], - [-13.102, 28.076], - [-11.242, 15.972], - [-26.787, -7.363], - [0, 0], - [-5.116, 3.411], - [-9.608, 4.742], - [-0.707, 2.745], - [0, 0], - [-30.905, 2.704] - ], - "o": [ - [9.733, 0.014], - [30.904, 2.662], - [0, 0], - [0.749, 2.745], - [9.609, 4.742], - [5.116, 3.411], - [0, 0], - [26.787, -7.321], - [11.231, 16.014], - [13.102, 28.076], - [0, 0], - [-2.038, 1.997], - [0.666, 10.69], - [-0.416, 6.114], - [0, 0], - [19.758, 19.508], - [-8.252, 17.703], - [-17.802, 25.373], - [0, 0], - [-2.787, -0.79], - [-8.902, 5.952], - [-5.532, 2.745], - [0, 0], - [-6.987, 26.87], - [-19.402, 1.705], - [-30.905, -2.663], - [0, 0], - [-0.748, -2.745], - [-9.611, -4.723], - [-5.116, -3.411], - [0, 0], - [-26.786, 7.321], - [-11.208, -16.008], - [-13.102, -28.076], - [0, 0], - [2.08, -1.997], - [-0.666, -10.693], - [0.416, -6.114], - [0, 0], - [-19.716, -19.508], - [8.241, -17.709], - [17.802, -25.373], - [0, 0], - [2.787, 0.79], - [8.901, -5.948], - [5.532, -2.745], - [0, 0], - [6.988, -26.87], - [9.608, -0.832] - ], - "v": [ - [-0.059, -332.751], - [29.099, -331.462], - [89.785, -279.095], - [101.764, -233.049], - [110.582, -223.733], - [138.368, -207.676], - [150.804, -204.723], - [196.683, -217.327], - [272.385, -191.123], - [301.668, -140.459], - [286.527, -61.805], - [252.669, -28.28], - [249.009, -16.051], - [249.009, 16.061], - [252.669, 28.289], - [286.527, 61.815], - [301.668, 140.47], - [272.385, 191.09], - [196.683, 217.295], - [150.846, 204.734], - [138.367, 207.687], - [110.582, 223.743], - [101.806, 233.059], - [89.743, 279.063], - [29.099, 331.473], - [-29.217, 331.473], - [-89.862, 279.063], - [-101.883, 233.059], - [-110.701, 223.743], - [-138.486, 207.687], - [-150.923, 204.734], - [-196.802, 217.336], - [-272.504, 191.132], - [-301.786, 140.47], - [-286.687, 61.815], - [-252.788, 28.289], - [-249.127, 16.061], - [-249.127, -16.051], - [-252.788, -28.28], - [-286.687, -61.805], - [-301.786, -140.459], - [-272.504, -191.08], - [-196.801, -217.285], - [-150.964, -204.723], - [-138.486, -207.676], - [-110.701, -223.733], - [-101.924, -233.049], - [-89.862, -279.053], - [-29.217, -331.504] - ], - "c": true - }, - "ix": 2 - }, - "nm": "Path 4", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ty": "mm", - "mm": 1, - "nm": "Merge Paths 1", - "mn": "ADBE Vector Filter - Merge", - "hd": false - }, - { - "ty": "fl", - "c": { - "a": 0, - "k": [0.898460657456, 0.889815326765, 0.896223060758, 1], - "ix": 4 - }, - "o": { "a": 0, "k": 100, "ix": 5 }, - "r": 1, - "bm": 0, - "nm": "Fill 1", - "mn": "ADBE Vector Graphic - Fill", - "hd": false - }, - { - "ty": "tr", - "p": { "a": 0, "k": [308.077, 333.249], "ix": 2 }, - "a": { "a": 0, "k": [0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100], "ix": 3 }, - "r": { "a": 0, "k": 0, "ix": 6 }, - "o": { "a": 0, "k": 100, "ix": 7 }, - "sk": { "a": 0, "k": 0, "ix": 4 }, - "sa": { "a": 0, "k": 0, "ix": 5 }, - "nm": "Transform" - } - ], - "nm": "Group 1", - "np": 8, - "cix": 2, - "bm": 0, - "ix": 1, - "mn": "ADBE Vector Group", - "hd": false - } - ], - "ip": 0, - "op": 120, - "st": 0, - "bm": 0 - } - ] - } - ], - "layers": [ - { - "ddd": 0, - "ind": 1, - "ty": 0, - "nm": "estrela Outlines 2 Comp 1", - "refId": "comp_0", - "sr": 1, - "ks": { - "o": { "a": 0, "k": 100, "ix": 11 }, - "r": { "a": 0, "k": 0, "ix": 10 }, - "p": { "a": 0, "k": [450, 450, 0], "ix": 2 }, - "a": { "a": 0, "k": [450, 450, 0], "ix": 1 }, - "s": { - "a": 1, - "k": [ - { - "i": { "x": [0.667, 0.667, 0.667], "y": [1, 1, 1] }, - "o": { "x": [1, 1, 0.333], "y": [0, 0, 0] }, - "t": 0, - "s": [100, 100, 100] - }, - { - "i": { "x": [0, 0, 0.667], "y": [1, 1, 1] }, - "o": { "x": [0.333, 0.333, 0.333], "y": [0, 0, 0] }, - "t": 30, - "s": [80, 80, 100] - }, - { "t": 60, "s": [100, 100, 100] } - ], - "ix": 6 - } - }, - "ao": 0, - "hasMask": true, - "masksProperties": [ - { - "inv": false, - "mode": "a", - "pt": { - "a": 0, - "k": { - "i": [ - [89.47, 0], - [0, -89.47], - [-89.47, 0], - [0, 89.47] - ], - "o": [ - [-89.47, 0], - [0, 89.47], - [89.47, 0], - [0, -89.47] - ], - "v": [ - [446, 286], - [284, 448], - [446, 610], - [608, 448] - ], - "c": true - }, - "ix": 1 - }, - "o": { "a": 0, "k": 100, "ix": 3 }, - "x": { "a": 0, "k": 0, "ix": 4 }, - "nm": "Mask 1" - } - ], - "w": 900, - "h": 900, - "ip": 0, - "op": 120, - "st": 0, - "bm": 0 - }, - { - "ddd": 0, - "ind": 2, - "ty": 4, - "nm": "estrela Outlines", - "sr": 1, - "ks": { - "o": { "a": 0, "k": 100, "ix": 11 }, - "r": { - "a": 1, - "k": [ - { - "i": { "x": [0.84], "y": [-1.753] }, - "o": { "x": [0], "y": [0] }, - "t": 0, - "s": [0] - }, - { - "i": { "x": [0.361], "y": [1] }, - "o": { "x": [0], "y": [0] }, - "t": 28, - "s": [15] - }, - { "t": 60, "s": [180] } - ], - "ix": 10 - }, - "p": { "a": 0, "k": [450, 450, 0], "ix": 2 }, - "a": { "a": 0, "k": [308.5, 333, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100, 100], "ix": 6 } - }, - "ao": 0, - "shapes": [ - { - "ty": "gr", - "it": [ - { - "ind": 0, - "ty": "sh", - "ix": 1, - "ks": { - "a": 0, - "k": { - "i": [ - [0.011, 34.469], - [34.47, -0.012], - [-0.011, -34.469], - [-34.47, 0.011] - ], - "o": [ - [-0.012, -34.47], - [-34.469, 0.011], - [0.012, 34.47], - [34.469, -0.012] - ], - "v": [ - [62.333, 0.005], - [-0.101, -62.387], - [-62.493, 0.047], - [-0.059, 62.439] - ], - "c": true - }, - "ix": 2 - }, - "nm": "Path 1", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ind": 1, - "ty": "sh", - "ix": 2, - "ks": { - "a": 0, - "k": { - "i": [ - [0, -68.917], - [68.916, 0], - [0, 68.916], - [-68.916, 0] - ], - "o": [ - [0, 68.916], - [-68.916, 0], - [0, -68.917], - [68.916, 0] - ], - "v": [ - [124.725, 0.005], - [-0.059, 124.789], - [-124.843, 0.005], - [-0.059, -124.779] - ], - "c": true - }, - "ix": 2 - }, - "nm": "Path 2", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ind": 2, - "ty": "sh", - "ix": 3, - "ks": { - "a": 0, - "k": { - "i": [ - [15.804, -1.372], - [1.206, -4.575], - [0, 0], - [18.676, -9.234], - [6.656, -4.451], - [23.252, 6.364], - [0, 0], - [0.832, -1.206], - [6.697, -14.392], - [-3.327, -3.328], - [0, 0], - [1.331, -20.755], - [-0.499, -8.062], - [17.095, -16.887], - [0, 0], - [-0.582, -1.289], - [-9.151, -12.977], - [-4.575, 1.248], - [0, 0], - [-17.345, -11.563], - [-7.196, -3.578], - [-6.114, -23.293], - [0, 0], - [-1.497, -0.124], - [-15.804, 1.373], - [-1.207, 4.575], - [0, 0], - [-18.676, 9.234], - [-6.655, 4.451], - [-23.251, -6.364], - [0, 0], - [-0.832, 1.206], - [-6.739, 14.392], - [3.327, 3.328], - [0, 0], - [-1.331, 20.755], - [0.499, 8.061], - [-17.095, 16.887], - [0, 0], - [0.582, 1.289], - [9.144, 12.981], - [4.576, -1.248], - [0, 0], - [17.345, 11.563], - [7.202, 3.563], - [6.114, 23.293], - [0, 0], - [1.498, 0.125] - ], - "o": [ - [-1.497, 0.125], - [0, 0], - [-6.114, 23.334], - [-7.196, 3.578], - [-17.345, 11.563], - [0, 0], - [-4.534, -1.248], - [-9.151, 12.978], - [-0.582, 1.289], - [0, 0], - [17.095, 16.887], - [-0.5, 8.062], - [1.331, 20.755], - [0, 0], - [-3.369, 3.328], - [6.738, 14.392], - [0.832, 1.248], - [0, 0], - [23.293, -6.364], - [6.697, 4.451], - [18.593, 9.234], - [0, 0], - [1.206, 4.533], - [15.804, 1.373], - [1.498, -0.124], - [0, 0], - [6.114, -23.335], - [7.196, -3.578], - [17.345, -11.563], - [0, 0], - [4.534, 1.206], - [9.151, -13.019], - [0.582, -1.289], - [0, 0], - [-17.095, -16.887], - [0.499, -8.062], - [-1.331, -20.756], - [0, 0], - [3.369, -3.328], - [-6.715, -14.39], - [-0.832, -1.248], - [0, 0], - [-23.293, 6.364], - [-6.676, -4.47], - [-18.592, -9.234], - [0, 0], - [-1.207, -4.575], - [-15.804, -1.372] - ], - "v": [ - [-23.81, -269.32], - [-29.508, -263.247], - [-41.529, -217.285], - [-83.04, -167.829], - [-103.838, -155.766], - [-167.436, -144.536], - [-213.314, -157.139], - [-221.425, -155.267], - [-245.259, -114.089], - [-242.805, -106.185], - [-208.905, -72.66], - [-186.86, -12.099], - [-186.86, 12.109], - [-208.905, 72.671], - [-242.805, 106.195], - [-245.259, 114.099], - [-221.425, 155.236], - [-213.314, 157.15], - [-167.477, 144.547], - [-103.838, 155.777], - [-82.999, 167.839], - [-41.529, 217.295], - [-29.508, 263.257], - [-23.81, 269.329], - [23.691, 269.329], - [29.39, 263.257], - [41.411, 217.295], - [82.922, 167.839], - [103.719, 155.777], - [167.317, 144.547], - [213.196, 157.15], - [221.307, 155.277], - [245.141, 114.099], - [242.687, 106.195], - [208.787, 72.671], - [186.742, 12.109], - [186.742, -12.098], - [208.787, -72.66], - [242.687, -106.185], - [245.141, -114.089], - [221.307, -155.225], - [213.196, -157.139], - [167.359, -144.536], - [103.719, -155.766], - [82.88, -167.828], - [41.411, -217.285], - [29.39, -263.247], - [23.691, -269.32] - ], - "c": true - }, - "ix": 2 - }, - "nm": "Path 3", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ind": 3, - "ty": "sh", - "ix": 4, - "ks": { - "a": 0, - "k": { - "i": [ - [-9.816, 0], - [-9.697, -0.846], - [-7.071, -26.828], - [0, 0], - [-5.532, -2.745], - [-8.902, -5.948], - [-2.745, 0.79], - [0, 0], - [-17.802, -25.331], - [-8.236, -17.72], - [19.758, -19.508], - [0, 0], - [-0.416, -6.114], - [0.666, -10.69], - [-2.079, -1.997], - [0, 0], - [13.102, -28.076], - [11.232, -15.979], - [26.787, 7.363], - [0, 0], - [5.117, -3.411], - [9.602, -4.741], - [0.707, -2.745], - [0, 0], - [30.904, -2.663], - [19.401, 1.705], - [7.03, 26.87], - [0, 0], - [5.532, 2.745], - [8.891, 5.969], - [2.746, -0.79], - [0, 0], - [17.802, 25.332], - [8.277, 17.703], - [-19.716, 19.508], - [0, 0], - [0.416, 6.114], - [-0.666, 10.693], - [2.08, 1.997], - [0, 0], - [-13.102, 28.076], - [-11.242, 15.972], - [-26.787, -7.363], - [0, 0], - [-5.116, 3.411], - [-9.608, 4.742], - [-0.707, 2.745], - [0, 0], - [-30.905, 2.704] - ], - "o": [ - [9.733, 0.014], - [30.904, 2.662], - [0, 0], - [0.749, 2.745], - [9.609, 4.742], - [5.116, 3.411], - [0, 0], - [26.787, -7.321], - [11.231, 16.014], - [13.102, 28.076], - [0, 0], - [-2.038, 1.997], - [0.666, 10.69], - [-0.416, 6.114], - [0, 0], - [19.758, 19.508], - [-8.252, 17.703], - [-17.802, 25.373], - [0, 0], - [-2.787, -0.79], - [-8.902, 5.952], - [-5.532, 2.745], - [0, 0], - [-6.987, 26.87], - [-19.402, 1.705], - [-30.905, -2.663], - [0, 0], - [-0.748, -2.745], - [-9.611, -4.723], - [-5.116, -3.411], - [0, 0], - [-26.786, 7.321], - [-11.208, -16.008], - [-13.102, -28.076], - [0, 0], - [2.08, -1.997], - [-0.666, -10.693], - [0.416, -6.114], - [0, 0], - [-19.716, -19.508], - [8.241, -17.709], - [17.802, -25.373], - [0, 0], - [2.787, 0.79], - [8.901, -5.948], - [5.532, -2.745], - [0, 0], - [6.988, -26.87], - [9.608, -0.832] - ], - "v": [ - [-0.059, -332.751], - [29.099, -331.462], - [89.785, -279.095], - [101.764, -233.049], - [110.582, -223.733], - [138.368, -207.676], - [150.804, -204.723], - [196.683, -217.327], - [272.385, -191.123], - [301.668, -140.459], - [286.527, -61.805], - [252.669, -28.28], - [249.009, -16.051], - [249.009, 16.061], - [252.669, 28.289], - [286.527, 61.815], - [301.668, 140.47], - [272.385, 191.09], - [196.683, 217.295], - [150.846, 204.734], - [138.367, 207.687], - [110.582, 223.743], - [101.806, 233.059], - [89.743, 279.063], - [29.099, 331.473], - [-29.217, 331.473], - [-89.862, 279.063], - [-101.883, 233.059], - [-110.701, 223.743], - [-138.486, 207.687], - [-150.923, 204.734], - [-196.802, 217.336], - [-272.504, 191.132], - [-301.786, 140.47], - [-286.687, 61.815], - [-252.788, 28.289], - [-249.127, 16.061], - [-249.127, -16.051], - [-252.788, -28.28], - [-286.687, -61.805], - [-301.786, -140.459], - [-272.504, -191.08], - [-196.801, -217.285], - [-150.964, -204.723], - [-138.486, -207.676], - [-110.701, -223.733], - [-101.924, -233.049], - [-89.862, -279.053], - [-29.217, -331.504] - ], - "c": true - }, - "ix": 2 - }, - "nm": "Path 4", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ty": "mm", - "mm": 1, - "nm": "Merge Paths 1", - "mn": "ADBE Vector Filter - Merge", - "hd": false - }, - { - "ty": "fl", - "c": { - "a": 0, - "k": [0.898460657456, 0.889815326765, 0.896223060758, 1], - "ix": 4 - }, - "o": { "a": 0, "k": 100, "ix": 5 }, - "r": 1, - "bm": 0, - "nm": "Fill 1", - "mn": "ADBE Vector Graphic - Fill", - "hd": false - }, - { - "ty": "tr", - "p": { "a": 0, "k": [308.077, 333.249], "ix": 2 }, - "a": { "a": 0, "k": [0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100], "ix": 3 }, - "r": { "a": 0, "k": 0, "ix": 6 }, - "o": { "a": 0, "k": 100, "ix": 7 }, - "sk": { "a": 0, "k": 0, "ix": 4 }, - "sa": { "a": 0, "k": 0, "ix": 5 }, - "nm": "Transform" - } - ], - "nm": "Group 1", - "np": 8, - "cix": 2, - "bm": 0, - "ix": 1, - "mn": "ADBE Vector Group", - "hd": false - } - ], - "ip": 0, - "op": 120, - "st": 0, - "bm": 0 - } - ], - "markers": [] -} diff --git a/src/renderer/src/main.tsx b/src/renderer/src/main.tsx index 11003295..44513093 100644 --- a/src/renderer/src/main.tsx +++ b/src/renderer/src/main.tsx @@ -21,7 +21,6 @@ import { store } from "./store"; import resources from "@locales"; import { AchievementNotification } from "./pages/achievements/notification/achievement-notification"; -import "./workers"; import { RepacksContextProvider } from "./context"; import { SuspenseWrapper } from "./components"; diff --git a/src/renderer/src/pages/home/home.css.ts b/src/renderer/src/pages/home/home.css.ts index ed04de7e..4c605377 100644 --- a/src/renderer/src/pages/home/home.css.ts +++ b/src/renderer/src/pages/home/home.css.ts @@ -68,3 +68,10 @@ export const buttonsList = style({ padding: "0", gap: `${SPACING_UNIT}px`, }); + +export const flameIcon = style({ + width: "30px", + top: "-10px", + left: "-5px", + position: "absolute", +}); diff --git a/src/renderer/src/pages/home/home.tsx b/src/renderer/src/pages/home/home.tsx index 9fc4a5cd..c19f6fd1 100644 --- a/src/renderer/src/pages/home/home.tsx +++ b/src/renderer/src/pages/home/home.tsx @@ -1,4 +1,4 @@ -import { useCallback, useEffect, useRef, useState } from "react"; +import { useCallback, useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; import { useNavigate } from "react-router-dom"; @@ -7,12 +7,12 @@ import Skeleton, { SkeletonTheme } from "react-loading-skeleton"; import { Button, GameCard, Hero } from "@renderer/components"; import type { Steam250Game, CatalogueEntry } from "@types"; -import starsAnimation from "@renderer/assets/lottie/stars.json"; -import flameAnimation from "@renderer/assets/lottie/flame.json"; +import flameIconStatic from "@renderer/assets/icons/flame-static.png"; +import flameIconAnimated from "@renderer/assets/icons/flame-animated.gif"; +import starsIconAnimated from "@renderer/assets/icons/stars-animated.gif"; import * as styles from "./home.css"; import { SPACING_UNIT, vars } from "@renderer/theme.css"; -import Lottie, { type LottieRefCurrentProps } from "lottie-react"; import { buildGameDetailsPath } from "@renderer/helpers"; import { CatalogueCategory } from "@shared"; @@ -20,8 +20,7 @@ export default function Home() { const { t } = useTranslation("home"); const navigate = useNavigate(); - const flameAnimationRef = useRef(null); - + const [animateFlame, setAnimateFlame] = useState(false); const [isLoading, setIsLoading] = useState(false); const [randomGame, setRandomGame] = useState(null); @@ -88,13 +87,13 @@ export default function Home() { const handleMouseEnterCategory = (category: CatalogueCategory) => { if (category === CatalogueCategory.Hot) { - flameAnimationRef?.current?.play(); + setAnimateFlame(true); } }; const handleMouseLeaveCategory = (category: CatalogueCategory) => { if (category === CatalogueCategory.Hot) { - flameAnimationRef?.current?.stop(); + setAnimateFlame(false); } }; @@ -123,17 +122,17 @@ export default function Home() {
- + Flame animation
)} @@ -150,10 +149,10 @@ export default function Home() { disabled={!randomGame} >
-
{t("surprise_me")} @@ -163,10 +162,9 @@ export default function Home() {

{currentCatalogueCategory === CatalogueCategory.Hot && (
-