diff --git a/index.html b/index.html index 32a607e..8a37f08 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ diff --git a/src/js/email.js b/src/js/animesEmailSender.js similarity index 96% rename from src/js/email.js rename to src/js/animesEmailSender.js index a8122f2..eaa45a3 100644 --- a/src/js/email.js +++ b/src/js/animesEmailSender.js @@ -10,7 +10,7 @@ button.addEventListener("click", (e) => { emailjs .send( "service_l0s9372", - "template_n3aufxj", + "template_1imfn8o", { name: name.value, email: email.value }, "Xts0UwNohpeU1f3pZ" ) diff --git a/src/js/gamesEmailSender.js b/src/js/gamesEmailSender.js new file mode 100644 index 0000000..32dc653 --- /dev/null +++ b/src/js/gamesEmailSender.js @@ -0,0 +1,37 @@ +const button = document.querySelector('button[value="SEND"]'); + +button.addEventListener("click", (e) => { + e.preventDefault(); + + const name = document.getElementById("name"); + const email = document.getElementById("email"); + + if (name.value && email.value) { + emailjs + .send( + "service_l0s9372", + "template_n3aufxj", + { name: name.value, email: email.value }, + "Xts0UwNohpeU1f3pZ" + ) + .then( + function () { + console.log("SUCCESS!"); + }, + function (error) { + console.log("FAILED...", error); + } + ); + name.value = ""; + email.value = ""; + + const form = document.querySelector("form"); + if (document.querySelector(".thanks")) { + document.querySelector(".thanks").remove(); + } + form.insertAdjacentHTML( + "afterend", + '

Thank you for subscribing to our newsletter!

' + ); + } +}); diff --git a/src/pages/animes/animes.html b/src/pages/animes/animes.html index 1d09cd7..84af479 100644 --- a/src/pages/animes/animes.html +++ b/src/pages/animes/animes.html @@ -79,7 +79,7 @@

Receive news and information in the palm of your hand.

type="text/javascript" src="https://cdn.jsdelivr.net/npm/@emailjs/browser@3/dist/email.min.js" > - + diff --git a/src/pages/games/games.css b/src/pages/games/games.css index a7d1873..88cd17c 100644 --- a/src/pages/games/games.css +++ b/src/pages/games/games.css @@ -421,7 +421,9 @@ section.grid .col-2 { } .newsletter .bottom .form-container .thanks { position: absolute; - bottom: 40px; + bottom: 20px; + font-size: 18px; + font-weight: 500; } .newsletter .bottom .form-container .label { font-size: 18px; diff --git a/src/pages/games/games.css.map b/src/pages/games/games.css.map index 17ba2be..8729a0a 100644 --- a/src/pages/games/games.css.map +++ b/src/pages/games/games.css.map @@ -1 +1 @@ -{"version":3,"sources":["games.scss","games.css"],"names":[],"mappings":"AAAQ,mHAAA;AACA,6BAAA;AAER;;;EAGE,sBAAA;EACA,UAAA;EACA,SAAA;EACA,gCAAA;EACA,yBAAA;KAAA,sBAAA;UAAA,iBAAA;EACA,kCAAA;ACAF;;ADGA;EAEE,gBAAA;EACA,gCAAA;EACA,aAAA;EACA,mBAAA;EACA,sBAAA;EACA,iBAAA;EACA,kBAAA;EACA,YAAA;EACA,eAAA;EACA,gBAAA;EACA,kBAAA;EACA,cAAA;ACDF;;ADIA;EACE,aAAA;EACA,iCAAA;EACA,yBAAA;EACA,eAAA;EACA,qBAAA;OAAA,gBAAA;ACDF;ADGE;EACE,8CAAA;EACA,2BAAA;EACA,4BAAA;EACA,sBAAA;EACA,mBAAA;EACA,aAAA;EACA,aAAA;EACA,qBAAA;EACA,kBAAA;EACA,gBAAA;EACA,eAAA;ACDJ;ADGI;EACE,WAAA;EACA,WAAA;EACA,YAAA;EACA,2EAAA;EAKA,kBAAA;EACA,MAAA;EACA,OAAA;ACLN;ADQI;EACE,aAAA;EACA,sBAAA;EACA,aAAA;EACA,UAAA;ACNN;ADQM;EACE,UAAA;ACNR;ADSM;EACE,UAAA;EACA,WAAA;EACA,iBAAA;EACA,eAAA;ACPR;ADUM;EACE,qBAAA;EACA,uBAAA;EAAA,kBAAA;EACA,kBAAA;EACA,yBAAA;EACA,kBAAA;EACA,gBAAA;EACA,WAAA;EACA,gBAAA;EACA,mBAAA;EACA,YAAA;EACA,eAAA;EACA,6BAAA;ACRR;ADUQ;EACE,iBAAA;EACA,mBAAA;EACA,YAAA;ACRV;ADcE;EACE,aAAA;EACA,kCAAA;EACA,aAAA;EACA,kBAAA;ACZJ;ADcI;EACE,6BAAA;EACA,gBAAA;EACA,aAAA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AAA;ACxFd;AD6FQ;EACE,UAAA;EACA,6DAAA;EACA,YAAA;EACA,YAAA;EACA,6BAAA;EACA,WAAA;EACA,kBAAA;EACA,oBAAA;EACA,eAAA;EACA,gBAAA;EACA,iBAAA;EACA,mBAAA;EACA,eAAA;EACA,yBAAA;EACA,YAAA;AC3FV;AD6FU;EACE,UAAA;AC3FZ","file":"games.css"} \ No newline at end of file +{"version":3,"sources":["games.scss","games.css"],"names":[],"mappings":"AAAQ,mHAAA;AACA,6BAAA;AAER;;;EAGE,sBAAA;EACA,UAAA;EACA,SAAA;EACA,gCAAA;EACA,yBAAA;KAAA,sBAAA;UAAA,iBAAA;EACA,kCAAA;ACAF;;ADGA;EACE,kDAAA;EACA,gCAAA;EACA,aAAA;EACA,mBAAA;EACA,sBAAA;EACA,iBAAA;EACA,kBAAA;EACA,YAAA;EACA,eAAA;EACA,gBAAA;EACA,kBAAA;EACA,cAAA;ACAF;;ADGA;EACE,aAAA;EACA,iCAAA;EACA,yBAAA;EACA,eAAA;EACA,qBAAA;OAAA,gBAAA;ACAF;ADEE;EACE,8CAAA;EACA,2BAAA;EACA,4BAAA;EACA,sBAAA;EACA,mBAAA;EACA,aAAA;EACA,aAAA;EACA,qBAAA;EACA,kBAAA;EACA,gBAAA;EACA,eAAA;ACAJ;ADEI;EACE,WAAA;EACA,WAAA;EACA,YAAA;EACA,2EAAA;EAKA,kBAAA;EACA,MAAA;EACA,OAAA;ACJN;ADOI;EACE,aAAA;EACA,sBAAA;EACA,aAAA;EACA,UAAA;ACLN;ADOM;EACE,UAAA;ACLR;ADQM;EACE,UAAA;EACA,WAAA;EACA,iBAAA;EACA,eAAA;ACNR;ADSM;EACE,qBAAA;EACA,uBAAA;EAAA,kBAAA;EACA,kBAAA;EACA,yBAAA;EACA,kBAAA;EACA,gBAAA;EACA,WAAA;EACA,gBAAA;EACA,mBAAA;EACA,YAAA;EACA,eAAA;EACA,6BAAA;ACPR;ADSQ;EACE,iBAAA;EACA,mBAAA;EACA,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EACA,mBAAA;EACA,yBAAA;EACA,kBAAA;AC5DR;AD+DM;EACE,eAAA;EACA,kBAAA;EACA,gBAAA;EACA,cAAA;EACA,iBAAA;AC7DR;ADgEM;EACE,aAAA;EACA,8BAAA;EACA,kBAAA;AC9DR;ADgEQ;EACE,kBAAA;EACA,aAAA;EACA,mBAAA;AC9DV;ADiEQ;EACE,kBAAA;EACA,QAAA;EACA,iBAAA;EACA,aAAA;EACA,kBAAA;EACA,iBAAA;AC/DV;ADkEQ;EACE,UAAA;EACA,oCAAA;EACA,eAAA;EACA,oBAAA;EACA,aAAA;EACA,kBAAA;EACA,kBAAA;EACA,YAAA;AChEV;ADkEU;EACE,mBAAA;AChEZ;ADmEU;EACE,YAAA;ACjEZ;ADkEY;EACE,YAAA;EACA,UAAA;AChEd;ADqEQ;EACE,UAAA;EACA,6DAAA;EACA,YAAA;EACA,YAAA;EACA,6BAAA;EACA,WAAA;EACA,kBAAA;EACA,oBAAA;EACA,eAAA;EACA,gBAAA;EACA,iBAAA;EACA,mBAAA;EACA,eAAA;EACA,yBAAA;EACA,YAAA;ACnEV;ADqEU;EACE,UAAA;ACnEZ","file":"games.css"} \ No newline at end of file diff --git a/src/pages/games/games.html b/src/pages/games/games.html index 55891d5..b33a3e9 100644 --- a/src/pages/games/games.html +++ b/src/pages/games/games.html @@ -303,7 +303,7 @@

Receive news and information in the palm of your hand.

type="text/javascript" src="https://cdn.jsdelivr.net/npm/@emailjs/browser@3/dist/email.min.js" > - + diff --git a/src/pages/games/games.scss b/src/pages/games/games.scss index a8ad41f..d253be3 100644 --- a/src/pages/games/games.scss +++ b/src/pages/games/games.scss @@ -499,7 +499,9 @@ section.grid { .thanks { position: absolute; - bottom: 40px; + bottom: 20px; + font-size: 18px; + font-weight: 500; } .label {