From 75494b65299a4367eec89b129adb6ff6799e48f1 Mon Sep 17 00:00:00 2001 From: Arthur Lefebvre Date: Wed, 5 Nov 2025 01:16:49 +0100 Subject: [PATCH] Add buttons on book form --- front/src/BigIcon.vue | 58 +++++++++++++++++++++++++++++++++++++++ front/src/BookForm.vue | 35 +++++++++++++++++------ front/src/locales/en.json | 5 +++- front/src/locales/fr.json | 5 +++- 4 files changed, 92 insertions(+), 11 deletions(-) create mode 100644 front/src/BigIcon.vue diff --git a/front/src/BigIcon.vue b/front/src/BigIcon.vue new file mode 100644 index 0000000..f5d431b --- /dev/null +++ b/front/src/BigIcon.vue @@ -0,0 +1,58 @@ + + + + + diff --git a/front/src/BookForm.vue b/front/src/BookForm.vue index ed44e04..108f922 100644 --- a/front/src/BookForm.vue +++ b/front/src/BookForm.vue @@ -3,6 +3,7 @@ import { getBook, getImagePathOrDefault, putBookUpdate } from './api.js' import { onBeforeRouteUpdate } from 'vue-router' import { VRating } from 'vuetify/components/VRating'; + import BigIcon from './BigIcon.vue'; const props = defineProps({ id: String @@ -25,10 +26,8 @@ @@ -57,9 +66,17 @@ img { width:auto; } -.imagewithrating { - vertical-align: top; - display: inline-block; - text-align: center; +.centered { + display:flex; + justify-content:center; + align-items:center; } + +.iconscontainer { + border: solid; + border-radius: 50px; + width: 250px; +} + + diff --git a/front/src/locales/en.json b/front/src/locales/en.json index 9a3c257..f1400e4 100644 --- a/front/src/locales/en.json +++ b/front/src/locales/en.json @@ -41,6 +41,9 @@ "wantread": "I want to read it" }, "bookform": { - "error": "Error when loading book: {error}" + "error": "Error when loading book: {error}", + "read": "Read", + "startread": "Started", + "wantread": "Interested" } } diff --git a/front/src/locales/fr.json b/front/src/locales/fr.json index fe1c695..35f64d1 100644 --- a/front/src/locales/fr.json +++ b/front/src/locales/fr.json @@ -41,6 +41,9 @@ "wantread": "Je veux le lire" }, "bookform": { - "error": "Erreur pendant le chargement du livre: {error}" + "error": "Erreur pendant le chargement du livre: {error}", + "read": "Lu", + "startread": "Commencé", + "wantread": "Intéressé" } }