mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-30 19:57:54 +01:00
fix newsletter subscription
This commit is contained in:
@@ -44,12 +44,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<div v-if="error" class="flex">
|
<div v-if="error" class="flex">
|
||||||
<div class="rounded-xl px-3 py-2 bg-red-300 font-bold ">
|
<div class="rounded-xl px-3 py-2 bg-red-300 font-bold dark:text-black">
|
||||||
{{ $t('contact.form.error') }}
|
{{ $t('contact.form.error') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="success" class="flex">
|
<div v-if="success" class="flex">
|
||||||
<div class="rounded-xl px-3 py-2 bg-green-300 font-bold ">
|
<div class="rounded-xl px-3 py-2 bg-green-300 font-bold dark:text-black">
|
||||||
{{ $t('contact.form.success', { email: form.email }) }}
|
{{ $t('contact.form.success', { email: form.email }) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -62,8 +62,8 @@
|
|||||||
{{ $t('contact.how_to.description') }}
|
{{ $t('contact.how_to.description') }}
|
||||||
</h3>
|
</h3>
|
||||||
<div class="mt-4 email text-lg duration-300 text-purple-500 hover:text-purple-700 cursor-pointer flex">
|
<div class="mt-4 email text-lg duration-300 text-purple-500 hover:text-purple-700 cursor-pointer flex">
|
||||||
<a class="mr-2" href="mailto:contact@arthurdanjou.fr?subject=Please enter here your project name">
|
<a class="mr-2" href="mailto:me@arthurdanjou.fr?subject=Please enter here your project name">
|
||||||
contact@arthurdanjou.fr
|
me@arthurdanjou.fr
|
||||||
</a>
|
</a>
|
||||||
<div class="arrow duration-300">
|
<div class="arrow duration-300">
|
||||||
<svg class="inline icon" height="25" width="25" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
<svg class="inline icon" height="25" width="25" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
@@ -119,7 +119,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async handleForm () {
|
async handleForm () {
|
||||||
await this.$axios.post('/subscribers',
|
await this.$axios.post('subscribers',
|
||||||
{
|
{
|
||||||
email: this.form.email,
|
email: this.form.email,
|
||||||
name: this.form.name
|
name: this.form.name
|
||||||
|
|||||||
Reference in New Issue
Block a user