Skip to content

Commit c6e210d

Browse files
fix(bug): corrigir importação de push-notifications e ajustar formatação de código
1 parent 9b30e2c commit c6e210d

File tree

4 files changed

+45
-48
lines changed

4 files changed

+45
-48
lines changed

www/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import "./src/plugins/admob.ts";
2-
import "./src/plugins/push-notifications.ts";
2+
import "./src/plugins/push-notifications.ts";

www/src/js/main.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
$(() => {
2-
3-
// Splash screen animation
2+
// Splash screen animation
43
$("splash-screen").on("click", () => {
54
$("#splash")[0].play();
65

76
setTimeout(() => {
87
$("splash-screen").remove();
98
}, 1000);
109
});
11-
1210
});

www/src/plugins/admob.ts

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
import $ from "jquery";
77

88
$(() => {
9-
109
if (window.Capacitor.getPlatform() !== "android") {
1110
console.log(
1211
`AdMob: Unsupported platform (${window.Capacitor.getPlatform()})`,

www/src/styles/css/ui.css

+43-43
Original file line numberDiff line numberDiff line change
@@ -7,62 +7,62 @@
77
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");
88

99
:root {
10-
--layout: #fffbde;
11-
--text-color: #333;
10+
--layout: #fffbde;
11+
--text-color: #333;
1212
}
1313

1414
.ui-cookie {
15-
padding: 0;
16-
margin: 0;
17-
font-family: Arial, sans-serif;
18-
font-size: 14px;
19-
color: var(--text-color);
20-
background-color: var(--layout);
15+
padding: 0;
16+
margin: 0;
17+
font-family: Arial, sans-serif;
18+
font-size: 14px;
19+
color: var(--text-color);
20+
background-color: var(--layout);
2121
}
2222

2323
.ui-cookie splash-screen .icon {
24-
width: 15rem;
25-
animation: splash-screen 2s infinite ease-in-out;
24+
width: 15rem;
25+
animation: splash-screen 2s infinite ease-in-out;
2626
}
2727

2828
.ui-cookie splash-screen h1 {
29-
font-family: "Press Start 2P", cursive;
30-
text-align: center;
31-
font-size: 1.5rem;
32-
color: #fdd388;
33-
font-weight: bold;
34-
text-shadow: 1px 1px #7c3d18;
35-
cursor: pointer;
36-
animation: reveal forwards ease-out;
29+
font-family: "Press Start 2P", cursive;
30+
text-align: center;
31+
font-size: 1.5rem;
32+
color: #fdd388;
33+
font-weight: bold;
34+
text-shadow: 1px 1px #7c3d18;
35+
cursor: pointer;
36+
animation: reveal forwards ease-out;
3737
}
3838

3939
@keyframes reveal {
40-
0% {
41-
opacity: 0;
42-
transform: translateY(-20px);
43-
}
44-
100% {
45-
opacity: 1;
46-
transform: translateY(0);
47-
}
40+
0% {
41+
opacity: 0;
42+
transform: translateY(-20px);
43+
}
44+
100% {
45+
opacity: 1;
46+
transform: translateY(0);
47+
}
4848
}
4949

5050
@keyframes splash-screen {
51-
0%,
52-
100% {
53-
transform: translateY(0);
54-
opacity: 1;
55-
}
56-
25% {
57-
transform: translateY(-8px);
58-
opacity: 0.8;
59-
}
60-
50% {
61-
transform: translateY(-15px);
62-
opacity: 1;
63-
}
64-
75% {
65-
transform: translateY(-8px);
66-
opacity: 0.8;
67-
}
51+
0%,
52+
100% {
53+
transform: translateY(0);
54+
opacity: 1;
55+
}
56+
25% {
57+
transform: translateY(-8px);
58+
opacity: 0.8;
59+
}
60+
50% {
61+
transform: translateY(-15px);
62+
opacity: 1;
63+
}
64+
75% {
65+
transform: translateY(-8px);
66+
opacity: 0.8;
67+
}
6868
}

0 commit comments

Comments
 (0)