From 18598f7de7a78ea6d9b1ad4184ca8d888b1c0286 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sat, 15 Nov 2025 23:20:04 +0000 Subject: [PATCH] Message NOW --- assets/css/custom.css | 160 +++++++++++++++++++++++++ assets/js/main.js | 29 +++++ index.php | 271 ++++++++++++++++++++---------------------- 3 files changed, 316 insertions(+), 144 deletions(-) create mode 100644 assets/css/custom.css create mode 100644 assets/js/main.js diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..fac9f56 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,160 @@ + +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); + +body { + font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + background-color: #f3f4f6; + overflow: hidden; +} + +.chat-app { + display: flex; + height: 100vh; +} + +.sidebar { + width: 320px; + flex-shrink: 0; + background-color: #ffffff; + border-right: 1px solid #e5e7eb; + display: flex; + flex-direction: column; +} + +.sidebar-header { + padding: 1.5rem; + border-bottom: 1px solid #e5e7eb; +} + +.sidebar-search { + padding: 1rem 1.5rem; + border-bottom: 1px solid #e5e7eb; +} + +.conversation-list { + flex-grow: 1; + overflow-y: auto; +} + +.conversation-item { + display: flex; + align-items: center; + padding: 1rem 1.5rem; + cursor: pointer; + border-bottom: 1px solid #e5e7eb; +} + +.conversation-item:hover { + background-color: #f9fafb; +} + +.conversation-item.active { + background-color: #eff6ff; + border-right: 3px solid #3b82f6; +} + +.avatar { + width: 48px; + height: 48px; + border-radius: 9999px; + object-fit: cover; + margin-right: 1rem; +} + +.avatar-sm { + width: 40px; + height: 40px; +} + +.conversation-info .name { + font-weight: 600; + color: #111827; +} + +.conversation-info .last-message { + font-size: 0.875rem; + color: #6b7280; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + max-width: 150px; +} + +.chat-view { + flex-grow: 1; + display: flex; + flex-direction: column; +} + +.chat-header { + display: flex; + align-items: center; + padding: 1rem 1.5rem; + background-color: #ffffff; + border-bottom: 1px solid #e5e7eb; +} + +.chat-header .name { + font-weight: 600; +} + +.chat-header .status { + font-size: 0.875rem; + color: #6b7280; +} + +.chat-body { + flex-grow: 1; + padding: 1.5rem; + overflow-y: auto; + display: flex; + flex-direction: column; +} + +.message { + display: flex; + margin-bottom: 1rem; + max-width: 75%; +} + +.message-bubble { + padding: 0.75rem 1rem; + border-radius: 0.75rem; + font-size: 0.9rem; + line-height: 1.5; +} + +.message.sent { + align-self: flex-end; + flex-direction: row-reverse; +} + +.message.sent .message-bubble { + background-color: #3b82f6; + color: #ffffff; + border-bottom-right-radius: 0.25rem; +} + +.message.received { + align-self: flex-start; +} + +.message.received .message-bubble { + background-color: #ffffff; + color: #111827; + border: 1px solid #e5e7eb; + border-bottom-left-radius: 0.25rem; +} + +.message-time { + font-size: 0.75rem; + color: #9ca3af; + align-self: flex-end; + margin: 0 0.5rem; +} + +.chat-footer { + padding: 1rem 1.5rem; + background-color: #ffffff; + border-top: 1px solid #e5e7eb; +} diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..11b0b00 --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1,29 @@ + +document.addEventListener('DOMContentLoaded', function() { + const chatForm = document.getElementById('chat-form'); + const messageInput = document.getElementById('message-input'); + + if (chatForm) { + chatForm.addEventListener('submit', function(e) { + e.preventDefault(); + const message = messageInput.value.trim(); + if (message) { + console.log('Sending message:', message); + // In a real app, you'd send this to the server. + // For this demo, we'll just clear the input. + messageInput.value = ''; + + // Optional: Add the message to the UI for instant feedback + const chatBody = document.querySelector('.chat-body'); + const messageElement = document.createElement('div'); + messageElement.classList.add('message', 'sent'); + messageElement.innerHTML = ` +
${message}
+
Just now
+ `; + chatBody.appendChild(messageElement); + chatBody.scrollTop = chatBody.scrollHeight; + } + }); + } +}); diff --git a/index.php b/index.php index 7205f3d..3b62c11 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,133 @@ - - + - - - New Style - - - - - - - - - - - - - - - - - - - + + + + + Message NOW + + + + + + + + + + + + + + + + + + + + + + -
-
-

Analyzing your requirements and generating your website…

-
- Loading… -
-

AI is collecting your requirements and applying the first changes.

-

This page will update automatically as the plan is implemented.

-

Runtime: PHP — UTC

+ +
+ + + + +
+ +
+ Jane Doe +
+
Jane Doe
+

Online

+
+
+ + + +
+
+ + +
+
+
Hey! Are we still on for lunch tomorrow?
+
10:40 AM
+
+
+
Hi! Yes, absolutely. I'm looking forward to it.
+
10:41 AM
+
+
+
Great! How about 1 PM at the usual place?
+
10:41 AM
+
+
+
Sounds good! See you then.
+
10:42 AM
+
+
+ + +
+
+ + + +
+
+
-
- + + + - + \ No newline at end of file