314 lines
13 KiB
HTML
314 lines
13 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta
|
|
name="description"
|
|
content="Sky Art Shop - Scrapbooking, journaling, cardmaking, and collaging stationery."
|
|
/>
|
|
<title>Home - Sky Art Shop</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
<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/main.css" />
|
|
<link rel="stylesheet" href="/assets/css/navbar.css" />
|
|
<link rel="stylesheet" href="/assets/css/shopping.css" />
|
|
</head>
|
|
<body> <!-- Modern Navigation -->
|
|
<nav class="modern-navbar">
|
|
<div class="navbar-wrapper">
|
|
<div class="navbar-brand">
|
|
<a href="/home.html" class="brand-link">
|
|
<img src="/uploads/images/8ba675b9-c4e6-41e6-8f14-382b9ee1d019.jpg" 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.html" class="nav-link">Home</a></li>
|
|
<li class="nav-item"><a href="/shop.html" class="nav-link">Shop</a></li>
|
|
<li class="nav-item"><a href="/portfolio.html" class="nav-link">Portfolio</a></li>
|
|
<li class="nav-item"><a href="/about.html" class="nav-link">About</a></li>
|
|
<li class="nav-item"><a href="/blog.html" class="nav-link">Blog</a></li>
|
|
<li class="nav-item"><a href="/contact.html" 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.html" 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">
|
|
<div class="cart-summary">
|
|
<span class="summary-label">Subtotal:</span>
|
|
<span class="summary-value" id="cartSubtotal">$0.00</span>
|
|
</div>
|
|
<a href="/checkout.html" class="btn-primary-full">Proceed to Checkout</a>
|
|
<a href="/shop.html" class="btn-text">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.html" class="mobile-link">Home</a></li>
|
|
<li><a href="/shop.html" class="mobile-link">Shop</a></li>
|
|
<li><a href="/portfolio.html" class="mobile-link">Portfolio</a></li>
|
|
<li><a href="/about.html" class="mobile-link">About</a></li>
|
|
<li><a href="/blog.html" class="mobile-link">Blog</a></li>
|
|
<li><a href="/contact.html" class="mobile-link">Contact</a></li>
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
|
|
<!-- Hero Section -->
|
|
<section class="hero">
|
|
<div class="hero-content">
|
|
<h2>Welcome to Sky Art Shop</h2>
|
|
<p>Your destination for creative stationery and supplies</p>
|
|
<div class="hero-description">
|
|
<p>
|
|
Discover our curated collection of scrapbooking, journaling,
|
|
cardmaking, and collaging supplies. Express your creativity and
|
|
bring your artistic vision to life.
|
|
</p>
|
|
</div>
|
|
<a href="/shop.html" class="btn btn-primary">Shop Now</a>
|
|
</div>
|
|
<div class="hero-image">
|
|
<img
|
|
src="/assets/images/hero-image.jpg"
|
|
alt="Sky Art Shop"
|
|
loading="lazy"
|
|
onerror="this.style.display='none'"
|
|
/>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Inspiration Section -->
|
|
<section class="inspiration">
|
|
<div class="container">
|
|
<h2>Get Inspired</h2>
|
|
<div class="inspiration-content">
|
|
<div class="inspiration-text">
|
|
<p>
|
|
At Sky Art Shop, we believe in the power of creativity to
|
|
transform and inspire. Whether you're an experienced crafter or
|
|
just beginning your creative journey, we have everything you need
|
|
to bring your ideas to life.
|
|
</p>
|
|
<p>
|
|
Explore our collection of washi tapes, stickers, stamps, and more.
|
|
Each item is carefully selected to help you create something
|
|
beautiful and meaningful.
|
|
</p>
|
|
</div>
|
|
<div class="inspiration-image">
|
|
<img
|
|
src="/assets/images/inspiration.jpg"
|
|
alt="Creative Inspiration"
|
|
loading="lazy"
|
|
onerror="this.style.display='none'"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<a href="/portfolio.html" class="btn btn-secondary">View Portfolio</a>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Featured Products Section -->
|
|
<section class="collection">
|
|
<div class="container">
|
|
<h2>Featured Products</h2>
|
|
<p class="section-subtitle">Discover our most popular items</p>
|
|
<div class="products-grid" id="featuredProducts">
|
|
<div class="product-card">
|
|
<div class="product-image">
|
|
<img
|
|
src="/assets/images/placeholder.jpg"
|
|
alt="Product"
|
|
loading="lazy"
|
|
/>
|
|
</div>
|
|
<h3>Loading products...</h3>
|
|
</div>
|
|
</div>
|
|
<a href="/shop.html" class="btn btn-secondary">View All Products</a>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Footer -->
|
|
<footer class="footer">
|
|
<div class="container">
|
|
<div class="footer-content">
|
|
<div class="footer-brand">
|
|
<h2 id="footerSiteName">Sky Art Shop</h2>
|
|
<p>Follow Us</p>
|
|
<div class="social-links">
|
|
<a href="#instagram" aria-label="Instagram">
|
|
<svg
|
|
width="24"
|
|
height="24"
|
|
viewBox="0 0 24 24"
|
|
fill="currentColor"
|
|
>
|
|
<path
|
|
d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"
|
|
/>
|
|
</svg>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="footer-links">
|
|
<h3>Quick Links</h3>
|
|
<ul>
|
|
<li><a href="/shop.html">Shop</a></li>
|
|
<li><a href="/about.html">About</a></li>
|
|
<li><a href="/contact.html">Contact</a></li>
|
|
<li><a href="/admin/login.html">Admin</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="footer-bottom">
|
|
<p id="footerText">© 2025 by Sky Art Shop. All rights reserved.</p>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<script src="/assets/js/main.js"></script>
|
|
<script src="/assets/js/cart.js"></script>
|
|
<script>
|
|
// Load site settings
|
|
async function loadSiteSettings() {
|
|
try {
|
|
const response = await fetch("/api/settings");
|
|
if (response.ok) {
|
|
const data = await response.json();
|
|
if (data.settings) {
|
|
document.getElementById("siteName").textContent =
|
|
data.settings.sitename || "Sky Art Shop";
|
|
document.getElementById("footerSiteName").textContent =
|
|
data.settings.sitename || "Sky Art Shop";
|
|
document.getElementById("footerText").textContent =
|
|
data.settings.footertext ||
|
|
"© 2025 by Sky Art Shop. All rights reserved.";
|
|
}
|
|
}
|
|
} catch (error) {
|
|
console.log("Using default site settings");
|
|
}
|
|
}
|
|
|
|
// Load featured products
|
|
async function loadFeaturedProducts() {
|
|
try {
|
|
const response = await fetch("/api/products/featured?limit=4");
|
|
if (response.ok) {
|
|
const data = await response.json();
|
|
if (data.products && data.products.length > 0) {
|
|
const container = document.getElementById("featuredProducts");
|
|
container.innerHTML = data.products
|
|
.map(
|
|
(product) => `
|
|
<div class="product-card">
|
|
<a href="/product.html?id=${
|
|
product.id
|
|
}" class="product-link">
|
|
<div class="product-image">
|
|
<img src="${
|
|
product.imageurl ||
|
|
"/assets/images/placeholder.jpg"
|
|
}" alt="${
|
|
product.name
|
|
}" loading="lazy" />
|
|
</div>
|
|
<h3>${product.name}</h3>
|
|
<p class="price">$${parseFloat(
|
|
product.price
|
|
).toFixed(2)}</p>
|
|
</a>
|
|
<div style="display: flex; gap: 0.5rem; margin-top: 0.5rem;">
|
|
<button class="btn btn-small btn-icon" onclick="addToWishlist('${
|
|
product.id
|
|
}', '${product.name}', ${product.price}, '${
|
|
product.imageurl || ""
|
|
}')" aria-label="Add to wishlist">
|
|
<i class="bi bi-heart"></i>
|
|
</button>
|
|
<button class="btn btn-small btn-icon" onclick="addToCart('${
|
|
product.id
|
|
}', '${product.name}', ${product.price}, '${
|
|
product.imageurl || ""
|
|
}')" aria-label="Add to cart">
|
|
<i class="bi bi-cart-plus"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
`
|
|
)
|
|
.join("");
|
|
}
|
|
}
|
|
} catch (error) {
|
|
console.log("Could not load featured products");
|
|
}
|
|
}
|
|
|
|
// Initialize
|
|
loadSiteSettings();
|
|
loadFeaturedProducts();
|
|
</script>
|
|
<script src="/assets/js/shopping.js"></script>
|
|
</body>
|
|
</html>
|