Skip to content

Commit

Permalink
📧 Footer Mail Contact Method
Browse files Browse the repository at this point in the history
All Pages
- Added Gmail contact method.
  • Loading branch information
KingPr0o7 committed May 11, 2023
1 parent 6013485 commit 8ea3af4
Show file tree
Hide file tree
Showing 11 changed files with 76 additions and 5 deletions.
1 change: 1 addition & 0 deletions images/icons/gmail.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/blogs/all-about-me/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ <h1 class="blog-header">PROPHECY</h1>
<div class="contact-image-container">
<img class="contact-image" id="contact-twitter" src="/images/icons/twitter.svg" alt="Contact Method Twitter" title="Twitter" tabindex="0">
</div>
<div class="contact-image-container">
<img class="contact-image" id="contact-gmail" src="/images/icons/gmail.svg" alt="Contact Method Gmail" title="Gmail" tabindex="0">
</div>
<div class="contact-image-container">
<img class="contact-image" id="contact-github" src="/images/icons/github-white.svg" alt="Contact Method GitHub" title="GitHub" tabindex="0">
</div>
Expand Down
13 changes: 12 additions & 1 deletion src/blogs/all-about-me/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const code_org_inline_link = 'https://code.org/';
const discord_link = 'https://discord.gg/QGDPS6wHB8';
const youtube_link = 'https://www.youtube.com/channel/UCmMcPTUznYtu3zo7X3sVbgA';
const twitter_link = 'https://twitter.com/KingPr0o7';
const gmail_link = 'https://mail.google.com/mail/?view=cm&fs=1&to=nathan@ncp.dev&su=&body=';
const github_link = 'https://github.com/KingPr0o7';

//
Expand Down Expand Up @@ -132,7 +133,6 @@ document.getElementById("contact-youtube").addEventListener("keydown", function(
}
});


