-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoveStory_Mary Joy_Chester Jeff.html
More file actions
241 lines (213 loc) · 16 KB
/
LoveStory_Mary Joy_Chester Jeff.html
File metadata and controls
241 lines (213 loc) · 16 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
236
237
238
239
240
241
<html lang="en"><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Celebrate your love story with a beautiful anniversary countdown">
<title>LoveStory Pro - Premium Anniversary Template</title>
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;600;700;800&display=swap" rel="stylesheet">
</head>
<body data-theme="ocean">
<div class="bg-animation"></div>
<div class="particles" id="particles" aria-hidden="true"><div class="particle" style="left: 20.8699vw; animation-delay: 2.39085s; opacity: 0;"></div><div class="particle" style="left: 7.48871vw; animation-delay: 3.61616s; opacity: 0;"></div><div class="particle" style="left: 63.8728vw; animation-delay: 4.56462s; opacity: 0;"></div><div class="particle" style="left: 72.2988vw; animation-delay: 3.79738s; opacity: 0;"></div><div class="particle" style="left: 97.6815vw; animation-delay: 2.06612s; opacity: 0;"></div><div class="particle" style="left: 43.6105vw; animation-delay: 2.30629s; opacity: 0;"></div><div class="particle" style="left: 20.6957vw; animation-delay: 1.36531s; opacity: 0;"></div><div class="particle" style="left: 71.4991vw; animation-delay: 5.97944s; opacity: 0;"></div><div class="particle" style="left: 24.301vw; animation-delay: 3.75876s; opacity: 0;"></div><div class="particle" style="left: 7.48133vw; animation-delay: 4.72247s; opacity: 0;"></div><div class="particle" style="left: 36.3025vw; animation-delay: 3.01122s; opacity: 0;"></div><div class="particle" style="left: 78.4516vw; animation-delay: 4.00778s; opacity: 0;"></div><div class="particle" style="left: 37.2105vw; animation-delay: 1.54077s; opacity: 0;"></div><div class="particle" style="left: 29.3852vw; animation-delay: 1.09425s; opacity: 0;"></div><div class="particle" style="left: 51.7732vw; animation-delay: 4.39165s; opacity: 0;"></div><div class="particle" style="left: 84.7409vw; animation-delay: 2.43037s; opacity: 0;"></div><div class="particle" style="left: 48.87vw; animation-delay: 3.37744s; opacity: 0;"></div><div class="particle" style="left: 70.2782vw; animation-delay: 0.795613s; opacity: 0;"></div><div class="particle" style="left: 24.2392vw; animation-delay: 1.19383s; opacity: 0;"></div><div class="particle" style="left: 13.9958vw; animation-delay: 2.82452s; opacity: 0;"></div><div class="particle" style="left: 31.0381vw; animation-delay: 1.83406s; opacity: 0;"></div><div class="particle" style="left: 71.3415vw; animation-delay: 0.468477s; opacity: 0;"></div><div class="particle" style="left: 16.0511vw; animation-delay: 3.80923s; opacity: 0;"></div><div class="particle" style="left: 86.2126vw; animation-delay: 0.762377s; opacity: 0;"></div><div class="particle" style="left: 7.60624vw; animation-delay: 4.15575s; opacity: 0;"></div><div class="particle" style="left: 77.4123vw; animation-delay: 2.46789s; opacity: 0;"></div><div class="particle" style="left: 98.1085vw; animation-delay: 2.51546s; opacity: 0;"></div><div class="particle" style="left: 37.7304vw; animation-delay: 2.99614s; opacity: 0;"></div><div class="particle" style="left: 71.3494vw; animation-delay: 5.71336s; opacity: 0;"></div><div class="particle" style="left: 3.8845vw; animation-delay: 2.03015s; opacity: 0;"></div><div class="particle" style="left: 61.5238vw; animation-delay: 2.09032s; opacity: 0;"></div><div class="particle" style="left: 61.1265vw; animation-delay: 0.717122s; opacity: 0;"></div><div class="particle" style="left: 53.9707vw; animation-delay: 3.01313s; opacity: 0;"></div><div class="particle" style="left: 96.9609vw; animation-delay: 2.18504s; opacity: 0;"></div><div class="particle" style="left: 22.479vw; animation-delay: 2.05805s; opacity: 0;"></div><div class="particle" style="left: 20.9011vw; animation-delay: 4.263s; opacity: 0;"></div><div class="particle" style="left: 13.8001vw; animation-delay: 2.8342s; opacity: 0;"></div><div class="particle" style="left: 58.9789vw; animation-delay: 3.42028s; opacity: 0;"></div><div class="particle" style="left: 15.7121vw; animation-delay: 1.25774s; opacity: 0;"></div><div class="particle" style="left: 49.3339vw; animation-delay: 0.0515244s; opacity: 0;"></div><div class="particle" style="left: 22.3003vw; animation-delay: 1.88092s; opacity: 0;"></div><div class="particle" style="left: 5.91583vw; animation-delay: 3.82675s; opacity: 0;"></div><div class="particle" style="left: 72.9656vw; animation-delay: 3.40545s; opacity: 0;"></div><div class="particle" style="left: 21.0702vw; animation-delay: 5.86464s; opacity: 0;"></div><div class="particle" style="left: 37.9266vw; animation-delay: 3.01781s; opacity: 0;"></div><div class="particle" style="left: 37.9629vw; animation-delay: 1.23909s; opacity: 0;"></div><div class="particle" style="left: 15.6891vw; animation-delay: 1.94335s; opacity: 0;"></div><div class="particle" style="left: 35.8088vw; animation-delay: 2.18468s; opacity: 0;"></div><div class="particle" style="left: 25.59vw; animation-delay: 3.9592s; opacity: 0;"></div><div class="particle" style="left: 21.0354vw; animation-delay: 0.647792s; opacity: 0;"></div></div>
<nav id="navbar">
<div class="nav-container">
<div class="logo" id="logoText">M & C</div>
<ul class="nav-links">
<li><a href="#home">Home</a></li>
<li><a href="#countdown">Countdown</a></li>
<li><a href="#stories">Memories</a></li>
</ul>
</div>
</nav>
<main>
<section id="home" class="hero">
<div class="hero-content">
<div class="hero-badge" id="heroBadge">✨ Together Since 2024</div>
<h1 class="hero-title" id="heroTitle">Mary Joy & Chester Jeff</h1>
<p class="hero-subtitle" id="heroSubtitleText">A love story written in the stars</p>
<div class="hero-cta">
<a href="#countdown" class="btn btn-primary">💖 See Our Journey</a>
<a href="#stories" class="btn btn-secondary">📸 View Memories</a>
</div>
</div>
</section>
<section id="countdown" class="countdown-section" aria-labelledby="countdown-title">
<div class="container">
<header class="section-header">
<div class="section-badge">⏳ Countdown</div>
<h2 class="section-title" id="countdown-title">Next Anniversary</h2>
<p class="section-description">Counting the days until we celebrate our special moment together again.</p>
</header>
<div class="countdown-container">
<div class="countdown-grid" role="timer" aria-live="polite">
<div class="countdown-item">
<span class="countdown-number" id="days" aria-label="Days">144</span>
<span class="countdown-label">Days</span>
</div>
<div class="countdown-item">
<span class="countdown-number" id="hours" aria-label="Hours">01</span>
<span class="countdown-label">Hours</span>
</div>
<div class="countdown-item">
<span class="countdown-number" id="minutes" aria-label="Minutes">02</span>
<span class="countdown-label">Minutes</span>
</div>
<div class="countdown-item">
<span class="countdown-number" id="seconds" aria-label="Seconds">26</span>
<span class="countdown-label">Seconds</span>
</div>
</div>
</div>
</div>
</section>
<section id="stories" class="stories-section" aria-labelledby="stories-title">
<div class="container">
<header class="section-header">
<div class="section-badge">📸 Memories</div>
<h2 class="section-title" id="stories-title">Our Story</h2>
<p class="section-description">A collection of our most cherished moments together.</p>
</header>
<div class="stories-container">
<button class="scroll-btn scroll-left" onclick="scrollStories(-1)" aria-label="Scroll stories left">❮</button>
<div class="stories-scroll" id="storiesScroll" role="list">
<div class="story-item" role="listitem" tabindex="0" onclick="openStoryModal(3)" onkeypress="handleStoryKeypress(event, 3)">
<div class="story-avatar">
<img class="story-image" src="https://images.unsplash.com/photo-1516589178581-6cd7833ae3b2?w=400&h=400&fit=crop&crop=face" alt="Special Moments" loading="lazy">
</div>
<div class="story-title">Special Moments</div>
<div class="story-date">Dec 5, 2022</div>
</div><div class="story-item" role="listitem" tabindex="0" onclick="openStoryModal(2)" onkeypress="handleStoryKeypress(event, 2)">
<div class="story-avatar">
<img class="story-image" src="https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=400&h=400&fit=crop&crop=face" alt="Travel Together" loading="lazy">
</div>
<div class="story-title">Travel Together</div>
<div class="story-date">Jul 22, 2021</div>
</div><div class="story-item" role="listitem" tabindex="0" onclick="openStoryModal(1)" onkeypress="handleStoryKeypress(event, 1)">
<div class="story-avatar">
<img class="story-image" src="https://images.unsplash.com/photo-1529636849874-e6774cf19564?w=400&h=400&fit=crop&crop=face" alt="First Date" loading="lazy">
</div>
<div class="story-title">First Date</div>
<div class="story-date">Mar 15, 2020</div>
</div>
</div>
<button class="scroll-btn scroll-right" onclick="scrollStories(1)" aria-label="Scroll stories right">❯</button>
</div>
</div>
</section>
</main>
<div class="story-modal" id="storyModal" role="dialog" aria-modal="true" aria-labelledby="storyModalTitle">
<div class="story-modal-content">
<button class="story-modal-close" onclick="closeStoryModal()" aria-label="Close story">×</button>
<img class="story-modal-image" id="storyModalImage" src="" alt="">
<h3 class="story-modal-title" id="storyModalTitle">Story Title</h3>
<div class="story-modal-date" id="storyModalDate">Date</div>
<p class="story-modal-description" id="storyModalDescription">Story description goes here.</p>
</div>
</div>
<footer class="footer">
<p class="footer-quote" id="footerQuote">In all the world, there is no heart for me like yours. In all the world, there is no love for you like mine.</p>
<div class="footer-hearts" aria-hidden="true">❤️❤️❤️</div>
<p id="footerNames">Mary Joy & Chester Jeff — Together Since 2024</p>
</footer>
<!-- Code injected by live-server -->
<script>
// <![CDATA[ <-- For SVG support
if ('WebSocket' in window) {
(function () {
function refreshCSS() {
var sheets = [].slice.call(document.getElementsByTagName("link"));
var head = document.getElementsByTagName("head")[0];
for (var i = 0; i < sheets.length; ++i) {
var elem = sheets[i];
var parent = elem.parentElement || head;
parent.removeChild(elem);
var rel = elem.rel;
if (elem.href && typeof rel != "string" || rel.length == 0 || rel.toLowerCase() == "stylesheet") {
var url = elem.href.replace(/(&|\?)_cacheOverride=\d+/, '');
elem.href = url + (url.indexOf('?') >= 0 ? '&' : '?') + '_cacheOverride=' + (new Date().valueOf());
}
parent.appendChild(elem);
}
}
var protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://';
var address = protocol + window.location.host + window.location.pathname + '/ws';
var socket = new WebSocket(address);
socket.onmessage = function (msg) {
if (msg.data == 'reload') window.location.reload();
else if (msg.data == 'refreshcss') refreshCSS();
};
if (sessionStorage && !sessionStorage.getItem('IsThisFirstTime_Log_From_LiveServer')) {
console.log('Live reload enabled.');
sessionStorage.setItem('IsThisFirstTime_Log_From_LiveServer', true);
}
})();
}
else {
console.error('Upgrade your browser. This Browser is NOT supported WebSocket for Live-Reloading.');
}
// ]]>
</script>
<script>
// Countdown functionality only
const anniversaryDate = '2026-03-15';
function updateCountdown() {
const targetDate = new Date(anniversaryDate).getTime();
const now = new Date().getTime();
const distance = targetDate - now;
const days = Math.floor(distance / (1000 * 60 * 60 * 24));
const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((distance % (1000 * 60)) / 1000);
if (distance < 0) {
document.getElementById('days').textContent = '🎉';
document.getElementById('hours').textContent = '🎉';
document.getElementById('minutes').textContent = '🎉';
document.getElementById('seconds').textContent = '🎉';
return;
}
document.getElementById('days').textContent = days < 1000 ? days : days.toLocaleString();
document.getElementById('hours').textContent = hours.toString().padStart(2, '0');
document.getElementById('minutes').textContent = minutes.toString().padStart(2, '0');
document.getElementById('seconds').textContent = seconds.toString().padStart(2, '0');
}
setInterval(updateCountdown, 1000);
updateCountdown();
// Sticky nav
window.addEventListener('scroll', () => {
const navbar = document.getElementById('navbar');
if (window.scrollY > 50) {
navbar.classList.add('scrolled');
} else {
navbar.classList.remove('scrolled');
}
});
// Story modal
window.openStoryModal = function(id) {
const stories = [{"id":1,"image":"https://images.unsplash.com/photo-1529636849874-e6774cf19564?w=400&h=400&fit=crop&crop=face","title":"First Date","date":"March 15, 2020","description":"The magical evening when it all began. Every love story has a beginning, and ours started with a simple coffee that turned into hours of conversation."},{"id":2,"image":"https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=400&h=400&fit=crop&crop=face","title":"Travel Together","date":"July 22, 2021","description":"Exploring the world hand in hand. From mountain tops to ocean shores, we've discovered that the best adventures are the ones we share together."},{"id":3,"image":"https://images.unsplash.com/photo-1516589178581-6cd7833ae3b2?w=400&h=400&fit=crop&crop=face","title":"Special Moments","date":"December 5, 2022","description":"Cherished memories forever in our hearts. The quiet moments, the laughter, the tears of joy - these are the treasures that make our love story unique."}];
const story = stories.find(s => s.id === id);
if (!story) return;
document.getElementById('storyModalImage').src = story.image;
document.getElementById('storyModalImage').alt = story.title;
document.getElementById('storyModalTitle').textContent = story.title;
document.getElementById('storyModalDate').textContent = new Date(story.date).toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' });
document.getElementById('storyModalDescription').textContent = story.description;
document.getElementById('storyModal').classList.add('open');
};
window.closeStoryModal = function() {
document.getElementById('storyModal').classList.remove('open');
};
// Particles
const particleContainer = document.getElementById('particles');
if (particleContainer) {
for (let i = 0; i < 50; i++) {
const particle = document.createElement('div');
particle.classList.add('particle');
particle.style.left = Math.random() * 100 + 'vw';
particle.style.animationDelay = Math.random() * 6 + 's';
particle.style.opacity = '0';
particleContainer.appendChild(particle);
}
}
</script></body></html>