-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
235 lines (209 loc) · 8.29 KB
/
Copy pathindex.html
File metadata and controls
235 lines (209 loc) · 8.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Fellowship Event Hall</title>
<link rel="stylesheet" href="styles.css" />
<link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet" />
<style>
/* ===== HERO SECTION ===== */
.hero {
position:relative;
display:flex; align-items:center; justify-content:center;
min-height:48vh;
border-radius:0 0 var(--radius) var(--radius);
box-shadow:var(--shadow);
overflow:hidden;
text-align:center;
background:linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 40%, var(--sky-2) 100%);
}
/* Subtle drifting clouds */
.hero::before, .hero::after {
content:""; position:absolute; inset:-20% -10%;
background:
radial-gradient(60% 40% at 20% 30%, rgba(255,255,255,.65) 0%, transparent 60%),
radial-gradient(50% 35% at 70% 60%, rgba(255,255,255,.55) 0%, transparent 60%),
radial-gradient(45% 30% at 30% 80%, rgba(255,255,255,.45) 0%, transparent 60%);
animation: floatClouds 45s linear infinite;
pointer-events:none;
}
.hero::after { animation-duration:60s; opacity:.6; filter:blur(2px); }
@keyframes floatClouds {
0% { transform:translate3d(0,0,0) scale(1); }
50% { transform:translate3d(2%, -1%, 0) scale(1.02); }
100% { transform:translate3d(0,0,0) scale(1); }
}
/* Image layers for crossfade */
.hero-img {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
opacity: 0;
will-change: opacity;
transition: opacity 2s ease-in-out;
filter: brightness(0.5); /* Slightly darkens the images */
}
.hero-img.active { opacity:1; }
.hero-gradient {
position:absolute; inset:0;
background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(240,249,255,0));
mix-blend-mode: soft-light; pointer-events:none;
}
/* ===== CONTENT SECTIONS ===== */
.wrap { padding:0 5% 5% 5%; }
.card {
max-width:980px; margin:2rem auto; padding:1.5rem;
background:rgba(255,255,255,.86); backdrop-filter:blur(5px);
border:1px solid rgba(147,197,253,.25);
border-radius:var(--radius); box-shadow:var(--shadow);
}
.card h2 { margin-top:0; color:var(--head); }
/* ===== PANEL (Bottom Section) ===== */
.panel {
position:relative;
border-radius:var(--radius); overflow:hidden;
min-height:28vh;
display:flex; flex-direction:column; justify-content:center;
padding:6% 8%;
box-shadow:var(--shadow);
background:
linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 40%, var(--sky-2) 100%),
url('sourcefiles/fellowship2img.jpg') center/cover no-repeat;
}
.panel::after {
content:""; position:absolute; inset:0;
background:linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.1));
mix-blend-mode:soft-light; pointer-events:none;
}
.panel h2, .panel p {
position:relative; color:var(--head);
text-shadow:none;
}
</style>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fellowship Event Hall</title>
<link rel="stylesheet" href="styles.css">
<link rel="icon" type="image/x-icon" href="sourcefiles/logo.ico">
</head>
<body>
<div id="navbar"></div>
<!-- HERO with auto crossfade -->
<div id="main content">
<header class="hero" id="hero"
data-images='[
"sourcefiles/fellowshipimg.jpg",
"sourcefiles/fellowship2img.jpg"
]'>
<div class="hero-img active" id="heroA"></div>
<div class="hero-img" id="heroB"></div>
<div class="hero-gradient"></div>
<img src="sourcefiles/full-logo.png" alt="Fellowship Event Hall Logo" style="position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); width: 350px; height: auto; z-index: 10;">
</header>
<div class="wrap">
<section class="card slide-in">
<p id="welcome-text" style="font-size:1.1rem;color:var(--ink-2);">
Welcome to Fellowship Event Hall — the place to host your unforgettable events. Whether you're planning a wedding,
corporate gathering, birthday party, or any special occasion, our spacious and elegant venue is designed to accommodate your needs.
</p>
</section>
<section class="card slide-in">
<h2>Why Choose Us?</h2>
<ul style="font-size:1.05rem;color:var(--ink-2);">
<li>Spacious halls for any event size</li>
<li>Customizable layouts for your theme</li>
<li>Delicious catering packages</li>
<li>Professional, caring staff</li>
<li>Ample parking and convenient location</li>
</ul>
</section>
<section class="panel slide-in">
<h2 style="font-family:'Lobster',cursive;font-size:clamp(1.8rem,3.5vw,2.6rem);margin:0 0 .4rem;">
Book Your Event Today!
</h2>
<p style="font-size:1.15rem;max-width:60ch;">
Ready to make your event unforgettable? Contact us today to check availability and reserve your date at Fellowship Event Hall.
We can’t wait to host your celebration!
</p>
</section>
</div>
</div>
<div id="footer"></div>
<!-- ===== JAVASCRIPT ===== -->
<script>
// Load Navbar / Footer
fetch('sourcefiles/navbar.html')
.then(r=>r.text())
.then(html=>document.getElementById('navbar').innerHTML = html);
fetch('sourcefiles/footer.html')
.then(r=>r.text())
.then(html=>document.getElementById('footer').innerHTML = html);
// ===== HERO Auto Crossfade Logic =====
(function(){
const hero = document.getElementById('hero');
const imgA = document.getElementById('heroA');
const imgB = document.getElementById('heroB');
const list = (JSON.parse(hero.getAttribute('data-images') || '[]') || []);
if (!list.length) return;
// preload
list.forEach(src => { const im = new Image(); im.src = src; });
let idx = 0, usingA = true, timer = null;
imgA.style.backgroundImage = `url("${list[0]}")`;
imgA.classList.add('active');
function swapTo(nextIdx){
const nextSrc = list[nextIdx % list.length];
const show = usingA ? imgB : imgA;
const hide = usingA ? imgA : imgB;
show.style.backgroundImage = `url("${nextSrc}")`;
show.classList.add('active');
requestAnimationFrame(()=>{
hide.classList.remove('active');
usingA = !usingA;
idx = nextIdx % list.length;
});
}
function startCycle(){
if (timer) return;
timer = setInterval(()=>swapTo(idx+1), 5000); // every 5s
}
function stopCycle(){
clearInterval(timer);
timer = null;
}
// Auto start, pause on hover
startCycle();
hero.addEventListener('mouseenter', stopCycle, {passive:true});
hero.addEventListener('mouseleave', startCycle, {passive:true});
})();
// ===== Slide-in Fade-in Animation =====
(function(){
const items = Array.from(document.querySelectorAll('.slide-in'));
if (!items.length) return;
const io = new IntersectionObserver((entries, obs) => {
entries.forEach(e => {
if (!e.isIntersecting) return;
const i = items.indexOf(e.target);
e.target.style.transitionDelay = (i * 90) + 'ms';
requestAnimationFrame(() => {
e.target.classList.add('visible');
obs.unobserve(e.target);
});
});
}, { threshold:0.12, rootMargin:'0px 0px -10% 0px' });
items.forEach(el => io.observe(el));
})();
// ===== Personalize welcome if name saved =====
(function(){
try {
const name = localStorage.getItem('userName');
if (!name) return;
const el = document.getElementById('welcome-text');
if (!el) return;
el.textContent = `Welcome to Fellowship Event Hall, ${name} — the place to host your unforgettable events. Whether you're planning a wedding, corporate gathering, birthday party, or any special occasion, our spacious and elegant venue is designed to accommodate your needs.`;
} catch(_) {}
})();
</script>
</body>
</html>