// Twitter
document.getElementById("contact-twitter").addEventListener("click", function() {
window.open(twitter_link, "_blank");
Expand All @@ -144,6 +144,17 @@ document.getElementById("contact-twitter").addEventListener("keydown", function(
}
});

// Gmail
document.getElementById("contact-gmail").addEventListener("click", function() {
window.open(gmail_link, "_blank");
});

document.getElementById("contact-gmail").addEventListener("keydown", function(event) {
if (event.key == "Enter") {
window.open(gmail_link, "_blank");
}
});

// GitHub
document.getElementById("contact-github").addEventListener("click", function() {
window.open(github_link, "_blank");
Expand Down
3 changes: 3 additions & 0 deletions src/blogs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ <h1 class="blog-card-preview-title">The Computer Science Speedrun</h1>
<div class="contact-image-container">
<img class="contact-image" id="contact-twitter" src="/images/icons/twitter.svg" alt="Contact Method Twitter" title="Twitter" tabindex="0">
</div>
<div class="contact-image-container">
<img class="contact-image" id="contact-gmail" src="/images/icons/gmail.svg" alt="Contact Method Gmail" title="Gmail" tabindex="0">
</div>
<div class="contact-image-container">
<img class="contact-image" id="contact-github" src="/images/icons/github-white.svg" alt="Contact Method GitHub" title="GitHub" tabindex="0">
</div>
Expand Down
13 changes: 12 additions & 1 deletion src/blogs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const the_computer_science_speedrun_blog = '../blogs/the-computer-science-speedr
const discord_link = 'https://discord.gg/QGDPS6wHB8';
const youtube_link = 'https://www.youtube.com/channel/UCmMcPTUznYtu3zo7X3sVbgA';
const twitter_link = 'https://twitter.com/KingPr0o7';
const gmail_link = 'https://mail.google.com/mail/?view=cm&fs=1&to=nathan@ncp.dev&su=&body=';
const github_link = 'https://github.com/KingPr0o7';

//
Expand Down Expand Up @@ -148,7 +149,6 @@ document.getElementById("contact-youtube").addEventListener("keydown", function(
}
});


// Twitter
document.getElementById("contact-twitter").addEventListener("click", function() {
window.open(twitter_link, "_blank");
Expand All @@ -160,6 +160,17 @@ document.getElementById("contact-twitter").addEventListener("keydown", function(
}
});

// Gmail
document.getElementById("contact-gmail").addEventListener("click", function() {
window.open(gmail_link, "_blank");
});

document.getElementById("contact-gmail").addEventListener("keydown", function(event) {
if (event.key == "Enter") {
window.open(gmail_link, "_blank");
}
});

// GitHub
document.getElementById("contact-github").addEventListener("click", function() {
window.open(github_link, "_blank");
Expand Down
3 changes: 3 additions & 0 deletions src/blogs/the-computer-science-speedrun/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ <h1 class="blog-header">THE AFTERMATH</h1>
<div class="contact-image-container">
<img class="contact-image" id="contact-twitter" src="/images/icons/twitter.svg" alt="Contact Method Twitter" title="Twitter" tabindex="0">
</div>
<div class="contact-image-container">
<img class="contact-image" id="contact-gmail" src="/images/icons/gmail.svg" alt="Contact Method Gmail" title="Gmail" tabindex="0">
</div>
<div class="contact-image-container">
<img class="contact-image" id="contact-github" src="/images/icons/github-white.svg" alt="Contact Method GitHub" title="GitHub" tabindex="0">
</div>
Expand Down
13 changes: 12 additions & 1 deletion src/blogs/the-computer-science-speedrun/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const privacy_link = '../../privacy-policy/index.html'
const discord_link = 'https://discord.gg/QGDPS6wHB8';
const youtube_link = 'https://www.youtube.com/channel/UCmMcPTUznYtu3zo7X3sVbgA';
const twitter_link = 'https://twitter.com/KingPr0o7';
const gmail_link = 'https://mail.google.com/mail/?view=cm&fs=1&to=nathan@ncp.dev&su=&body=';
const github_link = 'https://github.com/KingPr0o7';

//
Expand Down Expand Up @@ -145,7 +146,6 @@ document.getElementById("contact-youtube").addEventListener("keydown", function(
}
});


// Twitter
document.getElementById("contact-twitter").addEventListener("click", function() {
window.open(twitter_link, "_blank");
Expand All @@ -157,6 +157,17 @@ document.getElementById("contact-twitter").addEventListener("keydown", function(
}
});

// Gmail
document.getElementById("contact-gmail").addEventListener("click", function() {
window.open(gmail_link, "_blank");
});

document.getElementById("contact-gmail").addEventListener("keydown", function(event) {
if (event.key == "Enter") {
window.open(gmail_link, "_blank");
}
});

// GitHub
document.getElementById("contact-github").addEventListener("click", function() {
window.open(github_link, "_blank");
Expand Down
3 changes: 3 additions & 0 deletions src/main-page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ <h1 id="languages" class="page-header hidden"><span class="comment-indicator-sta
<div class="contact-image-container">
<img class="contact-image" id="contact-twitter" src="/images/icons/twitter.svg" alt="Contact Method Twitter" title="Twitter" tabindex="0">
</div>
<div class="contact-image-container">
<img class="contact-image" id="contact-gmail" src="/images/icons/gmail.svg" alt="Contact Method Gmail" title="Gmail" tabindex="0">
</div>
<div class="contact-image-container">
<img class="contact-image" id="contact-github" src="/images/icons/github-white.svg" alt="Contact Method GitHub" title="GitHub" tabindex="0">
</div>
Expand Down
13 changes: 12 additions & 1 deletion src/main-page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const privacy_link = '../privacy-policy/index.html'
const discord_link = 'https://discord.gg/QGDPS6wHB8';
const youtube_link = 'https://www.youtube.com/channel/UCmMcPTUznYtu3zo7X3sVbgA';
const twitter_link = 'https://twitter.com/KingPr0o7';
const gmail_link = 'https://mail.google.com/mail/?view=cm&fs=1&to=nathan@ncp.dev&su=&body=';
const github_link = 'https://github.com/KingPr0o7';


Expand Down Expand Up @@ -373,7 +374,6 @@ document.getElementById("contact-youtube").addEventListener("keydown", function(
}
});


// Twitter
document.getElementById("contact-twitter").addEventListener("click", function() {
window.open(twitter_link, "_blank");
Expand All @@ -385,6 +385,17 @@ document.getElementById("contact-twitter").addEventListener("keydown", function(
}
});

// Gmail
document.getElementById("contact-gmail").addEventListener("click", function() {
window.open(gmail_link, "_blank");
});

document.getElementById("contact-gmail").addEventListener("keydown", function(event) {
if (event.key == "Enter") {
window.open(gmail_link, "_blank");
}
});

// GitHub
document.getElementById("contact-github").addEventListener("click", function() {
window.open(github_link, "_blank");
Expand Down
3 changes: 3 additions & 0 deletions src/privacy-policy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ <h1 class="blog-header hidden">DETAILS</h1>
<div class="contact-image-container">
<img class="contact-image" id="contact-twitter" src="/images/icons/twitter.svg" alt="Contact Method Twitter" title="Twitter" tabindex="0">
</div>
<div class="contact-image-container">
<img class="contact-image" id="contact-gmail" src="/images/icons/gmail.svg" alt="Contact Method Gmail" title="Gmail" tabindex="0">
</div>
<div class="contact-image-container">
<img class="contact-image" id="contact-github" src="/images/icons/github-white.svg" alt="Contact Method GitHub" title="GitHub" tabindex="0">
</div>
Expand Down
13 changes: 12 additions & 1 deletion src/privacy-policy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const privacy_link = '../privacy-policy/index.html'
const discord_link = 'https://discord.gg/QGDPS6wHB8';
const youtube_link = 'https://www.youtube.com/channel/UCmMcPTUznYtu3zo7X3sVbgA';
const twitter_link = 'https://twitter.com/KingPr0o7';
const gmail_link = 'https://mail.google.com/mail/?view=cm&fs=1&to=nathan@ncp.dev&su=&body=';
const github_link = 'https://github.com/KingPr0o7';

//
Expand Down Expand Up @@ -156,7 +157,6 @@ document.getElementById("contact-youtube").addEventListener("keydown", function(
}
});


// Twitter
document.getElementById("contact-twitter").addEventListener("click", function() {
window.open(twitter_link, "_blank");
Expand All @@ -168,6 +168,17 @@ document.getElementById("contact-twitter").addEventListener("keydown", function(
}
});

// Gmail
document.getElementById("contact-gmail").addEventListener("click", function() {
window.open(gmail_link, "_blank");
});

document.getElementById("contact-gmail").addEventListener("keydown", function(event) {
if (event.key == "Enter") {
window.open(gmail_link, "_blank");
}
});

// GitHub
document.getElementById("contact-github").addEventListener("click", function() {
window.open(github_link, "_blank");
Expand Down

0 comments on commit 8ea3af4

Please sign in to comment.