From cca4a02b8433fed9ef37919fdb00c81bb9f9ada1 Mon Sep 17 00:00:00 2001 From: Damian-I Date: Sat, 8 Mar 2025 03:10:51 +0000 Subject: [PATCH] Add notification and notes system with all existing alerts moved to it. --- index.html | 500 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 474 insertions(+), 26 deletions(-) diff --git a/index.html b/index.html index 8f1698d..acc1117 100644 --- a/index.html +++ b/index.html @@ -27,6 +27,201 @@ display: none; } + /* Notification System */ + #notification-container { + position: fixed; + top: 20px; + left: 50%; + transform: translateX(-50%); + width: 80%; + max-width: 600px; + z-index: 2000; + font-family: Arial, sans-serif; + pointer-events: none; + } + + .notification { + background-color: rgba(0, 0, 0, 0.8); + color: white; + padding: 15px 20px; + margin-bottom: 10px; + border-radius: 5px; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); + transition: all 0.3s ease; + opacity: 0; + transform: translateY(-20px); + pointer-events: auto; + position: relative; + overflow: hidden; + } + + .notification.show { + opacity: 1; + transform: translateY(0); + } + + .notification.info { + border-left: 4px solid #3498db; + } + + .notification.success { + border-left: 4px solid #2ecc71; + } + + .notification.warning { + border-left: 4px solid #f39c12; + } + + .notification.error { + border-left: 4px solid #e74c3c; + } + + .notification-title { + font-weight: bold; + margin-bottom: 5px; + font-size: 16px; + } + + .notification-message { + font-size: 14px; + line-height: 1.4; + } + + .notification-close { + position: absolute; + top: 10px; + right: 10px; + cursor: pointer; + font-size: 16px; + color: #aaa; + } + + .notification-close:hover { + color: white; + } + + .notification-progress { + position: absolute; + bottom: 0; + left: 0; + height: 3px; + background-color: rgba(255, 255, 255, 0.5); + width: 100%; + } + + /* Notes Panel */ + #notes-panel { + position: fixed; + bottom: 80px; + right: 20px; + width: 300px; + max-height: 400px; + background-color: rgba(0, 0, 0, 0.8); + color: white; + border-radius: 5px; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); + z-index: 1999; + font-family: Arial, sans-serif; + display: none; + overflow: hidden; + transition: all 0.3s ease; + } + + #notes-header { + background-color: #222; + padding: 10px 15px; + display: flex; + justify-content: space-between; + align-items: center; + border-bottom: 1px solid #444; + } + + #notes-title { + font-weight: bold; + font-size: 16px; + } + + #notes-close { + cursor: pointer; + font-size: 16px; + color: #aaa; + } + + #notes-close:hover { + color: white; + } + + #notes-content { + padding: 15px; + overflow-y: auto; + max-height: 350px; + } + + .note-item { + margin-bottom: 15px; + padding-bottom: 15px; + border-bottom: 1px solid #444; + } + + .note-item:last-child { + margin-bottom: 0; + padding-bottom: 0; + border-bottom: none; + } + + .note-title { + font-weight: bold; + margin-bottom: 5px; + font-size: 14px; + color: #3498db; + } + + .note-text { + font-size: 13px; + line-height: 1.4; + white-space: pre-wrap; + } + + #notes-toggle { + position: fixed; + bottom: 20px; + right: 20px; + width: 50px; + height: 50px; + background-color: #3498db; + color: white; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); + z-index: 1998; + font-size: 24px; + transition: all 0.3s ease; + } + + #notes-toggle:hover { + background-color: #2980b9; + transform: scale(1.1); + } + + #notes-count { + position: absolute; + top: -5px; + right: -5px; + background-color: #e74c3c; + color: white; + border-radius: 50%; + width: 20px; + height: 20px; + font-size: 12px; + display: flex; + justify-content: center; + align-items: center; + font-weight: bold; + } + #laptop-popup { display: none; position: fixed; @@ -121,6 +316,22 @@
Loading...
+ +
+ + +
+
+
Notes
+
×
+
+
+
+
+ 📝 +
0
+
+