Spaces:
Running

rrfm3 / index.html
Dinftech's picture
undefined - Initial Deployment
23c3edd verified
Raw History Blame Contribute Delete
33.9 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Redeemer's Revival Fire Ministry</title>
<meta name="description" content="Welcome to Redeemer's Revival Fire Ministry - a.k.a Household of Faith; Arena of Breakthrough">
<!-- TailwindCSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Custom Fonts -->
<link href="https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap" rel="stylesheet">
<!-- Custom Properties -->
<style>
:root {
--primary: #89B3DA;
--primary-light: #A8C7E6;
--primary-dark: #6B96C7;
--bg-color: #F0F8FF;
--text-color: hsl(216, 12%, 28%);
--text-light: hsl(216, 12%, 45%);
--accent: hsl(212, 33%, 94%);
--nav-bg: rgba(240, 248, 255, 0.95);
--nav-text: hsl(216, 12%, 28%);
--nav-hover: rgba(168, 199, 230, 0.5);
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.dark {
--bg-color: #1a1a1a;
--text-color: #e5e5e5;
--text-light: #a1a1a1;
--accent: #2d3748;
--nav-bg: rgba(26, 26, 26, 0.95);
--nav-text: #e5e5e5;
--nav-hover: rgba(107, 150, 199, 0.2);
}
* {
box-sizing: border-box;
}
body {
font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
line-height: 1.6;
transition: background-color 0.3s ease, color 0.3s ease;
overflow-x: hidden;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
background: var(--primary);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--primary-dark);
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
@keyframes slideIn {
from { transform: translateX(-100%); }
to { transform: translateX(0); }
}
@keyframes scaleIn {
from { transform: scale(0.9); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
.animate-fadeIn {
animation: fadeIn 0.6s ease-out;
}
.animate-bounce {
animation: bounce 2s infinite;
}
.animate-scaleIn {
animation: scaleIn 0.3s ease-out;
}
/* Hero Background */
.hero-bg {
background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.pexels.com/photos/208359/pexels-photo-208359.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop');
background-size: cover;
background-position: center;
background-attachment: fixed;
}
/* Card Hover Effects */
.card-hover {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-lg);
}
/* Modal Styles */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(5px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
opacity: 1;
visibility: visible;
}
.modal-content {
background-color: var(--bg-color);
border-radius: 12px;
padding: 2rem;
max-width: 600px;
max-height: 80vh;
overflow-y: auto;
transform: scale(0.9);
transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
transform: scale(1);
}
/* Form Styles */
.form-input {
width: 100%;
padding: 0.75rem;
border: 1px solid var(--primary-light);
border-radius: 8px;
background-color: var(--bg-color);
color: var(--text-color);
transition: border-color 0.3s ease;
}
.form-input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(137, 179, 218, 0.2);
}
.form-input.error {
border-color: #ef4444;
}
.error-message {
color: #ef4444;
font-size: 0.875rem;
margin-top: 0.25rem;
}
/* Loading Spinner */
.spinner {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid var(--primary-light);
border-radius: 50%;
border-top-color: var(--primary);
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Responsive */
@media (max-width: 768px) {
.hero-bg {
background-attachment: scroll;
}
}
/* No-js fallback */
.no-js .modal-overlay {
display: none;
}
/* Theme Toggle */
.theme-toggle {
position: relative;
display: inline-block;
width: 40px;
height: 20px;
}
.theme-toggle input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--primary-light);
transition: 0.4s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 2px;
bottom: 2px;
background-color: white;
transition: 0.4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: var(--primary);
}
input:checked + .slider:before {
transform: translateX(20px);
}
</style>
</head>
<body class="bg-[var(--bg-color)] text-[var(--text-color)]">
<!-- Header -->
<header id="header" class="fixed top-0 left-0 right-0 z-50 transition-all duration-300 bg-[var(--nav-bg)] text-[var(--nav-text)] shadow-sm">
<nav class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-16">
<!-- Logo -->
<a href="index.html" class="flex items-center space-x-2">
<svg class="w-8 h-8 text-[var(--primary)]" fill="currentColor" viewBox="0 0 20 20">
<path d="M10 2a8 8 0 100 16 8 8 0 000-16zM8.5 6a1.5 1.5 0 110 3 1.5 1.5 0 010-3zM10 14l-4-4h8l-4 4z"/>
</svg>
<span class="font-bold text-xl">RRFM</span>
</a>
<!-- Desktop Navigation -->
<div class="hidden md:flex items-center space-x-8">
<a href="index.html" class="hover:text-[var(--primary)] transition-colors">Home</a>
<a href="about.html" class="hover:text-[var(--primary)] transition-colors">About</a>
<a href="sermons.html" class="hover:text-[var(--primary)] transition-colors">Sermons</a>
<a href="contact.html" class="hover:text-[var(--primary)] transition-colors">Contact</a>
<!-- Theme Toggle -->
<div class="relative">
<button id="themeToggle" class="p-2 rounded-lg hover:bg-[var(--nav-hover)] transition-colors">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
<path d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"/>
</svg>
</button>
<div id="themeDropdown" class="absolute right-0 mt-2 w-48 bg-[var(--bg-color)] border border-[var(--accent)] rounded-lg shadow-lg hidden">
<button class="theme-option w-full text-left px-4 py-2 hover:bg-[var(--nav-hover)] transition-colors" data-theme="light">Light</button>
<button class="theme-option w-full text-left px-4 py-2 hover:bg-[var(--nav-hover)] transition-colors" data-theme="dark">Dark</button>
<button class="theme-option w-full text-left px-4 py-2 hover:bg-[var(--nav-hover)] transition-colors" data-theme="system">System</button>
</div>
</div>
<a href="donation.html" class="bg-[var(--primary)] text-white px-4 py-2 rounded-lg hover:bg-[var(--primary-dark)] transition-colors">
Donation
</a>
</div>
<!-- Mobile Menu Button -->
<button id="mobileMenuBtn" class="md:hidden p-2 rounded-lg hover:bg-[var(--nav-hover)] transition-colors">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
</svg>
</button>
</div>
</nav>
<!-- Mobile Menu -->
<div id="mobileMenu" class="md:hidden fixed inset-0 bg-[var(--nav-bg)] z-40 transform -translate-x-full transition-transform duration-300">
<div class="flex justify-end p-4">
<button id="closeMobileMenu" class="p-2 rounded-lg hover:bg-[var(--nav-hover)] transition-colors">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
</svg>
</button>
</div>
<nav class="flex flex-col items-center space-y-6 py-8">
<a href="index.html" class="text-2xl hover:text-[var(--primary)] transition-colors">Home</a>
<a href="about.html" class="text-2xl hover:text-[var(--primary)] transition-colors">About</a>
<a href="sermons.html" class="text-2xl hover:text-[var(--primary)] transition-colors">Sermons</a>
<a href="contact.html" class="text-2xl hover:text-[var(--primary)] transition-colors">Contact</a>
<a href="donation.html" class="text-2xl text-[var(--primary)] hover:text-[var(--primary-dark)] transition-colors">Donation</a>
<div class="pt-8">
<p class="text-sm text-[var(--text-light)] mb-4">Theme</p>
<div class="space-y-2">
<button class="theme-option block w-full text-center py-2 hover:bg-[var(--nav-hover)] transition-colors" data-theme="light">Light</button>
<button class="theme-option block w-full text-center py-2 hover:bg-[var(--nav-hover)] transition-colors" data-theme="dark">Dark</button>
<button class="theme-option block w-full text-center py-2 hover:bg-[var(--nav-hover)] transition-colors" data-theme="system">System</button>
</div>
</div>
</nav>
</div>
</header>
<!-- Hero Section -->
<section class="hero-bg min-h-screen flex items-center justify-center text-white relative">
<div class="text-center px-4 animate-fadeIn">
<h1 class="text-5xl md:text-7xl font-bold mb-4">Redeemer's Revival Fire Ministry</h1>
<p class="text-xl md:text-2xl mb-8">a.k.a Household of Faith; Arena of Breakthrough</p>
<a href="#about" class="inline-block bg-[var(--primary)] text-white px-8 py-3 rounded-lg hover:bg-[var(--primary-dark)] transition-colors">
Learn More
</a>
</div>
<!-- Scroll Indicator -->
<div class="absolute bottom-8 left-1/2 transform -translate-x-1/2 animate-bounce">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 14l-7 7m0 0l-7-7m7 7V3"></path>
</svg>
</div>
</section>
<!-- About Section -->
<section id="about" class="py-20 bg-[var(--accent)]">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-12">
<h2 class="text-4xl font-bold mb-4">Our Ministries</h2>
<p class="text-[var(--text-light)]">Discover how we serve our community</p>
</div>
<div class="grid md:grid-cols-3 gap-8">
<!-- Worship Ministry -->
<div class="card-hover bg-[var(--bg-color)] rounded-lg p-6 text-center shadow-md cursor-pointer" onclick="openMinistryModal('worship')">
<div class="w-16 h-16 bg-[var(--primary)] rounded-full flex items-center justify-center mx-auto mb-4">
<svg class="w-8 h-8 text-white" fill="currentColor" viewBox="0 0 20 20">
<path d="M18 3a1 1 0 00-1.196-.98l-10 2A1 1 0 006 5v9.114A4.369 4.369 0 005 14c-1.657 0-3 .895-3 2s1.343 2 3 2 3-.895 3-2 1.657-2 3-2h.5V5a2 2 0 012-2h.5V3a1 1 0 011-1z"/>
</svg>
</div>
<h3 class="text-xl font-semibold mb-2">Worship Ministry</h3>
<p class="text-[var(--text-light)]">Leading our congregation in heartfelt worship and praise.</p>
</div>
<!-- Youth Ministry -->
<div class="card-hover bg-[var(--bg-color)] rounded-lg p-6 text-center shadow-md cursor-pointer" onclick="openMinistryModal('youth')">
<div class="w-16 h-16 bg-[var(--primary)] rounded-full flex items-center justify-center mx-auto mb-4">
<svg class="w-8 h-8 text-white" fill="currentColor" viewBox="0 0 20 20">
<path d="M13 6a3 3 0 11-6 0 3 3 0 016 0zM18 8a2 2 0 11-4 0 2 2 0 014 0zM14 15a4 4 0 00-8 0v3h8v-3z"/>
</svg>
</div>
<h3 class="text-xl font-semibold mb-2">Youth Ministry</h3>
<p class="text-[var(--text-light)]">Empowering the next generation with faith and purpose.</p>
</div>
<!-- Community Outreach -->
<div class="card-hover bg-[var(--bg-color)] rounded-lg p-6 text-center shadow-md cursor-pointer" onclick="openMinistryModal('outreach')">
<div class="w-16 h-16 bg-[var(--primary)] rounded-full flex items-center justify-center mx-auto mb-4">
<svg class="w-8 h-8 text-white" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M3.172 5.172a4 4 0 015.656 0L10 6.343l1.172-1.171a4 4 0 115.656 5.656L10 17.657l-6.828-6.829a4 4 0 010-5.656z"/>
</svg>
</div>
<h3 class="text-xl font-semibold mb-2">Community Outreach</h3>
<p class="text-[var(--text-light)]">Extending God's love through service to our community.</p>
</div>
</div>
<div class="text-center mt-12">
<a href="about.html" class="inline-block border border-[var(--primary)] text-[var(--primary)] px-8 py-3 rounded-lg hover:bg-[var(--primary)] hover:text-white transition-colors">
Learn More About Us
</a>
</div>
</div>
</section>
<!-- Sermons Section -->
<section class="py-20">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-12">
<h2 class="text-4xl font-bold mb-4">Recent Sermons</h2>
<p class="text-[var(--text-light)]">Be inspired by our latest messages</p>
</div>
<div class="grid md:grid-cols-3 gap-8">
<!-- Sermon 1 -->
<div class="bg-[var(--bg-color)] rounded-lg overflow-hidden shadow-md">
<img src="https://images.pexels.com/photos/208359/pexels-photo-208359.jpeg?auto=compress&cs=tinysrgb&w=400&h=300&fit=crop" alt="Sermon" class="w-full h-48 object-cover">
<div class="p-6">
<h3 class="text-xl font-semibold mb-2">The Power of Faith</h3>
<p class="text-[var(--text-light)] mb-4">Pastor John • March 10, 2024</p>
<a href="#" class="inline-block bg-[var(--primary)] text-white px-4 py-2 rounded hover:bg-[var(--primary-dark)] transition-colors">
Watch Now
</a>
</div>
</div>
<!-- Sermon 2 -->
<div class="bg-[var(--bg-color)] rounded-lg overflow-hidden shadow-md">
<img src="https://images.pexels.com/photos/208359/pexels-photo-208359.jpeg?auto=compress&cs=tinysrgb&w=400&h=300&fit=crop" alt="Sermon" class="w-full h-48 object-cover">
<div class="p-6">
<h3 class="text-xl font-semibold mb-2">Walking in Victory</h3>
<p class="text-[var(--text-light)] mb-4">Pastor Sarah • March 3, 2024</p>
<a href="#" class="inline-block bg-[var(--primary)] text-white px-4 py-2 rounded hover:bg-[var(--primary-dark)] transition-colors">
Watch Now
</a>
</div>
</div>
<!-- Sermon 3 -->
<div class="bg-[var(--bg-color)] rounded-lg overflow-hidden shadow-md">
<img src="https://images.pexels.com/photos/208359/pexels-photo-208359.jpeg?auto=compress&cs=tinysrgb&w=400&h=300&fit=crop" alt="Sermon" class="w-full h-48 object-cover">
<div class="p-6">
<h3 class="text-xl font-semibold mb-2">Breaking Barriers</h3>
<p class="text-[var(--text-light)] mb-4">Pastor Mike • February 25, 2024</p>
<a href="#" class="inline-block bg-[var(--primary)] text-white px-4 py-2 rounded hover:bg-[var(--primary-dark)] transition-colors">
Watch Now
</a>
</div>
</div>
</div>
<div class="text-center mt-12">
<a href="sermons.html" class="inline-block border border-[var(--primary)] text-[var(--primary)] px-8 py-3 rounded-lg hover:bg-[var(--primary)] hover:text-white transition-colors">
View All Sermons
</a>
</div>
</div>
</section>
<!-- Location & Contact Section -->
<section class="py-20 bg-[var(--accent)]">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid md:grid-cols-2 gap-12">
<!-- Contact Info -->
<div>
<h2 class="text-3xl font-bold mb-6">Visit Us</h2>
<div class="space-y-4">
<div class="flex items-start space-x-3">
<svg class="w-6 h-6 text-[var(--primary)] mt-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
</svg>
<div>
<p class="font-semibold">Address</p>
<p class="text-[var(--text-light)]">123 Faith Avenue, Grace City</p>
</div>
</div>
<div class="flex items-start space-x-3">
<svg class="w-6 h-6 text-[var(--primary)] mt-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
<div>
<p class="font-semibold">Service Times</p>
<p class="text-[var(--text-light)]">Sunday: 9:00 AM & 11:00 AM</p>
<p class="text-[var(--text-light)]">Wednesday: 7:00 PM</p>
</div>
</div>
<div class="flex items-start space-x-3">
<svg class="w-6 h-6 text-[var(--primary)] mt-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"></path>
</svg>
<div>
<p class="font-semibold">Contact</p>
<p class="text-[var(--text-light)]">Phone: (555) 123-4567</p>
<p class="text-[var(--text-light)]">Email: info@rrfm.org</p>
</div>
</div>
</div>
<button class="mt-6 bg-[var(--primary)] text-white px-6 py-2 rounded-lg hover:bg-[var(--primary-dark)] transition-colors">
Get Directions
</button>
</div>
<!-- Webmail Login -->
<div class="bg-[var(--bg-color)] p-6 rounded-lg shadow-md">
<h3 class="text-xl font-semibold mb-4">Webmail Login</h3>
<form id="webmailForm" class="space-y-4">
<div>
<label class="block text-sm font-medium mb-2">Email</label>
<input type="email" class="form-input" placeholder="your@email.com" required>
</div>
<div>
<label class="block text-sm font-medium mb-2">Password</label>
<input type="password" class="form-input" placeholder="••••••••" required>
</div>
<button type="submit" class="w-full bg-[var(--primary)] text-white py-2 rounded-lg hover:bg-[var(--primary-dark)] transition-colors">
Sign In
</button>
</form>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-[var(--accent)] py-8">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
<p class="text-[var(--text-light)]">&copy; 2024 Redeemer's Revival Fire Ministry. All rights reserved.</p>
</div>
</footer>
<!-- Ministry Modal -->
<div id="ministryModal" class="modal-overlay">
<div class="modal-content">
<div class="flex justify-between items-start mb-4">
<h2 id="modalTitle" class="text-2xl font-bold"></h2>
<button onclick="closeMinistryModal()" class="text-[var(--text-light)] hover:text-[var(--text-color)]">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
</svg>
</button>
</div>
<div id="modalContent" class="space-y-4"></div>
</div>
</div>
<script>
// Theme management
const themeToggle = document.getElementById('themeToggle');
const themeDropdown = document.getElementById('themeDropdown');
const themeOptions = document.querySelectorAll('.theme-option');
function setTheme(theme) {
const root = document.documentElement;
if (theme === 'dark') {
root.classList.add('dark');
} else if (theme === 'light') {
root.classList.remove('dark');
} else {
// System preference
if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
root.classList.add('dark');
} else {
root.classList.remove('dark');
}
}
localStorage.setItem('theme', theme);
}
function getTheme() {
return localStorage.getItem('theme') || 'system';
}
// Initialize theme
setTheme(getTheme());
// Theme toggle
themeToggle.addEventListener('click', () => {
themeDropdown.classList.toggle('hidden');
});
themeOptions.forEach(option => {
option.addEventListener('click', (e) => {
const theme = e.target.dataset.theme;
setTheme(theme);
themeDropdown.classList.add('hidden');
});
});
// Close dropdown when clicking outside
document.addEventListener('click', (e) => {
if (!themeToggle.contains(e.target) && !themeDropdown.contains(e.target)) {
themeDropdown.classList.add('hidden');
}
});
// Header scroll effect
const header = document.getElementById('header');
let lastScroll = 0;
window.addEventListener('scroll', () => {
const currentScroll = window.pageYOffset;
if (currentScroll > 50) {
header.classList.add('shadow-md');
} else {
header.classList.remove('shadow-md');
}
lastScroll = currentScroll;
});
// Mobile menu
const mobileMenuBtn = document.getElementById('mobileMenuBtn');
const closeMobileMenuBtn = document.getElementById('closeMobileMenu');
const mobileMenu = document.getElementById('mobileMenu');
function toggleMobileMenu() {
mobileMenu.classList.toggle('-translate-x-full');
document.body.classList.toggle('overflow-hidden');
}
mobileMenuBtn.addEventListener('click', toggleMobileMenu);
closeMobileMenuBtn.addEventListener('click', toggleMobileMenu);
// Ministry modal
const ministryModal = document.getElementById('ministryModal');
const modalTitle = document.getElementById('modalTitle');
const modalContent = document.getElementById('modalContent');
const ministryData = {
worship: {
title: 'Worship Ministry',
content: `
<p class="mb-4">Our Worship Ministry is dedicated to creating an atmosphere where people can encounter the presence of God through music and worship.</p>
<h3 class="text-lg font-semibold mb-2">What We Do:</h3>
<ul class="list-disc list-inside space-y-1 text-[var(--text-light)]">
<li>Lead Sunday services with powerful worship sessions</li>
<li>Organize special worship events and concerts</li>
<li>Train and mentor new worship leaders</li>
<li>Produce original worship music</li>
</ul>
<h3 class="text-lg font-semibold mb-2 mt-4">Join Us:</h3>
<p class="text-[var(--text-light)]">We meet every Thursday at 6:00 PM for rehearsal. All skill levels welcome!</p>
`
},
youth: {
title: 'Youth Ministry',
content: `
<p class="mb-4">Our Youth Ministry empowers young people to live out their faith boldly and impact their generation for Christ.</p>
<h3 class="text-lg font-semibold mb-2">Programs:</h3>
<ul class="list-disc list-inside space-y-1 text-[var(--text-light)]">
<li>Friday Night Youth Services</li>
<li>Small Groups & Bible Studies</li>
<li>Outreach & Missions Trips</li>
<li>Summer Camps & Retreats</li>
</ul>
<h3 class="text-lg font-semibold mb-2 mt-4">Age Groups:</h3>
<p class="text-[var(--text-light)]">Junior (12-15) and Senior (16-21) groups available</p>
`
},
outreach: {
title: 'Community Outreach',
content: `
<p class="mb-4">Our Community Outreach extends God's love beyond the church walls through practical service and support.</p>
<h3 class="text-lg font-semibold mb-2">Initiatives:</h3>
<ul class="list-disc list-inside space-y-1 text-[var(--text-light)]">
<li>Food bank and feeding programs</li>
<li>Clothing distribution drives</li>
<li>Prison ministry and support</li>
<li>Orphanage visits and support</li>
</ul>
<h3 class="text-lg font-semibold mb-2 mt-4">Get Involved:</h3>
<p class="text-[var(--text-light)]">Contact us to join our outreach team or donate to support our programs</p>
`
}
};
function openMinistryModal(ministry) {
const data = ministryData[ministry];
modalTitle.textContent = data.title;
modalContent.innerHTML = data.content;
ministryModal.classList.add('active');
document.body.style.overflow = 'hidden';
}
function closeMinistryModal() {
ministryModal.classList.remove('active');
document.body.style.overflow = '';
}
// Close modal on escape
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') {
closeMinistryModal();
}
});
// Close modal on backdrop click
ministryModal.addEventListener('click', (e) => {
if (e.target === ministryModal) {
closeMinistryModal();
}
});
// Webmail form
const webmailForm = document.getElementById('webmailForm');
webmailForm.addEventListener('submit', (e) => {
e.preventDefault();
alert('Webmail login would redirect to email service');
});
// Smooth scroll for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Dinftech/rrfm3" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>