Finished. Now some last styling
[vchess.git] / client / src / components / ContactForm.vue
index 20d35b0..734d7f1 100644 (file)
@@ -1,7 +1,8 @@
 <template lang="pug">
 div
   input#modalContact.modal(type="checkbox")
-  div(role="dialog" aria-labelledby="contactTitle")
+  div(role="dialog" data-checkbox="modalContact"
+      aria-labelledby="contactTitle")
     form.card.smallpad
       label.modal-close(for="modalContact")
       h3#contactTitle.section {{ st.tr["Contact form"] }}
@@ -16,13 +17,15 @@ div
         br
         textarea#mailContent
       fieldset
-        button(type="button" onClick="trySendMessage()") Send
+        button(type="button" @click="trySendMessage") Send
         p#emailSent {{ st.tr["Email sent!"] }}
 </template>
 
 <script>
 import { ajax } from "../utils/ajax";
 import { store } from "@/store";
+import { checkNameEmail } from "@/data/userCheck";
+
 export default {
   name: "my-contact-form",
   data: function() {
@@ -65,3 +68,9 @@ export default {
        },
 };
 </script>
+
+<style lang="sass" scoped>
+#emailSent
+  color: blue
+  display: none
+</style>