diff --git a/icon-192.png b/icon-192.png new file mode 100644 index 0000000..1aa462a Binary files /dev/null and b/icon-192.png differ diff --git a/icon-512.png b/icon-512.png new file mode 100644 index 0000000..06df20e Binary files /dev/null and b/icon-512.png differ diff --git a/index.html b/index.html index dfe1f76..97d55cf 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,8 @@ - + + Pandora @@ -10,6 +11,7 @@ +
diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..0cde8f6 --- /dev/null +++ b/manifest.json @@ -0,0 +1,23 @@ +{ + "name": "PANDORA chat", + "short_name": "PANDORA", + "theme_color": "#ffffff", + "background_color": "#102457", + "display": "standalone", + "orientation": "any", + "scope": "./", + "start_url": "./", + "description": "Internet messaging", + "icons": [ + { + "src": "icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icon-512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} diff --git a/style.css b/style.css index f5f85e0..1c17b27 100644 --- a/style.css +++ b/style.css @@ -22,6 +22,24 @@ --high-box-shadow: 2px 7px 5px rgba(0, 0, 0, 0.3), 0px -4px 10px rgba(0, 0, 0, 0.3); } +body.light { + --bg-main: white; + --bg-secondary: #F0F0F0; + --sidebar-bg: white; + --chat-bg: white; + --border-color: rgba(255, 255, 255, 0.08); + --border-hover: rgba(255, 255, 255, 0.15); + --text-primary: black; + --text-secondary: black; + --text-muted: rgb(134, 134, 134); + --accent: black; --accent-gradient: white; --accent-hover: #4f46e5; --online-color: rgba(0, 0, 000, 0.6); + --bubble-incoming: #01abaa; + --bubble-outgoing: #016f6e; + --input-bg: white; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); + --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1); --glass-blur: blur(20px); + --high-box-shadow: 2px 7px 5px rgba(0, 0, 0, 0.3), 0px -4px 10px rgba(0, 0, 0, 0.3); +} + * { margin: 0; padding: 0; @@ -281,11 +299,16 @@ input:focus { border: 1px solid transparent; } -.chat-item:hover { - background: rgba(255, 255, 255, 0.04); - transform: scale(0.98) skewX(10deg); - filter: blur(.1px); - opacity: .6; +@media (hover: hover) { + .chat-item:hover { + background: rgba(255, 255, 255, 0.04); transform: scale(0.98) skewX(10deg); filter: blur(.1px); opacity: .6; + } +} + +@media (hover: none) { + .chat-item:active { + background: rgba(255, 255, 255, 0.04); transform: scale(0.98) skewX(10deg); filter: blur(.1px); opacity: .6; + } } .chat-item-info { @@ -695,15 +718,15 @@ input:focus { } .alternate-panel button, .alternate-panel input { - border: medium solid white; + border: medium solid var(--text-primary); border-radius: 100%; background-color: transparent; } .alternate-panel button:hover, .alternate-panel input:hover { - border-color: white; - background-color: white; - color: black; + border-color: var(--bg-primary); + background-color: var(--text-primary); + color: var(--bg-primary); } .chat-input-panel button { @@ -726,8 +749,8 @@ input:focus { #message-input { flex: 1; padding: 12px 18px; - background-color: white; - border: 1px solid var(--border-color); + background-color: var(--text-primary); + border: medium solid var(--border-color); color: var(--bg-main); font-size: 0.95rem; transition: all 0.2s ease; @@ -739,7 +762,6 @@ input:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.06); - box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1); } .send-btn { @@ -882,19 +904,6 @@ input:focus { } /* Modal Styling */ -.modal-overlay { - position: fixed; - top: 0; - left: 0; - width: 100vw; - height: 100vh; - background: rgba(0, 0, 0, 0.6); - backdrop-filter: blur(8px); - display: flex; - z-index: 100; - transition: all 0.3s ease; -} - .modal-content { width: 100%; background: var(--bg-main);