X-Git-Url: https://git.auder.net/pieces/Checkered/cb.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FContactForm.vue;h=b7aea9423942ccf3f38181a50da096f12b22110c;hb=b0a0468aa6f436f2ad4962492561ef430a3bc15c;hp=14273b082e8ea268d7746004324eda22a45f58b9;hpb=a154d45ebb7e409cd714d0c517e79c8147bdea69;p=vchess.git
diff --git a/client/src/components/ContactForm.vue b/client/src/components/ContactForm.vue
index 14273b08..b7aea942 100644
--- a/client/src/components/ContactForm.vue
+++ b/client/src/components/ContactForm.vue
@@ -1,41 +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
- label(for="mailContent") {{ st.tr["Content"] }} *
- br
- textarea#mailContent
+ 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] }}
@@ -80,9 +96,21 @@ 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: 10px
+ text-align: center
+ font-size: 1.3em
+ & > img
+ height: 1.5em
+ display: inline-block
+ margin-left: 5px
+
#dialog
padding: 5px
color: blue