2024-02-01 08:47:33 +01:00
|
|
|
<section class="box mini" id="contact">
|
2022-02-22 14:50:07 +01:00
|
|
|
<h1>Nous contacter</h1>
|
2022-09-01 10:20:13 +02:00
|
|
|
<form @submit="send" <% if (config.mailMethod === 'formspree' ) { %> id="contact" method="POST" action="https://formspree.io/f/<%= config.formspreeId %>" <% } %>>
|
2022-02-22 14:50:07 +01:00
|
|
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-16">
|
|
|
|
<div class="field">
|
|
|
|
<label for="email">Addresse e-mail*</label>
|
2022-09-01 10:20:13 +02:00
|
|
|
<input type="email" name="email" id="email" v-model="email" required />
|
2022-02-22 14:50:07 +01:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<label for="name">Prénom, nom</label>
|
2022-09-01 10:20:13 +02:00
|
|
|
<input type="text" name="name" id="name" v-model="name" />
|
2022-02-22 14:50:07 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-01 16:09:46 +01:00
|
|
|
|
2022-02-22 14:50:07 +01:00
|
|
|
<div class="field">
|
|
|
|
<label for="message">Message*</label>
|
2022-09-01 10:20:13 +02:00
|
|
|
<textarea name="message" id="message" rows="6" required v-model="message" ></textarea>
|
2022-02-22 14:50:07 +01:00
|
|
|
</div>
|
2022-03-01 16:09:46 +01:00
|
|
|
|
2022-09-01 11:37:57 +02:00
|
|
|
<% if (config.mailMethod !== 'formspree' ) { %>
|
|
|
|
<img src="/api/v1/contact" alt="Captcha" />
|
|
|
|
<div class="field">
|
|
|
|
<label for="captcha">Captcha</label>
|
|
|
|
<input type="text" name="captcha" id="captcha" v-model="captcha" required />
|
|
|
|
</div>
|
|
|
|
<% } %>
|
|
|
|
|
2022-09-01 10:20:13 +02:00
|
|
|
<button type="submit" class="button is-primary" :disabled="loading">
|
|
|
|
<% if (config.mailMethod !== 'formspree' ) { %>
|
|
|
|
<i class="icon-spin animate-spin" v-if="loading"></i>
|
|
|
|
<% } %>
|
|
|
|
Envoyer
|
|
|
|
</button>
|
2022-02-22 14:50:07 +01:00
|
|
|
</form>
|
2022-09-01 10:20:13 +02:00
|
|
|
</section>
|
|
|
|
|
2022-10-28 22:40:02 +02:00
|
|
|
<script>
|
|
|
|
const contactMethod = '<%= config.mailMethod %>';
|
|
|
|
</script>
|