435 lines
15 KiB
HTML
435 lines
15 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<!-- Security Headers -->
|
|
<title>About - Sky Art Shop</title>
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css"
|
|
/>
|
|
<link rel="stylesheet" href="/assets/css/theme-colors.css" />
|
|
<link rel="stylesheet" href="/assets/css/main.css?v=1768450104" />
|
|
<link rel="stylesheet" href="/assets/css/navbar.css?v=1768450104" />
|
|
<link rel="stylesheet" href="/assets/css/page-overrides.css?v=1768450104" />
|
|
<link rel="stylesheet" href="/assets/css/cart-wishlist.css" />
|
|
<link rel="stylesheet" href="/assets/css/shopping.css" />
|
|
<link rel="stylesheet" href="/assets/css/responsive.css" />
|
|
</head>
|
|
<body>
|
|
<script>
|
|
window.__bodyReady = true;
|
|
</script>
|
|
<!-- Modern Navigation -->
|
|
<div class="sticky-banner-wrapper">
|
|
<nav class="modern-navbar">
|
|
<div class="navbar-wrapper">
|
|
<div class="navbar-brand">
|
|
<a href="/home" class="brand-link">
|
|
<img
|
|
src="/uploads/cat-png-1767324141436-368259437.png"
|
|
alt="Sky Art Shop Logo"
|
|
class="brand-logo"
|
|
/>
|
|
<span class="brand-name">Sky' Art Shop</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="navbar-menu">
|
|
<ul class="nav-menu-list">
|
|
<li class="nav-item">
|
|
<a href="/home" class="nav-link">Home</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="/shop" class="nav-link">Shop</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="/portfolio" class="nav-link">Portfolio</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="/about" class="nav-link active">About</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="/blog" class="nav-link">Blog</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="/contact" class="nav-link">Contact</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="navbar-actions">
|
|
<div class="action-item wishlist-dropdown-wrapper">
|
|
<button
|
|
class="action-btn"
|
|
id="wishlistToggle"
|
|
aria-label="Wishlist"
|
|
>
|
|
<i class="bi bi-heart"></i>
|
|
<span class="action-badge" id="wishlistCount">0</span>
|
|
</button>
|
|
<div class="action-dropdown wishlist-dropdown" id="wishlistPanel">
|
|
<div class="dropdown-head">
|
|
<h3>My Wishlist</h3>
|
|
<button class="dropdown-close" id="wishlistClose">
|
|
<i class="bi bi-x-lg"></i>
|
|
</button>
|
|
</div>
|
|
<div class="dropdown-body" id="wishlistContent">
|
|
<p class="empty-state">Your wishlist is empty</p>
|
|
</div>
|
|
<div class="dropdown-foot">
|
|
<a href="/shop" class="btn-outline">Continue Shopping</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="action-item cart-dropdown-wrapper">
|
|
<button
|
|
class="action-btn"
|
|
id="cartToggle"
|
|
aria-label="Shopping Cart"
|
|
>
|
|
<i class="bi bi-cart3"></i>
|
|
<span class="action-badge" id="cartCount">0</span>
|
|
</button>
|
|
<div class="action-dropdown cart-dropdown" id="cartPanel">
|
|
<div class="dropdown-head">
|
|
<h3>Shopping Cart</h3>
|
|
<button class="dropdown-close" id="cartClose">
|
|
<i class="bi bi-x-lg"></i>
|
|
</button>
|
|
</div>
|
|
<div class="dropdown-body" id="cartContent">
|
|
<p class="empty-state">Your cart is empty</p>
|
|
</div>
|
|
<div class="dropdown-foot">
|
|
<a href="/shop" class="btn-outline">Continue Shopping</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<button
|
|
class="mobile-toggle"
|
|
id="mobileMenuToggle"
|
|
aria-label="Menu"
|
|
>
|
|
<span class="toggle-line"></span>
|
|
<span class="toggle-line"></span>
|
|
<span class="toggle-line"></span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mobile-menu" id="mobileMenu">
|
|
<div class="mobile-menu-header">
|
|
<span class="mobile-brand">Sky' Art Shop</span>
|
|
<button class="mobile-close" id="mobileMenuClose">
|
|
<i class="bi bi-x-lg"></i>
|
|
</button>
|
|
</div>
|
|
<ul class="mobile-menu-list">
|
|
<li><a href="/home" class="mobile-link">Home</a></li>
|
|
<li><a href="/shop" class="mobile-link">Shop</a></li>
|
|
<li><a href="/portfolio" class="mobile-link">Portfolio</a></li>
|
|
<li><a href="/about" class="mobile-link">About</a></li>
|
|
<li><a href="/blog" class="mobile-link">Blog</a></li>
|
|
<li><a href="/contact" class="mobile-link">Contact</a></li>
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
</div>
|
|
|
|
<section class="about-hero">
|
|
<div class="container">
|
|
<h1>About Sky Art Shop</h1>
|
|
<p class="hero-subtitle">Your creative journey starts here</p>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="about-content">
|
|
<div class="container">
|
|
<div class="about-layout">
|
|
<div class="about-main-content">
|
|
<div class="about-text" id="aboutContent">
|
|
<div style="text-align: center; padding: 40px">
|
|
<div
|
|
class="loading-spinner"
|
|
style="
|
|
border: 4px solid #f3f3f3;
|
|
border-top: 4px solid #667eea;
|
|
border-radius: 50%;
|
|
width: 50px;
|
|
height: 50px;
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto 20px;
|
|
"
|
|
></div>
|
|
<p>Loading content...</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Team Members Section -->
|
|
<section class="team-section" id="teamSection" style="display: none">
|
|
<div class="container">
|
|
<div class="team-header">
|
|
<h2 class="section-title">Meet Our Team</h2>
|
|
<p class="section-subtitle">
|
|
The talented people behind Sky Art Shop
|
|
</p>
|
|
</div>
|
|
<div class="team-grid" id="teamMembersGrid">
|
|
<div style="text-align: center; padding: 40px">
|
|
<div
|
|
class="loading-spinner"
|
|
style="
|
|
border: 4px solid #f3f3f3;
|
|
border-top: 4px solid #667eea;
|
|
border-radius: 50%;
|
|
width: 50px;
|
|
height: 50px;
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto 20px;
|
|
"
|
|
></div>
|
|
<p>Loading team...</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<footer class="footer">
|
|
<div class="container">
|
|
<div class="footer-grid">
|
|
<div class="footer-col">
|
|
<h3 class="footer-title">Sky Art Shop</h3>
|
|
<p class="footer-text">
|
|
Your destination for unique art pieces and creative supplies.
|
|
</p>
|
|
<div class="social-links">
|
|
<a href="#" class="social-link"><i class="bi bi-facebook"></i></a>
|
|
<a href="#" class="social-link"
|
|
><i class="bi bi-instagram"></i
|
|
></a>
|
|
<a href="#" class="social-link"><i class="bi bi-twitter"></i></a>
|
|
<a href="#" class="social-link"
|
|
><i class="bi bi-pinterest"></i
|
|
></a>
|
|
</div>
|
|
</div>
|
|
<div class="footer-col">
|
|
<h4 class="footer-heading">Shop</h4>
|
|
<ul class="footer-links">
|
|
<li><a href="/shop">All Products</a></li>
|
|
<li><a href="/shop?category=paintings">Paintings</a></li>
|
|
<li><a href="/shop?category=prints">Prints</a></li>
|
|
<li><a href="/shop?category=supplies">Art Supplies</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="footer-col">
|
|
<h4 class="footer-heading">About</h4>
|
|
<ul class="footer-links">
|
|
<li><a href="/about">Our Story</a></li>
|
|
<li><a href="/portfolio">Portfolio</a></li>
|
|
<li><a href="/blog">Blog</a></li>
|
|
<li><a href="/contact">Contact</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="footer-col">
|
|
<h4 class="footer-heading">Customer Service</h4>
|
|
<ul class="footer-links">
|
|
<li><a href="/shipping-info">Shipping Info</a></li>
|
|
<li><a href="/returns">Returns</a></li>
|
|
<li><a href="/faq">FAQ</a></li>
|
|
<li><a href="/privacy">Privacy Policy</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="footer-bottom">
|
|
<p>© 2025 Sky Art Shop. All rights reserved.</p>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- Core utilities and state management -->
|
|
<script src="/assets/js/api-cache.js"></script>
|
|
<script src="/assets/js/main.js"></script>
|
|
|
|
<!-- Shopping system (handles cart & wishlist) -->
|
|
<script src="/assets/js/shop-system.js"></script>
|
|
|
|
<!-- Page interactions -->
|
|
<script src="/assets/js/page-transitions.js?v=1766709739"></script>
|
|
<script src="/assets/js/back-button-control.js?v=1766723554"></script>
|
|
<script src="/assets/js/navigation.js"></script>
|
|
|
|
<!-- Page-specific content loading -->
|
|
<script>
|
|
// Load about page content from API
|
|
async function loadAboutContent() {
|
|
try {
|
|
const response = await fetch("/api/pages/about");
|
|
const data = await response.json();
|
|
|
|
if (data.success && data.page) {
|
|
const contentDiv = document.getElementById("aboutContent");
|
|
|
|
// Check if content is Quill Delta format (JSON)
|
|
if (data.page.content) {
|
|
try {
|
|
const delta = JSON.parse(data.page.content);
|
|
// Convert Delta to HTML
|
|
contentDiv.innerHTML = convertDeltaToHTML(delta);
|
|
} catch {
|
|
// If not JSON, treat as plain HTML
|
|
contentDiv.innerHTML = data.page.content;
|
|
}
|
|
} else {
|
|
contentDiv.innerHTML = "<p>Content not available.</p>";
|
|
}
|
|
|
|
// Update meta tags if available
|
|
if (data.page.metatitle) {
|
|
document.title = data.page.metatitle;
|
|
}
|
|
if (data.page.metadescription) {
|
|
const metaDesc = document.querySelector(
|
|
'meta[name="description"]'
|
|
);
|
|
if (metaDesc) {
|
|
metaDesc.content = data.page.metadescription;
|
|
}
|
|
}
|
|
} else {
|
|
document.getElementById("aboutContent").innerHTML =
|
|
"<p>Unable to load content.</p>";
|
|
}
|
|
} catch (error) {
|
|
console.error("Error loading about content:", error);
|
|
document.getElementById("aboutContent").innerHTML =
|
|
"<p>Error loading content.</p>";
|
|
}
|
|
}
|
|
|
|
// Convert Quill Delta to HTML
|
|
function convertDeltaToHTML(delta) {
|
|
if (!delta || !delta.ops) return "";
|
|
|
|
let html = "";
|
|
let currentBlock = "";
|
|
|
|
delta.ops.forEach((op) => {
|
|
if (typeof op.insert === "string") {
|
|
let text = op.insert;
|
|
|
|
// Apply text formatting
|
|
if (op.attributes) {
|
|
if (op.attributes.bold) text = `<strong>${text}</strong>`;
|
|
if (op.attributes.italic) text = `<em>${text}</em>`;
|
|
if (op.attributes.underline) text = `<u>${text}</u>`;
|
|
if (op.attributes.strike) text = `<s>${text}</s>`;
|
|
if (op.attributes.code) text = `<code>${text}</code>`;
|
|
if (op.attributes.link)
|
|
text = `<a href="${op.attributes.link}" target="_blank">${text}</a>`;
|
|
if (op.attributes.color)
|
|
text = `<span style="color: ${op.attributes.color}">${text}</span>`;
|
|
if (op.attributes.background)
|
|
text = `<span style="background-color: ${op.attributes.background}">${text}</span>`;
|
|
}
|
|
|
|
// Handle line breaks
|
|
const lines = text.split("\n");
|
|
lines.forEach((line, index) => {
|
|
currentBlock += line;
|
|
if (index < lines.length - 1) {
|
|
// New paragraph
|
|
if (currentBlock.trim()) {
|
|
html += `<p>${currentBlock}</p>`;
|
|
}
|
|
currentBlock = "";
|
|
}
|
|
});
|
|
}
|
|
});
|
|
|
|
// Add remaining content
|
|
if (currentBlock.trim()) {
|
|
html += `<p>${currentBlock}</p>`;
|
|
}
|
|
|
|
return html || "<p>Content not available.</p>";
|
|
}
|
|
|
|
// Load team members
|
|
async function loadTeamMembers() {
|
|
try {
|
|
const response = await fetch("/api/team-members");
|
|
const data = await response.json();
|
|
|
|
if (data.success && data.teamMembers && data.teamMembers.length > 0) {
|
|
displayTeamMembers(data.teamMembers);
|
|
document.getElementById("teamSection").style.display = "block";
|
|
}
|
|
} catch (error) {
|
|
console.error("Error loading team members:", error);
|
|
}
|
|
}
|
|
|
|
// Display team members
|
|
function displayTeamMembers(members) {
|
|
const grid = document.getElementById("teamMembersGrid");
|
|
|
|
grid.innerHTML = members
|
|
.map(
|
|
(member) => `
|
|
<div class="team-card">
|
|
<div class="team-image-wrapper">
|
|
<div class="team-image">
|
|
${
|
|
member.image_url
|
|
? `<img src="${member.image_url}" alt="${escapeHtml(
|
|
member.name
|
|
)}" />`
|
|
: `<i class="bi bi-person-circle"></i>`
|
|
}
|
|
</div>
|
|
</div>
|
|
<h3 class="team-name">${escapeHtml(member.name)}</h3>
|
|
<div class="team-position">${escapeHtml(member.position)}</div>
|
|
${
|
|
member.bio
|
|
? `<p class="team-bio">${escapeHtml(member.bio)}</p>`
|
|
: ""
|
|
}
|
|
</div>
|
|
`
|
|
)
|
|
.join("");
|
|
}
|
|
|
|
// Escape HTML to prevent XSS
|
|
function escapeHtml(text) {
|
|
if (!text) return "";
|
|
const div = document.createElement("div");
|
|
div.textContent = text;
|
|
return div.innerHTML;
|
|
}
|
|
|
|
// Load content when page loads
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
loadAboutContent();
|
|
loadTeamMembers();
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|