diff --git a/images/icons/gmail.svg b/images/icons/gmail.svg new file mode 100644 index 0000000..e1b1b89 --- /dev/null +++ b/images/icons/gmail.svg @@ -0,0 +1 @@ + gmail \ No newline at end of file diff --git a/src/blogs/all-about-me/index.html b/src/blogs/all-about-me/index.html index 626def9..079a7eb 100644 --- a/src/blogs/all-about-me/index.html +++ b/src/blogs/all-about-me/index.html @@ -117,6 +117,9 @@

PROPHECY

Contact Method Twitter
+
+ Contact Method Gmail +
Contact Method GitHub
diff --git a/src/blogs/all-about-me/index.js b/src/blogs/all-about-me/index.js index 999936b..a2ddfc3 100644 --- a/src/blogs/all-about-me/index.js +++ b/src/blogs/all-about-me/index.js @@ -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'; // @@ -132,7 +133,6 @@ document.getElementById("contact-youtube").addEventListener("keydown", function( } }); - // Twitter document.getElementById("contact-twitter").addEventListener("click", function() { window.open(twitter_link, "_blank"); @@ -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"); diff --git a/src/blogs/index.html b/src/blogs/index.html index 3c1037e..76de8fa 100644 --- a/src/blogs/index.html +++ b/src/blogs/index.html @@ -133,6 +133,9 @@

The Computer Science Speedrun

Contact Method Twitter
+
+ Contact Method Gmail +
Contact Method GitHub
diff --git a/src/blogs/index.js b/src/blogs/index.js index d6fc573..7831599 100644 --- a/src/blogs/index.js +++ b/src/blogs/index.js @@ -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'; // @@ -148,7 +149,6 @@ document.getElementById("contact-youtube").addEventListener("keydown", function( } }); - // Twitter document.getElementById("contact-twitter").addEventListener("click", function() { window.open(twitter_link, "_blank"); @@ -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"); diff --git a/src/blogs/the-computer-science-speedrun/index.html b/src/blogs/the-computer-science-speedrun/index.html index 882a81a..0d85231 100644 --- a/src/blogs/the-computer-science-speedrun/index.html +++ b/src/blogs/the-computer-science-speedrun/index.html @@ -153,6 +153,9 @@

THE AFTERMATH

Contact Method Twitter
+
+ Contact Method Gmail +
Contact Method GitHub
diff --git a/src/blogs/the-computer-science-speedrun/index.js b/src/blogs/the-computer-science-speedrun/index.js index 3658738..f6780ad 100644 --- a/src/blogs/the-computer-science-speedrun/index.js +++ b/src/blogs/the-computer-science-speedrun/index.js @@ -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'; // @@ -145,7 +146,6 @@ document.getElementById("contact-youtube").addEventListener("keydown", function( } }); - // Twitter document.getElementById("contact-twitter").addEventListener("click", function() { window.open(twitter_link, "_blank"); @@ -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"); diff --git a/src/main-page/index.html b/src/main-page/index.html index bbaa438..a8e99c1 100644 --- a/src/main-page/index.html +++ b/src/main-page/index.html @@ -277,6 +277,9 @@

Contact Method Twitter +
+ Contact Method Gmail +
Contact Method GitHub
diff --git a/src/main-page/index.js b/src/main-page/index.js index c4c992b..d47a714 100644 --- a/src/main-page/index.js +++ b/src/main-page/index.js @@ -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'; @@ -373,7 +374,6 @@ document.getElementById("contact-youtube").addEventListener("keydown", function( } }); - // Twitter document.getElementById("contact-twitter").addEventListener("click", function() { window.open(twitter_link, "_blank"); @@ -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"); diff --git a/src/privacy-policy/index.html b/src/privacy-policy/index.html index a46262f..8323b05 100644 --- a/src/privacy-policy/index.html +++ b/src/privacy-policy/index.html @@ -120,6 +120,9 @@

DETAILS

Contact Method Twitter
+
+ Contact Method Gmail +
Contact Method GitHub
diff --git a/src/privacy-policy/index.js b/src/privacy-policy/index.js index a953d87..39f5fc1 100644 --- a/src/privacy-policy/index.js +++ b/src/privacy-policy/index.js @@ -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'; // @@ -156,7 +157,6 @@ document.getElementById("contact-youtube").addEventListener("keydown", function( } }); - // Twitter document.getElementById("contact-twitter").addEventListener("click", function() { window.open(twitter_link, "_blank"); @@ -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");