--- import MainLayout from '../layouts/MainLayout.astro'; import { SERVICE_TIMES } from '../lib/constants.js'; import { getChurchName, getChurchPhysicalAddress, getChurchPoBox, getContactPhone, getContactEmail } from '../lib/bindings.js'; let churchName = 'Church'; let physicalAddress = ''; let poBox = ''; let phone = ''; let email = ''; try { churchName = getChurchName(); physicalAddress = getChurchPhysicalAddress(); poBox = getChurchPoBox(); phone = getContactPhone(); // Get the base email from church-core and make it dynamic based on current domain const baseEmail = getContactEmail(); const currentUrl = Astro.url.hostname; // Extract the domain part and create dynamic email if (currentUrl && currentUrl !== 'localhost') { email = `admin@${currentUrl}`; } else { // Fallback to the original email from church-core email = baseEmail; } } catch (e) { console.error('Failed to get contact info:', e); } ---

Contact Us

We'd love to hear from you. Reach out with questions, prayer requests, or to learn more about our faith community.

Send us a message

Get in touch

Whether you're seeking spiritual guidance, have questions about our faith, or want to join our community, we're here to help.

{(physicalAddress || poBox) && (

Visit Us

{physicalAddress && (

{physicalAddress}

)} {poBox && (

{poBox}

)}
)} {phone && (

Call Us

{phone}
)} {email && (

Email Us

{email}
)}

Service Times

Sabbath School: {SERVICE_TIMES.SABBATH_SCHOOL}

Divine Service: {SERVICE_TIMES.DIVINE_SERVICE}

Prayer Meeting: {SERVICE_TIMES.PRAYER_MEETING}