X-Git-Url: https://git.auder.net/pieces/Checkered/cb.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FContactForm.vue;h=78e8b8374ccf6a07689893f6205c7bdae5bf6fb1;hb=f1c77d60e6a21b0f4a7350319ecce3a3c5cef980;hp=61796bfa73fb694d30e4c2891159ef306e997f78;hpb=89021f181ac0689bbc785ce0ebd9a910e66352b0;p=vchess.git
diff --git a/client/src/components/ContactForm.vue b/client/src/components/ContactForm.vue
index 61796bfa..78e8b837 100644
--- a/client/src/components/ContactForm.vue
+++ b/client/src/components/ContactForm.vue
@@ -1,39 +1,51 @@
div
- input#modalContact.modal(type="checkbox" @change="trySetEnterTime($event)")
- div(role="dialog" data-checkbox="modalContact")
+ input#modalContact.modal(
+ type="checkbox"
+ @change="trySetEnterTime($event)"
+ )
+ div#contactDiv(
+ role="dialog"
+ data-checkbox="modalContact"
+ )
.card
label.modal-close(for="modalContact")
- form(@submit.prevent="trySendMessage()" @keyup.enter="trySendMessage()")
- fieldset
- label(for="userEmail") {{ st.tr["Email"] }}
- input#userEmail(type="email")
- fieldset
- label(for="mailSubject") {{ st.tr["Subject"] }}
- input#mailSubject(type="text")
- fieldset
- textarea#mailContent(:placeholder="st.tr['Your message']")
+ 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")
+ fieldset
+ label(for="mailSubject") {{ st.tr["Subject"] }}
+ input#mailSubject(type="text")
+ fieldset
+ textarea#mailContent(:placeholder="st.tr['Your message']")
button(@click="trySendMessage()") {{ st.tr["Send"] }}
#dialog.text-center {{ st.tr[infoMsg] }}
@@ -78,9 +96,20 @@ export default {
[type="checkbox"].modal+div .card
max-width: 767px
max-height: 100%
+
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