HackmanCMS/views/social.php
Bashy e52f90445b Redesign social scheduler as inline-edit card grid
- 3-col grid (col-xl-4 col-md-6) replacing left/right split layout
- First card is always the "new post" composer in edit state
- Clicking a post card (or its pencil icon) opens inline editing on that card
- Multiple cards can be in edit state simultaneously
- Autosave for existing posts (debounced 2s) with saving/saved/error indicator
- Post cards show: datetime + status (top left), action icons (top right),
  text body, image (centered, max-height = card width), platform badges
- Image max-height constrained to card width via JS after render
- Emoji picker moved to shared fixed floating panel
- Per-card error display; no global form state

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04 20:39:53 +03:00

44 lines
2 KiB
PHP

<?php
$page_title = 'Social';
$nav_active = 'social';
include ROOT . '/views/_header.php';
?>
<div class="d-flex align-items-center mb-4 gap-2">
<h2 class="h4 mb-0"><i class="bi bi-calendar-week me-2"></i>Social Scheduler</h2>
<div class="ms-auto btn-group btn-group-sm">
<button class="btn btn-outline-secondary active" id="socialFilterPending">Pending</button>
<button class="btn btn-outline-secondary" id="socialFilterAll">All</button>
</div>
<button class="btn btn-sm btn-outline-secondary" id="socialRefreshBtn" title="Refresh">
<i class="bi bi-arrow-clockwise"></i>
</button>
</div>
<div id="socialPage">
<div id="socialPostsGrid" class="row g-3">
<div class="col-12 text-center text-muted py-5 small">Loading…</div>
</div>
</div>
<!-- Global floating emoji picker -->
<div id="socialEmojiPanel" class="social-emoji-panel card shadow d-none">
<div class="card-body p-2 social-emoji-grid">
<div class="social-emoji-cat">Smileys</div>
<div>😀 😂 🥰 😍 🤩 😎 😭 😤 🤔 😴 🥳 🤗 😅 🫡 😇 🙃 😘 😣 😝 🥺 👀</div>
<div class="social-emoji-cat mt-1">Gestures</div>
<div>👍 👎 👏 🙌 🤝 ✌️ 👌 🤞 🫶 💪 🎉 🔥 ✨ ⭐ 💯 🙏 👋 🤷‍♀️</div>
<div class="social-emoji-cat mt-1">Hearts</div>
<div>❤️ 🧡 💛 💚 💙 💜 🖤 🤍 💔 💕 💞 💓 💗 💖 🫀 ♥️</div>
<div class="social-emoji-cat mt-1">Nature</div>
<div>🌟 🌈 🌸 🌺 🌻 🌙 ☀️ 🌊 🌿 🍀 🦋 🌍 🌱 🎄 🌴 🌵</div>
<div class="social-emoji-cat mt-1">Objects</div>
<div>💻 📱 📸 🎵 🎮 🎨 📚 🏆 🔑 💡 🔔 📢 🎯 📊 🚀 🎁</div>
<div class="social-emoji-cat mt-1">Symbols</div>
<div>✅ ❌ ⚡ 🔗 💬 📌 🔍 💰 ⏰ 📅 🗓️ ➡️ ⬆️ 🔄 💤 ❓</div>
</div>
</div>
<!-- Shared hidden file input for image uploads -->
<input type="file" id="socialImageInput" accept="image/jpeg,image/png,image/gif,image/webp" class="d-none">
<?php include ROOT . '/views/_footer.php'; ?>