Files
SkyArtShop/website/public/contact.html

899 lines
28 KiB
HTML
Raw Normal View History

2026-01-18 02:22:05 -06:00
<!doctype html>
<html lang="en">
2025-12-19 20:44:46 -06:00
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2026-01-18 02:22:05 -06:00
<meta
name="description"
content="Contact Sky Art Shop - We'd love to hear from you"
/>
2025-12-19 20:44:46 -06:00
<title>Contact Us - Sky Art Shop</title>
2026-01-19 01:17:43 -06:00
<link rel="icon" type="image/png" href="/favicon.png" />
2026-01-18 02:22:05 -06:00
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
2025-12-19 20:44:46 -06:00
<link
2026-01-18 02:22:05 -06:00
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap"
2025-12-19 20:44:46 -06:00
rel="stylesheet"
/>
2026-01-18 02:22:05 -06:00
<!-- Icons -->
2025-12-19 20:44:46 -06:00
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css"
/>
2026-01-18 02:22:05 -06:00
<!-- Modern Theme CSS -->
2026-01-20 20:29:33 -06:00
<link rel="stylesheet" href="/assets/css/modern-theme.css?v=fix35" />
2026-01-19 01:17:43 -06:00
<link
rel="stylesheet"
2026-01-20 20:29:33 -06:00
href="/assets/css/mobile-fixes.css?v=20260120fix2"
2026-01-19 01:17:43 -06:00
/>
2026-01-18 02:22:05 -06:00
2025-12-19 20:44:46 -06:00
<style>
2026-01-18 02:22:05 -06:00
.contact-hero {
background: linear-gradient(
135deg,
var(--primary-pink-light) 0%,
var(--primary-pink) 100%
);
2026-01-19 01:17:43 -06:00
padding: var(--spacing-lg) 0;
2025-12-19 20:44:46 -06:00
}
2026-01-18 02:22:05 -06:00
.contact-hero-content {
2026-01-19 01:17:43 -06:00
display: flex;
justify-content: center;
2026-01-18 02:22:05 -06:00
align-items: center;
2026-01-19 01:17:43 -06:00
gap: var(--spacing-xl);
max-width: 900px;
margin: 0 auto;
}
.contact-hero-text {
text-align: center;
flex: 1;
2026-01-18 02:22:05 -06:00
}
2025-12-19 20:44:46 -06:00
2026-01-18 02:22:05 -06:00
.contact-hero-text h1 {
font-family: var(--font-heading);
font-size: 3rem;
margin-bottom: var(--spacing-md);
}
2026-01-18 02:22:05 -06:00
.contact-hero-text p {
font-size: 1.2rem;
color: var(--text-secondary);
2026-01-19 01:17:43 -06:00
max-width: 450px;
margin: 0 auto var(--spacing-md);
}
.contact-hero-text .breadcrumb {
justify-content: center;
2026-01-18 02:22:05 -06:00
}
2025-12-19 20:44:46 -06:00
2026-01-18 02:22:05 -06:00
.contact-hero-image {
2026-01-19 01:17:43 -06:00
flex-shrink: 0;
2026-01-18 02:22:05 -06:00
}
2025-12-19 20:44:46 -06:00
2026-01-18 02:22:05 -06:00
.contact-hero-image img {
max-width: 100%;
border-radius: 0;
box-shadow: none;
}
.contact-methods {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--spacing-lg);
margin-bottom: var(--spacing-2xl);
}
2025-12-19 20:44:46 -06:00
2026-01-18 02:22:05 -06:00
.contact-method {
background: var(--bg-white);
padding: var(--spacing-xl);
border-radius: var(--radius-lg);
2025-12-19 20:44:46 -06:00
text-align: center;
2026-01-18 02:22:05 -06:00
box-shadow: var(--shadow-sm);
transition: var(--transition-smooth);
}
2026-01-18 02:22:05 -06:00
.contact-method:hover {
transform: translateY(-8px);
box-shadow: var(--shadow-lg);
}
.contact-method-icon {
width: 70px;
height: 70px;
margin: 0 auto var(--spacing-md);
background: var(--primary-pink-light);
border-radius: var(--radius-full);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.75rem;
color: var(--text-primary);
}
.contact-method h3 {
font-size: 1.1rem;
margin-bottom: var(--spacing-sm);
}
.contact-method p {
color: var(--text-secondary);
font-size: 0.95rem;
}
.contact-method a {
color: var(--text-primary);
text-decoration: none;
font-weight: 500;
}
.contact-method a:hover {
color: var(--primary-pink-dark);
}
.map-section {
height: 400px;
background: var(--bg-light);
border-radius: var(--radius-lg);
overflow: hidden;
margin-top: var(--spacing-2xl);
}
.map-section iframe {
width: 100%;
height: 100%;
border: none;
}
@media (max-width: 992px) {
.contact-hero-content {
2026-01-19 01:17:43 -06:00
flex-direction: column;
text-align: center;
}
.contact-hero-text {
2026-01-18 02:22:05 -06:00
text-align: center;
2025-12-24 00:13:23 -06:00
}
2026-01-18 02:22:05 -06:00
2026-01-19 01:17:43 -06:00
.contact-hero-text .breadcrumb {
justify-content: center !important;
text-align: center !important;
display: flex !important;
width: 100% !important;
}
2026-01-18 02:22:05 -06:00
.contact-methods {
grid-template-columns: 1fr;
2025-12-24 00:13:23 -06:00
}
2026-01-19 01:17:43 -06:00
/* Contact page mobile layout fixes */
.container {
max-width: 100% !important;
padding: 0 16px !important;
box-sizing: border-box !important;
overflow-x: hidden !important;
}
.contact-section {
display: block !important;
width: 100% !important;
max-width: 100% !important;
}
.contact-info,
.contact-form {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
margin-bottom: var(--spacing-lg) !important;
padding: var(--spacing-md) !important;
}
.contact-form input,
.contact-form textarea {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
}
.form-group {
width: 100% !important;
max-width: 100% !important;
}
.contact-item {
flex-wrap: wrap !important;
}
.map-section {
width: 100% !important;
max-width: 100% !important;
height: 300px !important;
}
.map-section iframe {
width: 100% !important;
max-width: 100% !important;
}
.contact-method {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
}
.contact-method a {
word-break: break-all !important;
}
2025-12-24 00:13:23 -06:00
}
</style>
2026-01-18 02:22:05 -06:00
</head>
<body>
<!-- Navigation -->
<header class="nav-wrapper">
<nav class="navbar">
<a href="/home" class="nav-brand">
<img
src="/uploads/cat-png-1767324141436-368259437.png"
alt="Sky Art Shop Logo"
/>
<span>Sky Art Shop</span>
</a>
2025-12-24 00:13:23 -06:00
2026-01-18 02:22:05 -06:00
<ul class="nav-menu">
<li><a href="/home" class="nav-link">Home</a></li>
<li><a href="/shop" class="nav-link">Shop</a></li>
<li><a href="/portfolio" class="nav-link">Portfolio</a></li>
<li><a href="/blog" class="nav-link">Blog</a></li>
<li><a href="/about" class="nav-link">About</a></li>
<li><a href="/contact" class="nav-link active">Contact</a></li>
</ul>
<div class="nav-actions">
<a href="/signin" class="nav-icon-btn" title="Sign In">
<i class="bi bi-person"></i>
</a>
<button class="nav-icon-btn wishlist-btn-nav" title="Wishlist">
<i class="bi bi-heart"></i>
<span class="badge wishlist-count" style="display: none">0</span>
</button>
<button class="nav-icon-btn cart-btn" title="Cart">
<i class="bi bi-bag"></i>
<span class="badge cart-count" style="display: none">0</span>
</button>
<button class="nav-mobile-toggle" aria-label="Toggle menu">
<span></span>
<span></span>
<span></span>
</button>
2025-12-19 20:44:46 -06:00
</div>
2026-01-18 02:22:05 -06:00
</nav>
</header>
2025-12-19 20:44:46 -06:00
2026-01-18 02:22:05 -06:00
<!-- Page Content -->
<main class="page-content">
<!-- Contact Hero -->
<section class="contact-hero">
<div class="container">
<div class="contact-hero-content">
<div class="contact-hero-text">
<h1 id="contactHeaderTitle">Get in Touch</h1>
<p id="contactHeaderSubtitle">
Have a question, suggestion, or just want to say hello? We'd
love to hear from you! Our team is here to help.
</p>
2026-01-19 01:17:43 -06:00
<div class="breadcrumb">
<a href="/home">Home</a> <span>/</span> <span>Contact</span>
</div>
2026-01-18 02:22:05 -06:00
</div>
2025-12-19 20:44:46 -06:00
<div
2026-01-18 02:22:05 -06:00
class="contact-hero-image"
style="box-shadow: none; border-radius: 0; overflow: visible"
2025-12-19 20:44:46 -06:00
>
2026-01-18 02:22:05 -06:00
<img
src="/uploads/get-in-touch-1768630843511-885498786.png"
alt="Contact Us"
2026-01-19 01:17:43 -06:00
style="width: 100%; height: auto; max-width: 200px"
2026-01-18 02:22:05 -06:00
/>
</div>
</div>
</div>
</section>
2025-12-19 20:44:46 -06:00
2026-01-18 02:22:05 -06:00
<!-- Contact Methods -->
<section class="section">
<div class="container">
<div class="contact-methods">
<div class="contact-method">
<div class="contact-method-icon">
<i class="bi bi-envelope"></i>
2025-12-19 20:44:46 -06:00
</div>
2026-01-18 02:22:05 -06:00
<h3>Email Us</h3>
<p>Send us a message anytime</p>
2026-01-19 01:17:43 -06:00
<a href="mailto:skyartshop12.11@gmail.com" id="contactEmailLink"
>skyartshop12.11@gmail.com</a
2026-01-18 02:22:05 -06:00
>
</div>
2026-01-18 02:22:05 -06:00
<div class="contact-method">
<div class="contact-method-icon">
<i class="bi bi-telephone"></i>
2025-12-19 20:44:46 -06:00
</div>
2026-01-18 02:22:05 -06:00
<h3>Call Us</h3>
<p id="contactBusinessHoursShort">Mon-Fri, 9am-5pm EST</p>
<a href="tel:+15551234567" id="contactPhoneLink"
2026-01-19 01:17:43 -06:00
>(501) 608-0409</a
2026-01-18 02:22:05 -06:00
>
</div>
<div class="contact-method">
<div class="contact-method-icon">
<i class="bi bi-geo-alt"></i>
2025-12-19 20:44:46 -06:00
</div>
2026-01-18 02:22:05 -06:00
<h3>Visit Us</h3>
<p id="contactAddressDisplay">
2026-01-19 01:17:43 -06:00
Belmopan, Cayo District<br />Artville, CA 90210
2026-01-18 02:22:05 -06:00
</p>
2025-12-19 20:44:46 -06:00
</div>
2026-01-18 02:22:05 -06:00
</div>
2025-12-19 20:44:46 -06:00
2026-01-18 02:22:05 -06:00
<!-- Contact Form -->
<div class="contact-section">
<div class="contact-info">
<h2>Send Us a Message</h2>
<p
2025-12-19 20:44:46 -06:00
style="
2026-01-18 02:22:05 -06:00
color: var(--text-secondary);
margin-bottom: var(--spacing-lg);
2025-12-19 20:44:46 -06:00
"
>
2026-01-18 02:22:05 -06:00
Fill out the form and we'll get back to you within 24 hours.
</p>
<div class="contact-item">
<div class="contact-icon">
<i class="bi bi-clock"></i>
</div>
<div>
<h4>Business Hours</h4>
<p id="contactBusinessHoursFull">
Monday - Friday: 9:00 AM - 5:00 PM EST<br />Saturday -
Sunday: Closed
</p>
</div>
</div>
<div class="contact-item">
<div class="contact-icon">
<i class="bi bi-chat-dots"></i>
</div>
<div>
<h4>Response Time</h4>
<p>
We typically respond within 24 hours during business days.
</p>
</div>
</div>
<div class="contact-item">
<div class="contact-icon">
<i class="bi bi-globe"></i>
</div>
<div>
<h4>Follow Us</h4>
<div
class="footer-social"
2026-01-19 01:17:43 -06:00
id="contactSocialLinks"
2026-01-18 02:22:05 -06:00
style="margin-top: var(--spacing-sm)"
>
<a
href="#"
class="social-link"
2026-01-19 01:17:43 -06:00
id="contactFacebook"
style="
background: var(--primary-pink-light);
display: none;
"
2026-01-18 02:22:05 -06:00
><i class="bi bi-facebook"></i
></a>
<a
href="#"
class="social-link"
2026-01-19 01:17:43 -06:00
id="contactInstagram"
style="
background: var(--primary-pink-light);
display: none;
"
2026-01-18 02:22:05 -06:00
><i class="bi bi-instagram"></i
></a>
<a
href="#"
class="social-link"
2026-01-19 01:17:43 -06:00
id="contactTwitter"
style="
background: var(--primary-pink-light);
display: none;
"
><i class="bi bi-twitter-x"></i
></a>
<a
href="#"
class="social-link"
id="contactYoutube"
style="
background: var(--primary-pink-light);
display: none;
"
><i class="bi bi-youtube"></i
></a>
<a
href="#"
class="social-link"
id="contactPinterest"
style="
background: var(--primary-pink-light);
display: none;
"
2026-01-18 02:22:05 -06:00
><i class="bi bi-pinterest"></i
></a>
2026-01-19 01:17:43 -06:00
<a
href="#"
class="social-link"
id="contactTiktok"
style="
background: var(--primary-pink-light);
display: none;
"
><i class="bi bi-tiktok"></i
></a>
<a
href="#"
class="social-link"
id="contactWhatsapp"
style="
background: var(--primary-pink-light);
display: none;
"
><i class="bi bi-whatsapp"></i
></a>
<a
href="#"
class="social-link"
id="contactLinkedin"
style="
background: var(--primary-pink-light);
display: none;
"
><i class="bi bi-linkedin"></i
></a>
2026-01-18 02:22:05 -06:00
</div>
</div>
</div>
2025-12-19 20:44:46 -06:00
</div>
2026-01-18 02:22:05 -06:00
<div class="contact-form">
<h2>Contact Form</h2>
<form id="contactForm">
<div class="form-group">
<label for="name">Your Name *</label>
<input
type="text"
id="name"
name="name"
required
placeholder="Enter your name"
/>
</div>
<div class="form-group">
<label for="email">Email Address *</label>
<input
type="email"
id="email"
name="email"
required
placeholder="Enter your email"
/>
</div>
<div class="form-group">
<label for="subject">Subject *</label>
<input
type="text"
id="subject"
name="subject"
required
placeholder="What is this about?"
/>
</div>
<div class="form-group">
<label for="message">Your Message *</label>
<textarea
id="message"
name="message"
required
placeholder="Type your message here..."
></textarea>
</div>
<button
type="submit"
class="btn btn-primary btn-lg"
style="width: 100%"
>
<i class="bi bi-send"></i> Send Message
</button>
</form>
2025-12-19 20:44:46 -06:00
</div>
2026-01-18 02:22:05 -06:00
</div>
2025-12-19 20:44:46 -06:00
2026-01-18 02:22:05 -06:00
<!-- Map -->
2026-01-19 01:17:43 -06:00
<div class="map-section" style="position: relative">
<!-- OpenStreetMap Embed - No API key required -->
<iframe
src="https://www.openstreetmap.org/export/embed.html?bbox=-88.85%2C17.20%2C-88.70%2C17.30&layer=mapnik&marker=17.25%2C-88.77"
width="100%"
height="100%"
style="border: 0"
allowfullscreen=""
loading="lazy"
title="Sky Art Shop Location - Belmopan, Belize"
>
</iframe>
<a
href="https://www.google.com/maps/search/Belmopan,+Belize"
target="_blank"
rel="noopener noreferrer"
style="
display: block;
text-align: center;
padding: 12px;
background: var(--primary-pink-light);
color: var(--text-primary);
text-decoration: none;
font-weight: 500;
"
>
<i class="bi bi-geo-alt"></i> Open in Google Maps
</a>
2026-01-18 02:22:05 -06:00
</div>
</div>
2026-01-18 02:22:05 -06:00
</section>
</main>
2026-01-18 02:22:05 -06:00
<!-- Footer -->
<footer class="footer">
2025-12-19 20:44:46 -06:00
<div class="container">
<div class="footer-grid">
2026-01-18 02:22:05 -06:00
<div class="footer-about">
<div class="footer-brand">
<img
src="/uploads/cat-png-1767324141436-368259437.png"
alt="Sky Art Shop"
/>
<span>Sky Art Shop</span>
</div>
<p>
Your one-stop shop for scrapbooking, journaling, cardmaking, and
collaging stationery. Quality products for all your creative
needs.
2025-12-19 20:44:46 -06:00
</p>
2026-01-19 01:17:43 -06:00
<div class="footer-social" id="footerSocialLinks">
<a
href="#"
class="social-link"
id="footerFacebook"
style="display: none"
><i class="bi bi-facebook"></i
></a>
<a
href="#"
class="social-link"
id="footerInstagram"
style="display: none"
2025-12-19 20:44:46 -06:00
><i class="bi bi-instagram"></i
></a>
2026-01-19 01:17:43 -06:00
<a
href="#"
class="social-link"
id="footerTwitter"
style="display: none"
><i class="bi bi-twitter-x"></i
></a>
<a
href="#"
class="social-link"
id="footerYoutube"
style="display: none"
><i class="bi bi-youtube"></i
></a>
<a
href="#"
class="social-link"
id="footerPinterest"
style="display: none"
2025-12-19 20:44:46 -06:00
><i class="bi bi-pinterest"></i
></a>
2026-01-19 01:17:43 -06:00
<a
href="#"
class="social-link"
id="footerTiktok"
style="display: none"
><i class="bi bi-tiktok"></i
></a>
<a
href="#"
class="social-link"
id="footerWhatsapp"
style="display: none"
><i class="bi bi-whatsapp"></i
></a>
<a
href="#"
class="social-link"
id="footerLinkedin"
style="display: none"
><i class="bi bi-linkedin"></i
></a>
</div>
2025-12-19 20:44:46 -06:00
</div>
2026-01-18 02:22:05 -06:00
<div class="footer-column">
<h4>Quick Links</h4>
2025-12-19 20:44:46 -06:00
<ul class="footer-links">
2026-01-18 02:22:05 -06:00
<li><a href="/home">Home</a></li>
<li><a href="/shop">Shop</a></li>
2026-01-01 22:24:30 -06:00
<li><a href="/portfolio">Portfolio</a></li>
<li><a href="/blog">Blog</a></li>
2026-01-18 02:22:05 -06:00
<li><a href="/about">About Us</a></li>
2026-01-01 22:24:30 -06:00
<li><a href="/contact">Contact</a></li>
2025-12-19 20:44:46 -06:00
</ul>
</div>
2026-01-18 02:22:05 -06:00
<div class="footer-column">
<h4>Customer Service</h4>
2025-12-19 20:44:46 -06:00
<ul class="footer-links">
2026-01-01 22:24:30 -06:00
<li><a href="/faq">FAQ</a></li>
2026-01-18 02:22:05 -06:00
<li><a href="/shipping-info">Shipping Info</a></li>
<li><a href="/returns">Returns & Refunds</a></li>
2026-01-01 22:24:30 -06:00
<li><a href="/privacy">Privacy Policy</a></li>
2025-12-19 20:44:46 -06:00
</ul>
</div>
2026-01-18 02:22:05 -06:00
<div class="footer-column">
<h4>Contact Us</h4>
<ul class="footer-links">
2026-01-19 01:17:43 -06:00
<li><i class="bi bi-envelope"></i> skyartshop12.11@gmail.com</li>
<li><i class="bi bi-telephone"></i> (501) 608-0409</li>
<li><i class="bi bi-geo-alt"></i> Belmopan, Cayo District</li>
2026-01-18 02:22:05 -06:00
</ul>
</div>
2025-12-19 20:44:46 -06:00
</div>
2026-01-18 02:22:05 -06:00
2025-12-19 20:44:46 -06:00
<div class="footer-bottom">
2026-01-20 20:29:33 -06:00
<p>&copy; 2026 PromptTech-Solution. Designed and Developed by: PromptTech-Solution</p>
2026-01-18 02:22:05 -06:00
<p>
Made with
<i class="bi bi-heart-fill" style="color: var(--primary-pink)"></i>
for creative souls
</p>
</div>
2025-12-19 20:44:46 -06:00
</div>
</footer>
2026-01-18 02:22:05 -06:00
<!-- Cart Drawer -->
<div class="cart-overlay"></div>
<div class="cart-drawer">
<div class="cart-header">
<h3>Shopping Cart</h3>
<button class="cart-close"><i class="bi bi-x"></i></button>
</div>
<div class="cart-items"></div>
<div class="cart-footer">
<div class="cart-total">
<span>Total:</span>
<span class="cart-total-amount">$0.00</span>
</div>
<a href="/checkout" class="btn btn-primary cart-checkout-btn"
>Checkout</a
>
</div>
</div>
2025-12-19 20:44:46 -06:00
2026-01-18 02:22:05 -06:00
<!-- Wishlist Drawer -->
<div class="wishlist-overlay"></div>
<div class="wishlist-drawer">
<div class="wishlist-header">
<h3><i class="bi bi-heart"></i> My Wishlist</h3>
<button class="wishlist-close"><i class="bi bi-x"></i></button>
</div>
<div class="wishlist-items"></div>
<div class="wishlist-footer">
<a href="/shop" class="btn btn-outline">Continue Shopping</a>
</div>
</div>
2025-12-24 00:13:23 -06:00
2026-01-18 02:22:05 -06:00
<!-- Scripts -->
2026-01-19 01:17:43 -06:00
<script src="/assets/js/modern-theme.js?v=20260118g"></script>
2026-01-18 02:22:05 -06:00
<script src="/assets/js/customer-auth.js"></script>
<script>
// Load contact page data from API
async function loadContactPageData() {
2025-12-24 00:13:23 -06:00
try {
const response = await fetch("/api/pages/contact");
const data = await response.json();
2026-01-18 02:22:05 -06:00
if (data.success && data.page && data.page.pagedata) {
const pagedata =
typeof data.page.pagedata === "string"
? JSON.parse(data.page.pagedata)
: data.page.pagedata;
// Update header
if (pagedata.header) {
if (pagedata.header.title) {
document.getElementById("contactHeaderTitle").textContent =
pagedata.header.title;
}
if (pagedata.header.subtitle) {
document.getElementById("contactHeaderSubtitle").textContent =
pagedata.header.subtitle;
}
}
2025-12-24 00:13:23 -06:00
2026-01-18 02:22:05 -06:00
// Update email
if (pagedata.email) {
const emailLink = document.getElementById("contactEmailLink");
emailLink.href = "mailto:" + pagedata.email;
emailLink.textContent = pagedata.email;
2025-12-24 00:13:23 -06:00
}
2026-01-18 02:22:05 -06:00
// Update phone
if (pagedata.phone) {
const phoneLink = document.getElementById("contactPhoneLink");
const phoneClean = pagedata.phone.replace(/[^0-9+]/g, "");
phoneLink.href = "tel:" + phoneClean;
phoneLink.textContent = pagedata.phone;
}
// Update address
if (pagedata.address) {
document.getElementById("contactAddressDisplay").innerHTML =
pagedata.address.replace(/\n/g, "<br>");
}
// Update business hours
if (pagedata.businessHours && pagedata.businessHours.length > 0) {
// Short format for card
const firstHour = pagedata.businessHours[0];
if (firstHour) {
document.getElementById(
"contactBusinessHoursShort",
).textContent = firstHour.day + ", " + firstHour.hours;
2025-12-24 00:13:23 -06:00
}
2026-01-18 02:22:05 -06:00
// Full format for sidebar
const hoursHtml = pagedata.businessHours
.map((h) => h.day + ": " + h.hours)
.join("<br>");
document.getElementById("contactBusinessHoursFull").innerHTML =
hoursHtml;
2025-12-24 00:13:23 -06:00
}
}
} catch (error) {
2026-01-18 02:22:05 -06:00
console.log("Using default contact info:", error);
2025-12-24 00:13:23 -06:00
}
}
2026-01-19 01:17:43 -06:00
// Load social links for the "Follow Us" section
async function loadContactSocialLinks() {
try {
const response = await fetch("/api/settings");
if (!response.ok) return;
const settings = await response.json();
// Map of social platform to element ID and URL format
const socialMap = {
socialFacebook: { id: "contactFacebook", url: (v) => v },
socialInstagram: { id: "contactInstagram", url: (v) => v },
socialTwitter: { id: "contactTwitter", url: (v) => v },
socialYoutube: { id: "contactYoutube", url: (v) => v },
socialPinterest: { id: "contactPinterest", url: (v) => v },
socialTiktok: { id: "contactTiktok", url: (v) => v },
socialWhatsapp: {
id: "contactWhatsapp",
url: (v) =>
v.startsWith("http")
? v
: `https://wa.me/${v.replace(/[^0-9]/g, "")}`,
},
socialLinkedin: { id: "contactLinkedin", url: (v) => v },
};
for (const [key, config] of Object.entries(socialMap)) {
const value = settings[key];
const el = document.getElementById(config.id);
if (el && value && value.trim()) {
el.href = config.url(value.trim());
el.target = "_blank";
el.rel = "noopener noreferrer";
el.style.display = "";
}
}
} catch (error) {
console.log("Could not load contact social links:", error);
}
}
2026-01-18 02:22:05 -06:00
// Load page data on DOMContentLoaded
document.addEventListener("DOMContentLoaded", () => {
loadContactPageData();
2026-01-19 01:17:43 -06:00
loadContactSocialLinks();
2026-01-18 02:22:05 -06:00
});
document
.getElementById("contactForm")
2026-01-20 20:29:33 -06:00
.addEventListener("submit", async function (e) {
2026-01-18 02:22:05 -06:00
e.preventDefault();
2026-01-20 20:29:33 -06:00
const form = this;
const submitBtn = form.querySelector('button[type="submit"]');
const originalBtnText = submitBtn.innerHTML;
2026-01-18 02:22:05 -06:00
2026-01-20 20:29:33 -06:00
// Get form data
const name = document.getElementById("name").value.trim();
const email = document.getElementById("email").value.trim();
const subject = document.getElementById("subject").value.trim();
const message = document.getElementById("message").value.trim();
// Validation
if (!name || !email || !subject || !message) {
SkyArtShop.showNotification("Please fill in all fields.", "error");
return;
}
// Disable button and show loading
submitBtn.disabled = true;
submitBtn.innerHTML =
'<i class="bi bi-hourglass-split"></i> Sending...';
try {
const response = await fetch("/api/contact", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ name, email, subject, message }),
});
const data = await response.json();
if (data.success) {
SkyArtShop.showNotification(
data.message ||
"Message sent successfully! We'll get back to you soon.",
"success",
);
form.reset();
} else {
SkyArtShop.showNotification(
data.message || "Failed to send message. Please try again.",
"error",
);
}
} catch (error) {
console.error("Contact form error:", error);
SkyArtShop.showNotification(
"Failed to send message. Please try again later.",
"error",
);
} finally {
submitBtn.disabled = false;
submitBtn.innerHTML = originalBtnText;
}
2026-01-18 02:22:05 -06:00
});
2025-12-19 20:44:46 -06:00
</script>
2026-01-18 02:22:05 -06:00
<script src="/assets/js/accessibility.js"></script>
2025-12-19 20:44:46 -06:00
</body>
</html>