Faith My Life

Turning FML into Faith. Wear your faith boldly.

Daily Bread

"For I know the plans I have for you, declares the Lord, plans to prosper you and not to harm you, plans to give you hope and a future." — Jeremiah 29:11

Daily Login Points: 0 | Earn points for free FML gear!

Shop Faith My Life Merch

Your Cart

Total: $0.00

Checkout - Create Account & Pay

Please create an account and verify your email to proceed.

After verification email and successful payment, Stripe webhook redirects to /dashboard with order status.

// Product Data (using generated images) const products = [ { id: 1, name: "Faith My Life Old English Hat", category: "hats", price: 24.99, img: "product-mockup-2.jpg", desc: "Premium black baseball hat with elegant Old English 'Faith My Life' embroidery. Perfect for everyday faith.", images: ["product-mockup-2.jpg"] }, { id: 2, name: "FML Bold White Tee", category: "shirts", price: 29.99, img: "product-mockup-3.jpg", desc: "Classic white t-shirt featuring bold FML and Faith My Life text with cross. Soft cotton.", images: ["product-mockup-3.jpg"] }, { id: 3, name: "Cursive Faith My Life Mug", category: "mugs", price: 16.99, img: "product-mockup-4.jpg", desc: "Ceramic mug with elegant cursive 'Faith My Life' script. Start your day with faith.", images: ["product-mockup-4.jpg"] }, { id: 4, name: "Faith My Life Flag", category: "flags", price: 19.99, img: "product-mockup-5.jpg", desc: "Durable fabric flag with Times Roman 'Faith My Life'. Display your faith proudly.", images: ["product-mockup-5.jpg"] }, { id: 5, name: "Navy FML Hoodie", category: "sweaters", price: 49.99, img: "product-mockup-6.jpg", desc: "Cozy navy hoodie with bold gold FML and cursive Faith My Life. Warmth and faith.", images: ["product-mockup-6.jpg"] }, { id: 6, name: "faithmylife.com Gray Hat", category: "hats", price: 22.99, img: "product-mockup-7.jpg", desc: "Gray hat with clean Times Roman faithmylife.com embroidery.", images: ["product-mockup-7.jpg"] }, { id: 7, name: "Old English Black Tee", category: "shirts", price: 31.99, img: "product-mockup-8.jpg", desc: "Black t-shirt with elegant Old English 'Faith My Life' in white.", images: ["product-mockup-8.jpg"] }, { id: 8, name: "Bold FML Mug", category: "mugs", price: 15.99, img: "product-mockup-9.jpg", desc: "White mug with bold FML and cross. Simple and strong statement.", images: ["product-mockup-9.jpg"] }, // Add more to reach ~25 for pagination demo { id: 9, name: "Faith My Life Cross Hat", category: "hats", price: 26.99, img: "imagine_images/6fd84863-dbab-4f72-ad1b-1f8437ccc051.jpg", desc: "Another variation of the classic hat.", images: [] }, { id: 10, name: "Cursive FML Shirt", category: "shirts", price: 28.99, img: "imagine_images/949faf39-6ec4-4272-8502-0ea033b460f0.jpg", desc: "Soft shirt with cursive Faith My Life.", images: [] }, { id: 11, name: "Gold Letter Hoodie", category: "sweaters", price: 54.99, img: "imagine_images/a5eda548-ca3b-42f9-a06f-42c2459042ef.jpg", desc: "Premium hoodie design.", images: [] }, { id: 12, name: "Script Mug Set", category: "mugs", price: 18.99, img: "imagine_images/9555ebdf-9116-4fb3-832b-10b9c6c20c90.jpg", desc: "Elegant script design.", images: [] }, { id: 13, name: "Banner Flag", category: "flags", price: 21.99, img: "imagine_images/d566639a-c4a0-4f0d-a050-c11677a22a42.jpg", desc: "Large display flag.", images: [] }, { id: 14, name: "White Script Hat", category: "hats", price: 23.99, img: "imagine_images/0e5c9fb0-13e3-429b-83fa-bc85b794b00d.jpg", desc: "Clean white text variation.", images: [] }, { id: 15, name: "Bold Cross Tee", category: "shirts", price: 30.99, img: "imagine_images/64056503-274c-48e7-bc06-1053b4ad5910.jpg", desc: "Bold statement tee.", images: [] }, { id: 16, name: "Navy Script Sweater", category: "sweaters", price: 52.99, img: "imagine_images/a5eda548-ca3b-42f9-a06f-42c2459042ef.jpg", desc: "Cozy and stylish.", images: [] }, { id: 17, name: "Cross Mug", category: "mugs", price: 14.99, img: "imagine_images/2d9a09b1-c8a9-4b2a-bfe0-3161b85355cd.jpg", desc: "Simple cross design.", images: [] }, { id: 18, name: "FML Pride Flag", category: "flags", price: 19.99, img: "imagine_images/d566639a-c4a0-4f0d-a050-c11677a22a42.jpg", desc: "Show your faith.", images: [] }, { id: 19, name: "Classic Old English Cap", category: "hats", price: 25.99, img: "imagine_images/6fd84863-dbab-4f72-ad1b-1f8437ccc051.jpg", desc: "Timeless design.", images: [] }, { id: 20, name: "Faith Script Shirt", category: "shirts", price: 27.99, img: "imagine_images/949faf39-6ec4-4272-8502-0ea033b460f0.jpg", desc: "Elegant script.", images: [] }, { id: 21, name: "Gold FML Hoodie", category: "sweaters", price: 49.99, img: "imagine_images/a5eda548-ca3b-42f9-a06f-42c2459042ef.jpg", desc: "Bold gold letters.", images: [] }, { id: 22, name: "Cursive Cross Mug", category: "mugs", price: 16.99, img: "imagine_images/9555ebdf-9116-4fb3-832b-10b9c6c20c90.jpg", desc: "Beautiful script with cross.", images: [] }, { id: 23, name: "Times Roman Flag", category: "flags", price: 20.99, img: "imagine_images/d566639a-c4a0-4f0d-a050-c11677a22a42.jpg", desc: "Classic font flag.", images: [] }, { id: 24, name: "Embroidered Hat", category: "hats", price: 24.99, img: "imagine_images/0e5c9fb0-13e3-429b-83fa-bc85b794b00d.jpg", desc: "Premium embroidery.", images: [] }, { id: 25, name: "Black FML Tee", category: "shirts", price: 29.99, img: "imagine_images/64056503-274c-48e7-bc06-1053b4ad5910.jpg", desc: "Everyday black tee.", images: [] } ]; let currentCategory = 'all'; let currentPage = 1; const perPage = 10; let cart = JSON.parse(localStorage.getItem('fml-cart') || '[]'); let points = parseInt(localStorage.getItem('fml-points') || '0'); let currentProduct = null; document.getElementById('points').textContent = points; function renderProducts() { const filtered = currentCategory === 'all' ? products : products.filter(p => p.category === currentCategory); const totalPages = Math.ceil(filtered.length / perPage); const start = (currentPage - 1) * perPage; const pageItems = filtered.slice(start, start + perPage); const grid = document.getElementById('products'); grid.innerHTML = pageItems.map(p => `
${p.name}

