35769-vm/index.php
2025-11-15 23:20:04 +00:00

133 lines
6.7 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- SEO & Meta Tags -->
<title>Message NOW</title>
<meta name="description" content="A modern messaging app built with Flatlogic Generator.">
<meta name="keywords" content="messaging app, chat, real-time communication, direct message, group chat, secure messaging, instant messenger, flatlogic">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:title" content="Message NOW">
<meta property="og:description" content="A modern messaging app built with Flatlogic Generator.">
<meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:title" content="Message NOW">
<meta property="twitter:description" content="A modern messaging app built with Flatlogic Generator.">
<meta property="twitter:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
<!-- Favicon -->
<link rel="icon" href="https://flatlogic.com/favicon.ico" type="image/x-icon">
<!-- Styles -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<div class="chat-app">
<!-- Sidebar -->
<aside class="sidebar">
<div class="sidebar-header d-flex align-items-center">
<img src="https://i.pravatar.cc/150?u=me" alt="My Avatar" class="avatar me-3">
<div>
<h5 class="mb-0 fw-bold">You</h5>
<p class="text-muted mb-0 small">My status message...</p>
</div>
</div>
<div class="sidebar-search">
<input type="text" class="form-control rounded-pill" placeholder="Search or start new chat">
</div>
<div class="conversation-list">
<!-- Active Conversation -->
<div class="conversation-item active">
<img src="https://i.pravatar.cc/150?u=jane" alt="Jane Doe" class="avatar">
<div class="conversation-info flex-grow-1">
<div class="d-flex justify-content-between">
<span class="name">Jane Doe</span>
<span class="time small text-muted">10:42 AM</span>
</div>
<p class="last-message mb-0">Sounds good! See you then.</p>
</div>
</div>
<!-- Other Conversations -->
<div class="conversation-item">
<img src="https://i.pravatar.cc/150?u=john" alt="John Smith" class="avatar">
<div class="conversation-info flex-grow-1">
<div class="d-flex justify-content-between">
<span class="name">John Smith</span>
<span class="time small text-muted">Yesterday</span>
</div>
<p class="last-message mb-0">Can you send me the report?</p>
</div>
</div>
<div class="conversation-item">
<img src="https://i.pravatar.cc/150?u=group" alt="Project Team" class="avatar">
<div class="conversation-info flex-grow-1">
<div class="d-flex justify-content-between">
<span class="name">Project Team</span>
<span class="time small text-muted">3/15/25</span>
</div>
<p class="last-message mb-0"><strong>Alex:</strong> Don't forget the meeting...</p>
</div>
</div>
</div>
</aside>
<!-- Main Chat View -->
<main class="chat-view">
<!-- Chat Header -->
<header class="chat-header">
<img src="https://i.pravatar.cc/150?u=jane" alt="Jane Doe" class="avatar avatar-sm me-3">
<div>
<h5 class="mb-0 name">Jane Doe</h5>
<p class="mb-0 status text-success">Online</p>
</div>
<div class="ms-auto">
<button class="btn btn-light rounded-circle"><i class="bi bi-telephone"></i></button>
<button class="btn btn-light rounded-circle mx-2"><i class="bi bi-camera-video"></i></button>
<button class="btn btn-light rounded-circle"><i class="bi bi-three-dots-vertical"></i></button>
</div>
</header>
<!-- Chat Body -->
<div class="chat-body">
<div class="message received">
<div class="message-bubble">Hey! Are we still on for lunch tomorrow?</div>
<div class="message-time">10:40 AM</div>
</div>
<div class="message sent">
<div class="message-bubble">Hi! Yes, absolutely. I'm looking forward to it.</div>
<div class="message-time">10:41 AM</div>
</div>
<div class="message received">
<div class="message-bubble">Great! How about 1 PM at the usual place?</div>
<div class="message-time">10:41 AM</div>
</div>
<div class="message sent">
<div class="message-bubble">Sounds good! See you then.</div>
<div class="message-time">10:42 AM</div>
</div>
</div>
<!-- Chat Footer -->
<footer class="chat-footer">
<form id="chat-form" class="d-flex align-items-center">
<button class="btn btn-light rounded-circle me-3" type="button"><i class="bi bi-paperclip"></i></button>
<input type="text" id="message-input" class="form-control form-control-lg border-0" placeholder="Type a message..." autocomplete="off">
<button class="btn btn-primary rounded-circle ms-3" type="submit" style="width: 48px; height: 48px;"><i class="bi bi-send-fill"></i></button>
</form>
</footer>
</main>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>