X-Git-Url: https://git.auder.net/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fcomponents%2FContactForm.vue;h=78e8b8374ccf6a07689893f6205c7bdae5bf6fb1;hb=89781a5536c13ca6bb328cc8806657c8445f3bc5;hp=50270e69e61fa3f3836438754976829e6709810d;hpb=e57c4de4148d43e7635e09adcde4e56585aea303;p=vchess.git diff --git a/client/src/components/ContactForm.vue b/client/src/components/ContactForm.vue index 50270e69..78e8b837 100644 --- a/client/src/components/ContactForm.vue +++ b/client/src/components/ContactForm.vue @@ -4,12 +4,15 @@ div type="checkbox" @change="trySetEnterTime($event)" ) - div( + div#contactDiv( role="dialog" data-checkbox="modalContact" ) .card label.modal-close(for="modalContact") + a#discordLink(href="https://discord.gg/a9ZFKBe") + span {{ st.tr["Discord invitation"] }} + img(src="/images/icons/discord.svg") fieldset label(for="userEmail") {{ st.tr["Email"] }} input#userEmail(type="email" :value="st.user.email") @@ -26,6 +29,7 @@ div import { ajax } from "@/utils/ajax"; import { store } from "@/store"; import { checkNameEmail } from "@/data/userCheck"; +import { processModalClick } from "@/utils/modalClick.js"; export default { name: "my-contact-form", data: function() { @@ -35,6 +39,10 @@ export default { infoMsg: "" }; }, + mounted: function() { + document.getElementById("contactDiv") + .addEventListener("click", processModalClick); + }, methods: { trySetEnterTime: function(event) { if (event.target.checked) { @@ -93,6 +101,15 @@ textarea#mailContent width: 100% min-height: 100px +#discordLink + display: block + margin-top: 7px + text-align: center + & > img + height: 1.3em + display: inline-block + margin-left: 5px + #dialog padding: 5px color: blue