Skip to content

Commit 957d6c7

Browse files
committed
Temporarily hide "Mail" app (aka contact form) while I'm fixing it. Replaced with link to my blog.
1 parent 90f78e9 commit 957d6c7

File tree

4 files changed

+86
-27
lines changed

4 files changed

+86
-27
lines changed

.github/workflows/gh-pages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ jobs:
9595
with:
9696
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
9797
publish_branch: prod
98-
exclude_assets: '.github,.gitignore,README.md,LICENSE.md,node_modules,src,package.json,package-lock.json,assets/img/misc/pipeline.webp,assets/stylesheets/sass'
98+
99+
# TODO: Remove 'assets/stylesheets/css/mail.css,assets/img/apps/mail.webp,dist/components/email.js' from exclude_assets once "Mail" app is fixed
100+
exclude_assets: '.github,.gitignore,README.md,LICENSE.md,node_modules,src,package.json,package-lock.json,assets/img/misc/pipeline.webp,assets/stylesheets/sass,assets/stylesheets/css/mail.css,assets/img/apps/mail.webp,dist/components/email.js'
99101
publish_dir: .
100102
cname: lynkos.dev
101103
disable_nojekyll: true

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,8 @@ Includes (but is not limited to):
314314
315315
> [!NOTE]
316316
> [`prod`](https://github.com/lynkos/lynkos.github.io/tree/prod) is used for production
317+
>
318+
> All mail-related files have been removed from this branch (see [Line #99 in `gh-pages.yml`](.github/workflows/gh-pages.yml#L99)) till the "Mail" app (aka contact form) is fixed
317319
318320
<details open>
319321
<summary><a title="Prod branch" href="https://github.com/lynkos/lynkos.github.io/tree/prod"><code>prod</code></a> branch</summary>
@@ -328,7 +330,6 @@ Includes (but is not limited to):
328330
│ │ │ ├── github.svg
329331
│ │ │ ├── iterm.webp
330332
│ │ │ ├── launchpad.webp
331-
│ │ │ ├── mail.webp
332333
│ │ │ ├── notes.webp
333334
│ │ │ ├── preview.webp
334335
│ │ │ ├── safari.webp
@@ -367,7 +368,6 @@ Includes (but is not limited to):
367368
│ │ ├── dock.css
368369
│ │ ├── jquery-ui.css
369370
│ │ ├── launchpad.css
370-
│ │ ├── mail.css
371371
│ │ ├── menubar.css
372372
│ │ ├── notes.css
373373
│ │ ├── preflight.css
@@ -381,7 +381,6 @@ Includes (but is not limited to):
381381
│ ├── components/
382382
│ │ ├── 404.js
383383
│ │ ├── calculator.js
384-
│ │ ├── email.js
385384
│ │ ├── notes.js
386385
│ │ ├── preview.js
387386
│ │ ├── text-edit.js

index.html

Lines changed: 65 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
<meta charset="utf-8">
1212
<title>Lynkos</title>
1313

14+
<!-- TODO: Uncomment once "Mail" app is fixed -->
15+
<!-- <link rel="preload" as="style" href="/assets/stylesheets/css/mail.css" onload="this.onload=null;this.rel='stylesheet'"> -->
16+
1417
<link rel="preload" as="style" href="/assets/stylesheets/css/preview.css" onload="this.onload=null;this.rel='stylesheet'">
1518
<link rel="preload" as="style" href="/assets/stylesheets/css/calculator.css" onload="this.onload=null;this.rel='stylesheet'">
16-
<link rel="preload" as="style" href="/assets/stylesheets/css/mail.css" onload="this.onload=null;this.rel='stylesheet'">
1719
<link rel="preload" as="style" href="/assets/stylesheets/css/text-edit.css" onload="this.onload=null;this.rel='stylesheet'">
1820
<link rel="preload" as="style" href="/assets/stylesheets/css/notes.css" onload="this.onload=null;this.rel='stylesheet'">
1921
<link rel="preload" as="style" href="/assets/stylesheets/css/launchpad.css" onload="this.onload=null;this.rel='stylesheet'">
@@ -27,7 +29,10 @@
2729
<noscript>
2830
<link rel="stylesheet" href="/assets/stylesheets/css/preview.css">
2931
<link rel="stylesheet" href="/assets/stylesheets/css/calculator.css">
30-
<link rel="stylesheet" href="/assets/stylesheets/css/mail.css">
32+
33+
<!-- TODO: Uncomment once "Mail" app is fixed -->
34+
<!-- <link rel="stylesheet" href="/assets/stylesheets/css/mail.css"> -->
35+
3136
<link rel="stylesheet" href="/assets/stylesheets/css/text-edit.css">
3237
<link rel="stylesheet" href="/assets/stylesheets/css/notes.css">
3338
<link rel="stylesheet" href="/assets/stylesheets/css/launchpad.css">
@@ -67,7 +72,10 @@
6772

6873
<link rel="preload" as="image" href="/assets/img/apps/iterm.webp">
6974
<link rel="preload" as="image" href="/assets/img/apps/launchpad.webp">
70-
<link rel="preload" as="image" href="/assets/img/apps/mail.webp">
75+
76+
<!-- TODO: Uncomment once "Mail" app is fixed -->
77+
<!-- <link rel="preload" as="image" href="/assets/img/apps/mail.webp"> -->
78+
7179
<link rel="preload" as="image" href="/assets/img/apps/notes.webp">
7280
<link rel="preload" as="image" href="/assets/img/apps/safari.webp">
7381
<link rel="preload" as="image" href="/assets/img/apps/text-edit.webp">
@@ -901,14 +909,16 @@
901909
</div>
902910
</div>
903911

904-
<form class="gform" method="post" action="https://script.google.com/macros/s/AKfycbx8I8BI2KW2kkHmf4apq4o8qRW5Z7MqP_5kenyjCdWqL7tPJJ2JJdaLLDZvw12QedGB/exec">
912+
<!-- TODO: Uncomment once "Mail" app is fixed -->
913+
<!-- <form class="gform" method="post" action="https://script.google.com/macros/s/AKfycbx8I8BI2KW2kkHmf4apq4o8qRW5Z7MqP_5kenyjCdWqL7tPJJ2JJdaLLDZvw12QedGB/exec">
905914
<div id="email" class="windows">
906915
<div class="email-header handle">
907916
<div class="email-header__op">
908917
<span role="button" tabindex="0" class="email-header__op-icon email-header__op-icon--red cancel"></span>
909918
<span role="button" tabindex="0" class="email-header__op-icon email-header__op-icon--yellow cancel"></span>
910919
<span role="button" tabindex="0" class="email-header__op-icon email-header__op-icon--green cancel"></span>
911920
</div>
921+
<div id="cf-turnstile"></div>
912922
<div class="g-recaptcha" data-theme="dark" data-callback="callback" data-sitekey="6Lcd6rIqAAAAAOabj0rba6jICI-HqlQr8A1uNSBt"></div>
913923
<button id="send-btn" class="cancel" type="submit" onclick="google.script.run.processForm(this.parentNode.parentNode.parentNode)" title="Send message" disabled="disabled"><i alt="Paper plane icon" class="fa fa-paper-plane" aria-hidden="true"></i></button>
914924
</div>
@@ -924,7 +934,7 @@
924934
925935
<textarea class="body" name="message" placeholder="Compose your message here, complete the captcha above, then click the paper plane button in the upper-right corner to send me your message. This window will automatically close once your message is sent, which may take a few seconds." required></textarea>
926936
</div>
927-
</form>
937+
</form> -->
928938

929939
<div id="notes" class="windows">
930940
<div class="body">
@@ -3589,7 +3599,9 @@ <h3 class="heading">ChatGPT</h3>
35893599
<div class="search"><input type="search" id="launchInput" onkeyup="filterLaunchpad()" placeholder="Search" title="Type in an app name"></div>
35903600

35913601
<nav id="launchNav">
3592-
<a role="button" tabindex="0" class="icon-mail launch" id="mailLaunch"><img src="/assets/img/apps/mail.webp" draggable="true" loading="lazy" fetchpriority="low" alt="Mail"> Mail (WIP)</a>
3602+
<!-- Temporarily hide "Mail" app / Contact form while it's being fixed -->
3603+
<!-- <a role="button" tabindex="0" class="icon-mail launch" id="mailLaunch"><img src="/assets/img/apps/mail.webp" draggable="true" loading="lazy" fetchpriority="low" alt="Mail"> Mail (WIP)</a> -->
3604+
35933605
<a role="button" tabindex="0" class="icon-safari launch" id="safariLaunch"><img src="/assets/img/apps/safari.webp" draggable="true" loading="lazy" fetchpriority="low" alt="Safari"> Safari</a>
35943606
<a role="button" tabindex="0" class="icon-notes launch" id="notesLaunch"><img src="/assets/img/apps/notes.webp" draggable="true" loading="lazy" fetchpriority="low" alt="Notes"> Notes</a>
35953607
<a role="button" tabindex="0" class="icon-textedit launch" id="textLaunch"><img src="/assets/img/apps/text-edit.webp" draggable="true" loading="lazy" fetchpriority="low" alt="TextEdit"> TextEdit</a>
@@ -3650,13 +3662,24 @@ <h3 class="heading">ChatGPT</h3>
36503662

36513663
<div id="dock">
36523664
<div role="tooltip" tabindex="0" id="open-menu" class="icon" aria-label="Launchpad" data-microtip-position="top"><img src="/assets/img/apps/launchpad.webp" draggable="false" fetchpriority="high" alt="Launchpad"></div>
3653-
<div role="tooltip" tabindex="0" id="mailDockIcon" class="icon" aria-label="Mail (WIP)" data-microtip-position="top"><img src="/assets/img/apps/mail.webp" draggable="false" fetchpriority="high" alt="Mail"></div>
3665+
3666+
<!-- Temporarily hide "Mail" app / Contact form while it's being fixed -->
3667+
<!-- <div role="tooltip" tabindex="0" id="mailDockIcon" class="icon" aria-label="Mail" data-microtip-position="top"><img src="/assets/img/apps/mail.webp" draggable="false" fetchpriority="high" alt="Mail"></div> -->
3668+
36543669
<div role="tooltip" tabindex="0" id="safariDockIcon" class="icon" aria-label="Safari" data-microtip-position="top"><img src="/assets/img/apps/safari.webp" draggable="false" fetchpriority="high" alt="Safari"></div>
36553670
<div role="tooltip" tabindex="0" id="notesDockIcon" class="icon" aria-label="Notes" data-microtip-position="top"><img src="/assets/img/apps/notes.webp" draggable="false" fetchpriority="high" alt="Notes"></div>
36563671
<div role="tooltip" tabindex="0" id="textEditDockIcon" class="icon" aria-label="TextEdit" data-microtip-position="top"><img style="height:4rem !important;image-rendering:smooth" src="/assets/img/apps/text-edit.webp" draggable="false" fetchpriority="high" alt="Notes"></div>
36573672
<div role="tooltip" tabindex="0" id="iTermDockIcon" class="icon open" aria-label="iTerm" data-microtip-position="top"><img src="/assets/img/apps/iterm.webp" draggable="false" fetchpriority="high" alt="iTerm"></div>
36583673
<div role="tooltip" tabindex="0" id="calcDockIcon" style="display:none" class="icon" aria-label="Calculator" data-microtip-position="top"><img src="/assets/img/apps/calc.webp" draggable="false" loading="lazy" fetchpriority="low" alt="Calculator"></div>
36593674
<div role="tooltip" tabindex="0" id="previewDockIcon" style="display:none" class="icon" aria-label="Preview" data-microtip-position="top"><img src="/assets/img/apps/preview.webp" draggable="false" loading="lazy" fetchpriority="low" alt="Preview"></div>
3675+
3676+
<!-- Temporarily replace "Mail" app (while it's being fixed) in dock with link to my blog... -->
3677+
<div role="tooltip" tabindex="0" id="blogDockIcon" class="icon" aria-label="Blog" data-microtip-position="top">
3678+
<a target="_blank" href="https://blog.lynkos.dev">
3679+
<img style="width:95%;padding-left:.25rem" src="/assets/img/favicons/favicon.svg" class="icon" draggable="false" fetchpriority="high" alt="Blog">
3680+
</a>
3681+
</div>
3682+
36603683
<div class="dock-divider"></div>
36613684
<div role="tooltip" tabindex="0" id="trash-icon" class="icon" aria-label="Trash" data-microtip-position="top"><img id="trash" src="/assets/img/system/trash.webp" draggable="false" fetchpriority="high" alt="Trash"></div>
36623685
</div>
@@ -3678,11 +3701,16 @@ <h3 class="heading">ChatGPT</h3>
36783701
<script src="/dist/utilities/timestamp.js"></script>
36793702
<script src="/dist/components/notes.js" defer></script>
36803703
<script src="/dist/components/text-edit.js" defer></script>
3681-
<script data-cfasync="false" src="/dist/components/email.js" defer></script>
3704+
3705+
<!-- TODO: Uncomment once "Mail" app is fixed -->
3706+
<!-- <script data-cfasync="false" src="/dist/components/email.js" defer></script> -->
3707+
36823708
<script src="/dist/components/preview.js" defer></script>
36833709
<script src="/dist/components/calculator.js" defer></script>
36843710
<script src="/dist/utilities/context-menu.js" defer></script>
3685-
<script>
3711+
3712+
<!-- TODO: Uncomment once "Mail" app is fixed -->
3713+
<!-- <script>
36863714
// Make launchpad searchable
36873715
function filterLaunchpad() {
36883716
const input = document.getElementById("launchInput"),
@@ -3713,6 +3741,33 @@ <h3 class="heading">ChatGPT</h3>
37133741
let content = document.querySelector(`${item}-content`);
37143742
content.classList.toggle("hidden-content");
37153743
}
3716-
</script>
3744+
3745+
// IIFE (creates isolated scope)
3746+
(function() {
3747+
// Reveal hidden elements once page loads to avoid FOUC
3748+
function revealHiddenElements() {
3749+
// Find all elements with the 'hidden' class
3750+
const hiddenElements = document.querySelectorAll('.hidden');
3751+
3752+
// Convert NodeList to Array for better browser compatibility
3753+
Array.from(hiddenElements).forEach(function(element, index) {
3754+
// Add a slight stagger effect for visual appeal
3755+
setTimeout(function() {
3756+
element.classList.add('reveal');
3757+
}, index * 50); // 50ms delay between each element
3758+
});
3759+
}
3760+
3761+
// Multiple trigger points for maximum reliability
3762+
if (document.readyState === 'loading') {
3763+
document.addEventListener('DOMContentLoaded', revealHiddenElements);
3764+
} else { // Document is already loaded
3765+
revealHiddenElements();
3766+
}
3767+
3768+
// Safety net: reveal after 2.5 seconds regardless
3769+
setTimeout(revealHiddenElements, 2500);
3770+
})();
3771+
</script> -->
37173772
</body>
37183773
</html>

src/components/windows.js

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,8 @@ document.addEventListener("DOMContentLoaded", function() {
558558
});
559559

560560
// Make some windows resizeable
561-
$("#mac-terminal, #email, #notes, #browser, .preview, .resume").resizable({
561+
// TODO: Add #email once mail app (aka contact form) is fixed
562+
$("#mac-terminal, #notes, #browser, .preview, .resume").resizable({
562563
containment: "#main-content",
563564
handles: "n, e, s, w, ne, nw, se, sw",
564565
animate: true
@@ -597,9 +598,6 @@ document.addEventListener("DOMContentLoaded", function() {
597598
// Open terminal
598599
openWindow("#iTermDockIcon", "#mac-terminal", "inline-block");
599600

600-
// Open mail
601-
//openWindow("#mailDockIcon", "#email");
602-
603601
// Open about me
604602
openWindow("#textEditDockIcon", "#text-edit");
605603

@@ -630,9 +628,6 @@ document.addEventListener("DOMContentLoaded", function() {
630628
// Launch terminal
631629
launchApp("#itermLaunch", "#mac-terminal", "#iTermDockIcon", "inline-block");
632630

633-
// Launch mail
634-
//launchApp("#mailLaunch", "#email", "#mailDockIcon");
635-
636631
// Launch about me
637632
launchApp("#textLaunch", "#text-edit", "#textEditDockIcon");
638633

@@ -648,9 +643,6 @@ document.addEventListener("DOMContentLoaded", function() {
648643
// Close terminal
649644
closeWindow(".header__op-icon--red", "#mac-terminal", "#iTermDockIcon");
650645

651-
// Close mail
652-
closeWindow(".email-header__op-icon--red", "#email", "#mailDockIcon");
653-
654646
// Close about me
655647
closeWindow(".text-edit-header__op-icon--red", "#text-edit", "#textEditDockIcon");
656648

@@ -675,9 +667,6 @@ document.addEventListener("DOMContentLoaded", function() {
675667
// Maximize Safari browser
676668
maximizeWindow(".browser-buttons-icon--green", "#browser");
677669

678-
// Maximize mail
679-
maximizeWindow(".email-header__op-icon--green", "#email");
680-
681670
// Maximize projects
682671
maximizeWindow(".buttons-icon--green", "#notes");
683672

@@ -689,4 +678,18 @@ document.addEventListener("DOMContentLoaded", function() {
689678

690679
// Maximize about me
691680
//maximizeWindow(".text-edit-header__op-icon--green", "#text-edit");
681+
682+
// TODO: UNCOMMENT THE FOLLOWING ONCE MAIL APP (AKA CONTACT FORM) IS FIXED
683+
684+
// Maximize mail
685+
//maximizeWindow(".email-header__op-icon--green", "#email");
686+
687+
// Close mail
688+
//closeWindow(".email-header__op-icon--red", "#email", "#mailDockIcon");
689+
690+
// Launch mail
691+
//launchApp("#mailLaunch", "#email", "#mailDockIcon");
692+
693+
// Open mail
694+
//openWindow("#mailDockIcon", "#email");
692695
});

0 commit comments

Comments
 (0)