${p.name}

$${p.price.toFixed(2)}

`).join(''); // Pagination const pag = document.getElementById('pagination'); pag.innerHTML = ''; for (let i = 1; i <= totalPages; i++) { const btn = document.createElement('button'); btn.className = 'page-btn' + (i === currentPage ? ' active' : ''); btn.textContent = i; btn.onclick = () => { currentPage = i; renderProducts(); }; pag.appendChild(btn); } } document.querySelectorAll('.filter-btn').forEach(btn => { btn.onclick = () => { document.querySelectorAll('.filter-btn').forEach(b => b.classList.remove('active')); btn.classList.add('active'); currentCategory = btn.dataset.cat; currentPage = 1; renderProducts(); }; }); function openModal(id) { currentProduct = products.find(p => p.id === id); document.getElementById('modal-title').textContent = currentProduct.name; document.getElementById('modal-desc').textContent = currentProduct.desc; document.getElementById('modal-price').textContent = '$' + currentProduct.price.toFixed(2); document.getElementById('modal-main-img').src = currentProduct.img; const thumbs = document.getElementById('modal-thumbs'); thumbs.innerHTML = (currentProduct.images.length ? currentProduct.images : [currentProduct.img]).map(img => ``).join(''); document.getElementById('product-modal').style.display = 'flex'; } function closeModal() { document.getElementById('product-modal').style.display = 'none'; } function addToCartFromModal() { if (currentProduct) { cart.push({...currentProduct, qty: 1}); localStorage.setItem('fml-cart', JSON.stringify(cart)); updateCartUI(); closeModal(); alert('Added to cart!'); } } function updateCartUI() { document.getElementById('cart-count').textContent = cart.length; const itemsDiv = document.getElementById('cart-items'); itemsDiv.innerHTML = cart.map((item, i) => `
${item.name}
$${item.price.toFixed(2)}
`).join(''); const total = cart.reduce((sum, item) => sum + item.price, 0); document.getElementById('cart-total').textContent = total.toFixed(2); } function removeFromCart(index) { cart.splice(index, 1); localStorage.setItem('fml-cart', JSON.stringify(cart)); updateCartUI(); } function toggleCart() { document.getElementById('cart').classList.toggle('open'); } document.getElementById('cart-toggle').onclick = toggleCart; function startCheckout() { if (cart.length === 0) { alert('Cart is empty'); return; } document.getElementById('order-items').value = JSON.stringify(cart); document.getElementById('checkout-form').style.display = 'block'; document.getElementById('cart').classList.remove('open'); // In real implementation: email verification via Cloudflare Email binding, then redirect to Stripe } function claimDaily() { const lastClaim = localStorage.getItem('fml-last-claim'); const today = new Date().toDateString(); if (lastClaim === today) { alert('You already claimed today\'s points!'); return; } points += 10; localStorage.setItem('fml-points', points); localStorage.setItem('fml-last-claim', today); document.getElementById('points').textContent = points; alert('Claimed 10 points! Keep logging in daily for free swag.'); } // Quotes of the day (could be from Workers AI / llms-chat-app-template) const quotes = [ "Faith is the substance of things hoped for, the evidence of things not seen. — Hebrews 11:1", "I can do all things through Christ who strengthens me. — Philippians 4:13", "Trust in the Lord with all your heart. — Proverbs 3:5", "Be still and know that I am God. — Psalm 46:10" ]; document.getElementById('daily-quote').textContent = quotes[new Date().getDate() % quotes.length]; renderProducts(); updateCartUI(); // Account link simulation document.getElementById('account-link').onclick = (e) => { e.preventDefault(); alert('Account dashboard: After Stripe success webhook, visit /dashboard for order list and status. Points balance shown here. Email verification required.'); }; // SVG ANIMATION SCRIPT document.querySelectorAll('.logo-wrapper').forEach(wrapper => { const svg = wrapper.querySelector('svg'); const spot = svg.querySelector('.glow-spot'); wrapper.addEventListener('mousemove', (e) => { const rect = svg.getBoundingClientRect(); const x = ((e.clientX - rect.left) / rect.width) * 900; const y = ((e.clientY - rect.top) / rect.height) * 200; spot.setAttribute('transform', `translate(${x} ${y})`); }); });