From 2381ab1c27a4d1b657450dc227152bd510b7f4d5 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Wed, 19 Nov 2025 06:18:32 +0500 Subject: [PATCH] modified: main_dc/BB/bbvue/src/App.vue modified: main_dc/BB/bbvue/src/views/Login.vue css rule for center vertical and with login form --- main_dc/BB/bbvue/src/App.vue | 2 +- main_dc/BB/bbvue/src/views/Login.vue | 162 ++++++++++++++++++--------- 2 files changed, 109 insertions(+), 55 deletions(-) diff --git a/main_dc/BB/bbvue/src/App.vue b/main_dc/BB/bbvue/src/App.vue index cac64c6..98e57ae 100644 --- a/main_dc/BB/bbvue/src/App.vue +++ b/main_dc/BB/bbvue/src/App.vue @@ -269,7 +269,7 @@ body { /* Page Styles */ .page { - max-width: 800px; + width: 100%; margin: 0 auto; padding: 2rem; text-align: center; diff --git a/main_dc/BB/bbvue/src/views/Login.vue b/main_dc/BB/bbvue/src/views/Login.vue index 2da98c4..947bb37 100644 --- a/main_dc/BB/bbvue/src/views/Login.vue +++ b/main_dc/BB/bbvue/src/views/Login.vue @@ -1,35 +1,37 @@ @@ -48,7 +50,10 @@ export default { credentials: { email: '', password: '' - } + }, + hasInteracted: false, + isContentVisible: false, + autoShowTimeout: null } }, computed: { @@ -104,6 +109,31 @@ export default { document.body.appendChild(notification) + setTimeout(() => { + if (notification.parentNode) { + notification.parentNode.removeChild(notification) + } + }, 3000) + }, + showAlreadyLoggedInNotification() { + const notification = document.createElement('div') + notification.style.cssText = ` + position: fixed; + top: 20px; + right: 20px; + background: #ffd700; + color: #333; + padding: 15px 20px; + border-radius: 8px; + box-shadow: 0 4px 12px rgba(0,0,0,0.15); + z-index: 10000; + max-width: 300px; + font-family: Arial, sans-serif; + ` + notification.textContent = 'ℹ️ Вы уже авторизованы!' + + document.body.appendChild(notification) + setTimeout(() => { if (notification.parentNode) { notification.parentNode.removeChild(notification) @@ -132,43 +162,36 @@ export default { this.showContent() } }, 3000) - }, - showAlreadyLoggedInNotification() { - const notification = document.createElement('div') - notification.style.cssText = ` - position: fixed; - top: 20px; - right: 20px; - background: #ffd700; - color: #333; - padding: 15px 20px; - border-radius: 8px; - box-shadow: 0 4px 12px rgba(0,0,0,0.15); - z-index: 10000; - max-width: 300px; - font-family: Arial, sans-serif; - ` - notification.textContent = 'ℹ️ Вы уже авторизованы!' - - document.body.appendChild(notification) - - setTimeout(() => { - if (notification.parentNode) { - notification.parentNode.removeChild(notification) - } - }, 3000) } } \ No newline at end of file