Skip to content

Commit

Permalink
fix(bug): corrigir importação de push-notifications e ajustar formata…
Browse files Browse the repository at this point in the history
…ção de código
  • Loading branch information
sebastianjnuwu committed Dec 27, 2024
1 parent 9b30e2c commit c6e210d
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 48 deletions.
2 changes: 1 addition & 1 deletion www/main.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import "./src/plugins/admob.ts";
import "./src/plugins/push-notifications.ts";
import "./src/plugins/push-notifications.ts";
4 changes: 1 addition & 3 deletions www/src/js/main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
$(() => {

// Splash screen animation
// Splash screen animation
$("splash-screen").on("click", () => {
$("#splash")[0].play();

setTimeout(() => {
$("splash-screen").remove();
}, 1000);
});

});
1 change: 0 additions & 1 deletion www/src/plugins/admob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
import $ from "jquery";

$(() => {

if (window.Capacitor.getPlatform() !== "android") {
console.log(
`AdMob: Unsupported platform (${window.Capacitor.getPlatform()})`,
Expand Down
86 changes: 43 additions & 43 deletions www/src/styles/css/ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,62 +7,62 @@
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

:root {
--layout: #fffbde;
--text-color: #333;
--layout: #fffbde;
--text-color: #333;
}

.ui-cookie {
padding: 0;
margin: 0;
font-family: Arial, sans-serif;
font-size: 14px;
color: var(--text-color);
background-color: var(--layout);
padding: 0;
margin: 0;
font-family: Arial, sans-serif;
font-size: 14px;
color: var(--text-color);
background-color: var(--layout);
}

.ui-cookie splash-screen .icon {
width: 15rem;
animation: splash-screen 2s infinite ease-in-out;
width: 15rem;
animation: splash-screen 2s infinite ease-in-out;
}

.ui-cookie splash-screen h1 {
font-family: "Press Start 2P", cursive;
text-align: center;
font-size: 1.5rem;
color: #fdd388;
font-weight: bold;
text-shadow: 1px 1px #7c3d18;
cursor: pointer;
animation: reveal forwards ease-out;
font-family: "Press Start 2P", cursive;
text-align: center;
font-size: 1.5rem;
color: #fdd388;
font-weight: bold;
text-shadow: 1px 1px #7c3d18;
cursor: pointer;
animation: reveal forwards ease-out;
}

@keyframes reveal {
0% {
opacity: 0;
transform: translateY(-20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
0% {
opacity: 0;
transform: translateY(-20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}

@keyframes splash-screen {
0%,
100% {
transform: translateY(0);
opacity: 1;
}
25% {
transform: translateY(-8px);
opacity: 0.8;
}
50% {
transform: translateY(-15px);
opacity: 1;
}
75% {
transform: translateY(-8px);
opacity: 0.8;
}
0%,
100% {
transform: translateY(0);
opacity: 1;
}
25% {
transform: translateY(-8px);
opacity: 0.8;
}
50% {
transform: translateY(-15px);
opacity: 1;
}
75% {
transform: translateY(-8px);
opacity: 0.8;
}
}

0 comments on commit c6e210d

Please sign in to comment.