2026-01-18 02:22:05 -06:00
|
|
|
<!doctype html>
|
2025-12-14 01:54:40 -06:00
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
|
<title>Blog Management - Sky Art Shop</title>
|
|
|
|
|
<link
|
|
|
|
|
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"
|
|
|
|
|
rel="stylesheet"
|
|
|
|
|
/>
|
|
|
|
|
<link
|
|
|
|
|
rel="stylesheet"
|
|
|
|
|
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css"
|
|
|
|
|
/>
|
2025-12-24 00:13:23 -06:00
|
|
|
<!-- Quill Editor CSS -->
|
|
|
|
|
<link
|
|
|
|
|
href="https://cdn.jsdelivr.net/npm/quill@1.3.7/dist/quill.snow.css"
|
|
|
|
|
rel="stylesheet"
|
|
|
|
|
/>
|
2025-12-14 01:54:40 -06:00
|
|
|
<link rel="stylesheet" href="/admin/css/admin-style.css" />
|
2026-01-18 02:22:05 -06:00
|
|
|
<link rel="stylesheet" href="/admin/css/media-library.css" />
|
2025-12-14 01:54:40 -06:00
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div class="sidebar">
|
2026-01-18 02:22:05 -06:00
|
|
|
<div class="sidebar-brand">Sky Art Shop</div>
|
2025-12-14 01:54:40 -06:00
|
|
|
<ul class="sidebar-menu">
|
|
|
|
|
<li>
|
2026-01-01 22:24:30 -06:00
|
|
|
<a href="/admin/dashboard"
|
2025-12-14 01:54:40 -06:00
|
|
|
><i class="bi bi-speedometer2"></i> Dashboard</a
|
|
|
|
|
>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2026-01-01 22:24:30 -06:00
|
|
|
<a href="/admin/homepage"
|
2025-12-14 01:54:40 -06:00
|
|
|
><i class="bi bi-house"></i> Homepage Editor</a
|
|
|
|
|
>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2026-01-01 22:24:30 -06:00
|
|
|
<a href="/admin/products"><i class="bi bi-box"></i> Products</a>
|
2025-12-14 01:54:40 -06:00
|
|
|
</li>
|
|
|
|
|
<li>
|
2026-01-18 02:22:05 -06:00
|
|
|
<a href="/admin/portfolio"><i class="bi bi-easel"></i> Portfolio</a>
|
2025-12-14 01:54:40 -06:00
|
|
|
</li>
|
|
|
|
|
<li>
|
2026-01-01 22:24:30 -06:00
|
|
|
<a href="/admin/blog" class="active"
|
2025-12-14 01:54:40 -06:00
|
|
|
><i class="bi bi-newspaper"></i> Blog</a
|
|
|
|
|
>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2026-01-01 22:24:30 -06:00
|
|
|
<a href="/admin/pages"
|
2025-12-14 01:54:40 -06:00
|
|
|
><i class="bi bi-file-text"></i> Custom Pages</a
|
|
|
|
|
>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2026-01-01 22:24:30 -06:00
|
|
|
<a href="/admin/media-library"
|
2025-12-14 01:54:40 -06:00
|
|
|
><i class="bi bi-images"></i> Media Library</a
|
|
|
|
|
>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2026-01-01 22:24:30 -06:00
|
|
|
<a href="/admin/menu"><i class="bi bi-list"></i> Menu</a>
|
2025-12-14 01:54:40 -06:00
|
|
|
</li>
|
|
|
|
|
<li>
|
2026-01-01 22:24:30 -06:00
|
|
|
<a href="/admin/settings"><i class="bi bi-gear"></i> Settings</a>
|
2025-12-14 01:54:40 -06:00
|
|
|
</li>
|
|
|
|
|
<li>
|
2026-01-01 22:24:30 -06:00
|
|
|
<a href="/admin/users"><i class="bi bi-people"></i> Users</a>
|
2025-12-14 01:54:40 -06:00
|
|
|
</li>
|
2026-01-18 02:22:05 -06:00
|
|
|
<li>
|
|
|
|
|
<a href="/admin/customers"
|
|
|
|
|
><i class="bi bi-person-hearts"></i> Customers</a
|
|
|
|
|
>
|
|
|
|
|
</li>
|
2025-12-14 01:54:40 -06:00
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="main-content">
|
|
|
|
|
<div class="top-bar">
|
|
|
|
|
<div>
|
|
|
|
|
<h3>Blog Management</h3>
|
|
|
|
|
<p class="mb-0 text-muted">Create and manage blog posts</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<button class="btn-logout" onclick="logout()">
|
|
|
|
|
<i class="bi bi-box-arrow-right"></i> Logout
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="actions-bar">
|
|
|
|
|
<button class="btn btn-primary" onclick="showCreatePost()">
|
|
|
|
|
<i class="bi bi-plus-circle"></i> Create Blog Post
|
|
|
|
|
</button>
|
|
|
|
|
<div class="search-box">
|
|
|
|
|
<i class="bi bi-search"></i>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
placeholder="Search posts..."
|
|
|
|
|
id="searchInput"
|
|
|
|
|
oninput="filterPosts()"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
|
<table class="table table-hover">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>ID</th>
|
|
|
|
|
<th>Title</th>
|
|
|
|
|
<th>Slug</th>
|
|
|
|
|
<th>Excerpt</th>
|
|
|
|
|
<th>Status</th>
|
|
|
|
|
<th>Created</th>
|
|
|
|
|
<th>Actions</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody id="postsTableBody">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="7" class="text-center">
|
|
|
|
|
<div class="loading-spinner"></div>
|
|
|
|
|
Loading posts...
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="modal fade" id="postModal" tabindex="-1">
|
|
|
|
|
<div class="modal-dialog modal-xl">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h5 class="modal-title" id="modalTitle">Create Blog Post</h5>
|
2025-12-24 00:13:23 -06:00
|
|
|
<div class="d-flex gap-2 align-items-center">
|
|
|
|
|
<button
|
|
|
|
|
type="button"
|
|
|
|
|
class="btn btn-sm btn-primary"
|
|
|
|
|
id="btnExpandModal"
|
|
|
|
|
onclick="toggleModalSize()"
|
|
|
|
|
title="Expand/Collapse"
|
|
|
|
|
style="
|
|
|
|
|
padding: 0.375rem 0.75rem;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 5px;
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<i
|
|
|
|
|
class="bi bi-arrows-fullscreen"
|
|
|
|
|
id="expandIcon"
|
|
|
|
|
style="font-size: 16px"
|
|
|
|
|
></i>
|
|
|
|
|
<span style="font-size: 13px">Expand</span>
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
type="button"
|
|
|
|
|
class="btn-close"
|
|
|
|
|
data-bs-dismiss="modal"
|
|
|
|
|
></button>
|
|
|
|
|
</div>
|
2025-12-14 01:54:40 -06:00
|
|
|
</div>
|
2026-01-18 02:22:05 -06:00
|
|
|
<div class="modal-body" style="max-height: 75vh; overflow-y: auto">
|
2025-12-14 01:54:40 -06:00
|
|
|
<form id="postForm">
|
|
|
|
|
<input type="hidden" id="postId" />
|
|
|
|
|
|
2026-01-18 02:22:05 -06:00
|
|
|
<!-- Basic Info Section -->
|
|
|
|
|
<div class="blog-section">
|
|
|
|
|
<h6 class="blog-section-title">
|
|
|
|
|
<i class="bi bi-info-circle"></i> Basic Information
|
|
|
|
|
</h6>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-8 mb-3">
|
|
|
|
|
<label for="postTitle" class="form-label">Title *</label>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
class="form-control"
|
|
|
|
|
id="postTitle"
|
|
|
|
|
required
|
|
|
|
|
placeholder="Enter blog title"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-4 mb-3">
|
|
|
|
|
<label for="postSlug" class="form-label">Slug *</label>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
class="form-control"
|
|
|
|
|
id="postSlug"
|
|
|
|
|
required
|
|
|
|
|
placeholder="url-friendly-slug"
|
|
|
|
|
/>
|
|
|
|
|
<small class="text-muted">Auto-generated from title</small>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mb-3">
|
|
|
|
|
<label for="postExcerpt" class="form-label"
|
|
|
|
|
>Short Description / Excerpt</label
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
|
|
|
|
class="form-control"
|
|
|
|
|
id="postExcerpt"
|
|
|
|
|
rows="2"
|
|
|
|
|
placeholder="Brief summary for listings and previews"
|
|
|
|
|
></textarea>
|
2025-12-24 00:13:23 -06:00
|
|
|
</div>
|
2025-12-14 01:54:40 -06:00
|
|
|
</div>
|
|
|
|
|
|
2026-01-18 02:22:05 -06:00
|
|
|
<!-- Content Section -->
|
|
|
|
|
<div class="blog-section">
|
|
|
|
|
<h6 class="blog-section-title">
|
|
|
|
|
<i class="bi bi-file-text"></i> Content
|
|
|
|
|
</h6>
|
|
|
|
|
<div class="mb-3">
|
|
|
|
|
<div
|
|
|
|
|
id="postContentEditor"
|
|
|
|
|
style="
|
|
|
|
|
height: 350px;
|
|
|
|
|
background: white;
|
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<style>
|
|
|
|
|
#postContentEditor .ql-container {
|
|
|
|
|
height: calc(350px - 42px);
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
#postContentEditor .ql-editor {
|
|
|
|
|
min-height: 100%;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</div>
|
|
|
|
|
<input type="hidden" id="postContent" />
|
|
|
|
|
</div>
|
2025-12-14 01:54:40 -06:00
|
|
|
</div>
|
|
|
|
|
|
2026-01-18 02:22:05 -06:00
|
|
|
<!-- Media Section -->
|
|
|
|
|
<div class="blog-section">
|
|
|
|
|
<h6 class="blog-section-title">
|
|
|
|
|
<i class="bi bi-images"></i> Media
|
|
|
|
|
</h6>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<!-- Featured Image -->
|
|
|
|
|
<div class="col-md-6 mb-3">
|
|
|
|
|
<label class="form-label">Featured Image</label>
|
|
|
|
|
<input type="hidden" id="postFeaturedImage" />
|
|
|
|
|
<div
|
|
|
|
|
id="featuredImagePreview"
|
|
|
|
|
class="media-preview-box"
|
|
|
|
|
></div>
|
|
|
|
|
<button
|
|
|
|
|
type="button"
|
|
|
|
|
class="btn btn-outline-primary btn-sm mt-2"
|
|
|
|
|
onclick="openMediaLibraryForFeaturedImage()"
|
|
|
|
|
>
|
|
|
|
|
<i class="bi bi-image"></i> Select Featured Image
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- Gallery Images -->
|
|
|
|
|
<div class="col-md-6 mb-3">
|
|
|
|
|
<label class="form-label">Image Gallery</label>
|
|
|
|
|
<input type="hidden" id="postImages" />
|
|
|
|
|
<div
|
|
|
|
|
id="galleryImagesPreview"
|
|
|
|
|
class="gallery-preview-box"
|
|
|
|
|
></div>
|
|
|
|
|
<button
|
|
|
|
|
type="button"
|
|
|
|
|
class="btn btn-outline-primary btn-sm mt-2"
|
|
|
|
|
onclick="openMediaLibraryForGallery()"
|
|
|
|
|
>
|
|
|
|
|
<i class="bi bi-images"></i> Add Images to Gallery
|
|
|
|
|
</button>
|
|
|
|
|
<small class="text-muted d-block mt-1"
|
|
|
|
|
>Add multiple images for slideshow</small
|
|
|
|
|
>
|
|
|
|
|
</div>
|
2025-12-14 01:54:40 -06:00
|
|
|
</div>
|
2026-01-18 02:22:05 -06:00
|
|
|
<!-- Video -->
|
|
|
|
|
<div class="mb-3">
|
|
|
|
|
<label class="form-label">Video</label>
|
|
|
|
|
<input type="hidden" id="postVideoUrl" />
|
|
|
|
|
<div id="videoPreview" class="video-preview-box"></div>
|
|
|
|
|
<button
|
|
|
|
|
type="button"
|
|
|
|
|
class="btn btn-outline-primary btn-sm mt-2"
|
|
|
|
|
onclick="openMediaLibraryForVideo()"
|
|
|
|
|
>
|
|
|
|
|
<i class="bi bi-camera-video"></i> Select Video
|
|
|
|
|
</button>
|
|
|
|
|
<small class="text-muted d-block mt-1"
|
|
|
|
|
>Or paste a YouTube/Vimeo URL below</small
|
2025-12-14 01:54:40 -06:00
|
|
|
>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
2026-01-18 02:22:05 -06:00
|
|
|
class="form-control form-control-sm mt-2"
|
|
|
|
|
id="postExternalVideo"
|
|
|
|
|
placeholder="https://youtube.com/watch?v=..."
|
2025-12-14 01:54:40 -06:00
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-01-18 02:22:05 -06:00
|
|
|
<!-- Poll Section -->
|
|
|
|
|
<div class="blog-section">
|
|
|
|
|
<h6 class="blog-section-title">
|
|
|
|
|
<i class="bi bi-bar-chart"></i> Poll (Optional)
|
|
|
|
|
</h6>
|
|
|
|
|
<div class="form-check form-switch mb-3">
|
|
|
|
|
<input
|
|
|
|
|
class="form-check-input"
|
|
|
|
|
type="checkbox"
|
|
|
|
|
id="enablePoll"
|
|
|
|
|
onchange="togglePollSection()"
|
|
|
|
|
/>
|
|
|
|
|
<label class="form-check-label" for="enablePoll"
|
|
|
|
|
>Enable Poll</label
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="pollSection" style="display: none">
|
|
|
|
|
<div class="mb-3">
|
|
|
|
|
<label for="pollQuestion" class="form-label"
|
|
|
|
|
>Poll Question</label
|
|
|
|
|
>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
class="form-control"
|
|
|
|
|
id="pollQuestion"
|
|
|
|
|
placeholder="What's your favorite...?"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mb-3">
|
|
|
|
|
<label class="form-label">Poll Options</label>
|
|
|
|
|
<div id="pollOptionsContainer">
|
|
|
|
|
<div class="input-group mb-2 poll-option-row">
|
|
|
|
|
<span class="input-group-text">1</span>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
class="form-control poll-option-input"
|
|
|
|
|
placeholder="Option 1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-group mb-2 poll-option-row">
|
|
|
|
|
<span class="input-group-text">2</span>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
class="form-control poll-option-input"
|
|
|
|
|
placeholder="Option 2"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<button
|
|
|
|
|
type="button"
|
|
|
|
|
class="btn btn-outline-secondary btn-sm"
|
|
|
|
|
onclick="addPollOption()"
|
|
|
|
|
>
|
|
|
|
|
<i class="bi bi-plus"></i> Add Option
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- SEO Section -->
|
|
|
|
|
<div class="blog-section">
|
|
|
|
|
<h6 class="blog-section-title">
|
|
|
|
|
<i class="bi bi-search"></i> SEO Settings
|
|
|
|
|
</h6>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-6 mb-3">
|
|
|
|
|
<label for="postMetaTitle" class="form-label"
|
|
|
|
|
>Meta Title</label
|
|
|
|
|
>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
class="form-control"
|
|
|
|
|
id="postMetaTitle"
|
|
|
|
|
placeholder="SEO title for search engines"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-6 mb-3">
|
|
|
|
|
<label for="postMetaDescription" class="form-label"
|
|
|
|
|
>Meta Description</label
|
|
|
|
|
>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
class="form-control"
|
|
|
|
|
id="postMetaDescription"
|
|
|
|
|
placeholder="SEO description for search engines"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Publish Settings -->
|
|
|
|
|
<div
|
|
|
|
|
class="blog-section"
|
|
|
|
|
style="
|
|
|
|
|
background: #f0fdf4;
|
|
|
|
|
border: 2px solid #22c55e;
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
padding: 16px;
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<h6 class="blog-section-title" style="color: #16a34a">
|
|
|
|
|
<i class="bi bi-globe"></i> Publish Settings
|
|
|
|
|
</h6>
|
2025-12-14 01:54:40 -06:00
|
|
|
<div class="form-check form-switch">
|
|
|
|
|
<input
|
|
|
|
|
class="form-check-input"
|
|
|
|
|
type="checkbox"
|
|
|
|
|
id="postPublished"
|
2026-01-18 02:22:05 -06:00
|
|
|
checked
|
|
|
|
|
style="width: 3em; height: 1.5em"
|
2025-12-14 01:54:40 -06:00
|
|
|
/>
|
2026-01-18 02:22:05 -06:00
|
|
|
<label
|
|
|
|
|
class="form-check-label"
|
|
|
|
|
for="postPublished"
|
|
|
|
|
style="font-size: 1.1rem"
|
|
|
|
|
>
|
|
|
|
|
<strong>Published</strong>
|
|
|
|
|
<span style="color: #64748b">(visible on website)</span>
|
2025-12-14 01:54:40 -06:00
|
|
|
</label>
|
|
|
|
|
</div>
|
2026-01-18 02:22:05 -06:00
|
|
|
<p class="text-muted small mt-2 mb-0">
|
|
|
|
|
<i class="bi bi-info-circle"></i> Uncheck to save as draft
|
|
|
|
|
(won't appear on website)
|
|
|
|
|
</p>
|
2025-12-14 01:54:40 -06:00
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button
|
|
|
|
|
type="button"
|
|
|
|
|
class="btn btn-secondary"
|
|
|
|
|
data-bs-dismiss="modal"
|
|
|
|
|
>
|
|
|
|
|
Cancel
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary" onclick="savePost()">
|
|
|
|
|
<i class="bi bi-save"></i> Save Post
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-01-18 02:22:05 -06:00
|
|
|
<style>
|
|
|
|
|
.blog-section {
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
padding: 1.25rem;
|
|
|
|
|
margin-bottom: 1.25rem;
|
|
|
|
|
border: 1px solid #e2e8f0;
|
|
|
|
|
}
|
|
|
|
|
.blog-section-title {
|
|
|
|
|
color: #334155;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
.blog-section-title i {
|
|
|
|
|
color: #6366f1;
|
|
|
|
|
}
|
|
|
|
|
.media-preview-box,
|
|
|
|
|
.video-preview-box {
|
|
|
|
|
min-height: 100px;
|
|
|
|
|
border: 2px dashed #e2e8f0;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
background: #fff;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
.media-preview-box img {
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
max-height: 150px;
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
}
|
|
|
|
|
.gallery-preview-box {
|
|
|
|
|
min-height: 100px;
|
|
|
|
|
border: 2px dashed #e2e8f0;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
}
|
|
|
|
|
.gallery-preview-box .gallery-thumb {
|
|
|
|
|
width: 80px;
|
|
|
|
|
height: 80px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
.gallery-preview-box .gallery-thumb img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
.gallery-preview-box .gallery-thumb .remove-btn {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 2px;
|
|
|
|
|
right: 2px;
|
|
|
|
|
width: 20px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
background: rgba(239, 68, 68, 0.9);
|
|
|
|
|
border: none;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
color: white;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
.video-preview-box video {
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
max-height: 200px;
|
|
|
|
|
}
|
|
|
|
|
.video-preview-box .video-placeholder {
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
}
|
|
|
|
|
.video-preview-box .video-placeholder i {
|
|
|
|
|
font-size: 2rem;
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
2025-12-14 01:54:40 -06:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
2025-12-24 00:13:23 -06:00
|
|
|
<!-- Quill Editor JS -->
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/quill@1.3.7/dist/quill.min.js"></script>
|
2025-12-14 01:54:40 -06:00
|
|
|
<script src="/admin/js/auth.js"></script>
|
2026-01-18 02:22:05 -06:00
|
|
|
<script src="/admin/js/admin-utils.js"></script>
|
|
|
|
|
<script src="/admin/js/media-library.js?v=9.1"></script>
|
|
|
|
|
<script src="/admin/js/blog.js?v=9.1"></script>
|
2025-12-14 01:54:40 -06:00
|
|
|
</body>
|
|
|
|
|
</html>
|