Skip to content

Commit 554a5e5

Browse files
committed
chore: wip
1 parent 3183ee6 commit 554a5e5

File tree

2 files changed

+40
-6
lines changed

2 files changed

+40
-6
lines changed

examples/homepage.stx

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,17 @@
194194
<div class="desktop-icon-label">Discord</div>
195195
</button>
196196

197+
<button
198+
class="desktop-icon"
199+
data-icon-id="whitepaper"
200+
data-icon-type="link"
201+
data-icon-section=""
202+
data-icon-url="https://github.com/stacksjs/white-paper"
203+
>
204+
<div class="desktop-icon-image">📄</div>
205+
<div class="desktop-icon-label">White Paper</div>
206+
</button>
207+
197208
<button
198209
class="desktop-icon"
199210
data-icon-id="contact"
@@ -364,7 +375,7 @@ Sponsor Here</div>
364375
</div>
365376

366377
<div class="package-item">
367-
<div class="package-emoji"></div>
378+
<div class="package-emoji">📫</div>
368379
<div class="package-title">Email</div>
369380
<div class="package-desc">Send emails with ease</div>
370381
</div>
@@ -2368,6 +2379,14 @@ export default {
23682379
<div class="start-menu-item-icon">💬</div>
23692380
<div>Discord</div>
23702381
</button>
2382+
<button class="start-menu-item" onclick="openIconFromMenu('blog')">
2383+
<div class="start-menu-item-icon">📝</div>
2384+
<div>Blog</div>
2385+
</button>
2386+
<button class="start-menu-item" onclick="window.open('https://github.com/stacksjs/white-paper', '_blank')">
2387+
<div class="start-menu-item-icon">📄</div>
2388+
<div>White Paper</div>
2389+
</button>
23712390
</div>
23722391
</div>
23732392
</div>
@@ -2408,7 +2427,7 @@ export default {
24082427
</div>
24092428

24102429
<!-- Notification Popup -->
2411-
<div class="notification-popup" id="notification-popup">
2430+
<div class="notification-popup hidden" id="notification-popup">
24122431
<div class="notification-header">
24132432
<div class="notification-icon">⭐</div>
24142433
<div class="notification-title">Build Anything</div>

examples/homepage.ts

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,11 @@ function closeWindow(windowId) {
391391
}
392392

393393
updateTaskbar();
394+
395+
// Show notification when welcome window is closed
396+
if (windowId === 'welcome') {
397+
showNotification();
398+
}
394399
}
395400

396401
function minimizeWindow(windowId) {
@@ -471,6 +476,11 @@ function minimizeWindow(windowId) {
471476
}, 200);
472477
}
473478
});
479+
480+
// Show notification when welcome window is minimized
481+
if (windowId === 'welcome') {
482+
showNotification();
483+
}
474484
}
475485

476486
function toggleMaximizeWindow(windowId) {
@@ -862,10 +872,11 @@ function closeNotification() {
862872
notification.classList.add('hidden');
863873
}
864874

865-
// Show notification after 2 seconds
866-
setTimeout(() => {
867-
notification.classList.remove('hidden');
868-
}, 2000);
875+
function showNotification() {
876+
if (notification) {
877+
notification.classList.remove('hidden');
878+
}
879+
}
869880

870881
// Email signup
871882
async function handleEmailSignup() {
@@ -1487,6 +1498,9 @@ function selectPlan(planType: string) {
14871498
}
14881499
}, 10);
14891500
}, 250); // Wait for minimize animation to complete
1501+
1502+
// Show notification when a plan is selected
1503+
showNotification();
14901504
}
14911505

14921506
// Zoom functionality
@@ -1630,6 +1644,7 @@ window.minimizeWindow = minimizeWindow;
16301644
window.toggleMaximizeWindow = toggleMaximizeWindow;
16311645
window.showFeature = showFeature;
16321646
window.closeNotification = closeNotification;
1647+
window.showNotification = showNotification;
16331648
window.handleEmailSignup = handleEmailSignup;
16341649
window.shareVia = shareVia;
16351650
window.copyLogoSVG = copyLogoSVG;

0 commit comments

Comments
 (0)