From 7cf13e47d571d39b7599eb08042b8ac992949ff7 Mon Sep 17 00:00:00 2001 From: Miguel Date: Mon, 22 Jan 2024 01:58:41 -0300 Subject: [PATCH] ui increments --- index.html | 122 ++++++++++++++++++++++++++++++++++++++---- scripts/ui-effects.js | 14 +++-- styles/btn.css | 7 +++ styles/styles.css | 18 +++++++ 4 files changed, 149 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index aec60c0..cd638c6 100644 --- a/index.html +++ b/index.html @@ -97,8 +97,7 @@

Remember Password

OU

- - +
@@ -415,17 +414,122 @@

Padrões Específicos

-
- diff --git a/scripts/ui-effects.js b/scripts/ui-effects.js index ea1776b..17d87ca 100644 --- a/scripts/ui-effects.js +++ b/scripts/ui-effects.js @@ -32,6 +32,7 @@ function closePopup() { document.getElementById('mainPage').style.display = 'block'; document.getElementById('popup').style.display = 'none'; document.getElementById('settings-popup').style.display = 'none'; + document.getElementById('service-popup').style.display = 'none'; document.body.classList.remove('modal-open'); // Adiciona uma entrada ao histórico de navegação com hash @@ -117,9 +118,12 @@ function showInfo(contentTemplateId, window) { document.getElementById('settings-popup').style.display = 'block'; document.body.classList.add('modal-open'); - } else { //Menu Donate - document.getElementById('donation-popup-content').innerHTML = content; - document.getElementById('donation-popup').style.display = 'block'; + } if (window === '3'){ //Menu Service + document.getElementById('service-popup-content').innerHTML = content; + document.getElementById('service-popup').style.display = 'block'; + document.body.classList.add('modal-open'); + + } else { document.body.classList.add('modal-open'); } @@ -274,6 +278,10 @@ function check(name, value) { document.getElementById('settings-popup-content').innerHTML = content; document.getElementById('settings-popup').style.display = 'block'; document.body.classList.add('modal-open'); + } if (window === '3'){ //Menu Service + document.getElementById('service-popup-content').innerHTML = content; + document.getElementById('service-popup').style.display = 'block'; + document.body.classList.add('modal-open'); } else { //Menu Donate document.getElementById('donation-popup-content').innerHTML = content; document.getElementById('donation-popup').style.display = 'block'; diff --git a/styles/btn.css b/styles/btn.css index 3c98a9e..1bb3500 100644 --- a/styles/btn.css +++ b/styles/btn.css @@ -67,6 +67,13 @@ a { clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); } +#service-btn { + cursor: pointer; + color: #fff; + background-color: #007bff; + position: absolute; +} + .ok-button { display: flex; justify-content: center; /* Centraliza os botões "OK" */ diff --git a/styles/styles.css b/styles/styles.css index 2414a0b..c63fbd5 100644 --- a/styles/styles.css +++ b/styles/styles.css @@ -213,6 +213,24 @@ input[type="radio"] + span + label { overflow-x: auto; } +#service-popup { + display: none; + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + padding: 20px; + background-color: #2b2b2b; + color: white; + border: 2px solid #007bff; + min-width: 60%; /* Ajustado para % da largura da janela principal */ + min-height: 90%; /* Ajustado para % da altura da janela principal */ + max-width: 60%; /* Ajustado para % da largura da janela principal */ + max-height: 90%; /* Ajustado para % da altura da janela principal */ + overflow-y: auto; + overflow-x: auto; +} + #donation-popup { display: none; position: fixed;