From dd31944bc5331120a3f50f177e4530f5a623d1e3 Mon Sep 17 00:00:00 2001
From: LJ5O <75009579+LJ5O@users.noreply.github.com>
Date: Tue, 1 Apr 2025 17:51:40 +0200
Subject: [PATCH] Worked on the contact system
---
src/assets/localization/en/localization.json | 25 +++++
src/components/contact/emails.vue | 98 ++++++++++++++++++++
src/components/home/intersection.vue | 6 +-
src/router/index.js | 6 ++
src/views/ContactView.vue | 36 +++++++
src/views/HomeView.vue | 2 +-
6 files changed, 170 insertions(+), 3 deletions(-)
create mode 100644 src/components/contact/emails.vue
create mode 100644 src/views/ContactView.vue
diff --git a/src/assets/localization/en/localization.json b/src/assets/localization/en/localization.json
index 645be6c..5ebe32a 100644
--- a/src/assets/localization/en/localization.json
+++ b/src/assets/localization/en/localization.json
@@ -94,5 +94,30 @@
"desc": "When working with AI, creating a high-quality dataset for training is vital. Many operations and transformations need to be executed, which require a solid understanding of data management. Some infrasctructures also come with databases containing valuable information, that should be extracted and analysed to extract the best from it."
}
}
+ },
+ "contact": {
+ "title": "Send me a message !",
+ "subtitle": "Thanks for your interest ! If you wish to contact me, the easiest way is by Email.",
+ "captcha":{
+ "title": "Sorry, but could you check that you're an human ?",
+ "desc": "Some bots are exploring the web to collect email adresses and send spam. In order to avoid this, please fill the following :",
+ "question": "If we add {x} and {y} minus {z}, what would the result be ?",
+ "submit": "Submit",
+ "false": "Sorry, this doesn't seems right !"
+ },
+ "emails": {
+ "work" :{
+ "title": "Work",
+ "desc": "If your message is about a job opportunity, a company or some professional matter, please use {email}"
+ },
+ "school" :{
+ "title": "Academics and research",
+ "desc": "{email} is the best suited to talk about universities and research."
+ },
+ "others" :{
+ "title": "Other cases",
+ "desc": "In case the two previous emails don't suit your needs, you can also use {email}. This address is considered to be a general purposes one."
+ }
+ }
}
}
\ No newline at end of file
diff --git a/src/components/contact/emails.vue b/src/components/contact/emails.vue
new file mode 100644
index 0000000..bfd9135
--- /dev/null
+++ b/src/components/contact/emails.vue
@@ -0,0 +1,98 @@
+
+ {{ $t("contact.emails.work.desc", {email:mail1}) }} {{ $t("contact.emails.school.desc", {email:mail2}) }} {{ $t("contact.emails.others.desc", {email:mail3}) }} {{ $t("contact.captcha.desc") }} {{ $t("contact.captcha.false") }}{{ $t("contact.emails.work.title") }}
+ {{ $t("contact.emails.school.title") }}
+ {{ $t("contact.emails.others.title") }}
+ {{ $t("contact.captcha.title") }}
+