From 09429080b19577e8d6fe18902c4b8335987c9622 Mon Sep 17 00:00:00 2001 From: gabatxo1312 Date: Fri, 30 Jan 2026 19:16:51 +0100 Subject: [PATCH] Add favicon and title --- .gitignore | 2 ++ assets/images/favicon.png | Bin 0 -> 2727 bytes locales/fr.yml | 21 +++++++++++++++------ templates/404.html | 5 +++++ templates/base.html | 1 + templates/books/edit.html | 4 ++++ templates/books/new.html | 4 ++++ templates/books/show.html | 12 ++++++++---- templates/error.html | 5 +++++ templates/index.html | 4 ++++ templates/users/edit.html | 6 +++++- templates/users/index.html | 4 ++++ templates/users/new.html | 6 +++++- 13 files changed, 62 insertions(+), 12 deletions(-) create mode 100644 assets/images/favicon.png diff --git a/.gitignore b/.gitignore index ea8c4bf..bcd5559 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /target + +.DS_Store diff --git a/assets/images/favicon.png b/assets/images/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..5dbbdbe9e842fbd1113ad3f0a000c8a76c93df4d GIT binary patch literal 2727 zcmY*b2{=@38y+i5Yvw+R$&wzRiqfFt!MhP{imXqR7rjwvc@Z z$&wO<8H!|&WcQE0{=WZz&-I+=exGwc_wzpQd#-bx1oUOS)2srl007{$fxfOe&4W*j znUQu62o2q$Il2IIy-R?~*Pun(B-RyU;AUb1fYLBC07%CLU^t=BE&!bX0QeIF0ETpe zzp*);#4ip#01)p9IQ5HTOYYKQB+a3jW1Z$$eD!St z006eLCq@Uz%I2r3*?3xF2pAJ%HD^2)cFhIv5_Mro}gST*3kw++F1&YsFdJNzpKy4sc)mWnGOXwo>( zv8M3AS>Z&9CRSExVxCHg(bb$0xor;jQfF;BzY>e{oQg@D$vjL+2B?Y(r!r|*v&2Zt zirIo>H4AJZiy=r>4K*Cq#*hw`kfyO*IC3jpMbd*F2Xl4;*@A$p_ zFz$VPSzjM*V`KC6V0RO$d|pqi+&JZ#MbYIFZ=}PU$vhR|+ho47=xBP?upd)zzY>r9 z0;wH9Qflg>*}2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ff --git a/locales/fr.yml b/locales/fr.yml index 4411bcc..22b0675 100644 --- a/locales/fr.yml +++ b/locales/fr.yml @@ -28,14 +28,17 @@ user: owner_books: Livres possédés borrowed_books: Livres empruntés index: - title: Tous les utilisateurs - button: Ajouter un utilisateur + title_tag: Liste des utilisateur.ice.s | BookForge + title: Tous les utilisateur.ice.s + button: Ajouter un.e utilisateur.ice edit: + title_tag: Modifier l'utilisateur.ice | BookForge title: Modifier - button: Modifier l'utilisateur + button: Modifier l'utilisateur.ice new: - title: Nouvel utilisateur - button: Créer l'utilisateur + title_tag: Nouvel utilisateur.ice | BookForge + title: Nouvel utilisateur.ice + button: Créer l'utilisateur.ice book: attributes: title: Titre @@ -45,24 +48,30 @@ book: current_holder: Détenteur.ice actuel.le comment: Commentaire index: + title_tag: Liste des livres | BookForge title: Tous les livres new: + title_tag: Nouveau livre | BookForge title: Nouveau livre button: Créer le livre button_short: Ajouter un livre edit: + title_tag: Modifier le livre | BookForge title: Modifier le livre button: Modifier le livre show: + title_tag: Details | BookForge book_details: Détails du livre - user_details: Détails de l'utilisateur + user_details: Détails de l'utilisateur.ice more_informations: Plus d'informations footer: message: Fait avec amour & Nique les fachos ! error: error_404: + title_tag: Erreur 404 | BookForge title: Oups ! Cette page n'existe pas subtitle: 404 NOT FOUND button: Retour à l'accueil generic: + title_tag: Erreur | BookForge title: Oups ! Une erreur s'est produite diff --git a/templates/404.html b/templates/404.html index 289eb9e..e76f185 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,4 +1,9 @@ {% extends "base.html" %} + +{% block title %} + {{ t!("error.error_404.title_tag") }} +{% endblock %} + {% block main %}

{{ t!("error.error_404.title") }}

diff --git a/templates/base.html b/templates/base.html index dcbe412..8e7f371 100644 --- a/templates/base.html +++ b/templates/base.html @@ -6,6 +6,7 @@ + diff --git a/templates/books/edit.html b/templates/books/edit.html index 462dbd1..ecb8734 100644 --- a/templates/books/edit.html +++ b/templates/books/edit.html @@ -2,6 +2,10 @@ {% import "components/typography.html" as typography %} {% import "components/cards.html" as cards %} +{% block title %} + {{ t!("book.edit.title_tag") }} +{% endblock %} + {% block main %} {{ typography::heading(t!("book.edit.title")) }} diff --git a/templates/books/new.html b/templates/books/new.html index 294aa03..719c9e4 100644 --- a/templates/books/new.html +++ b/templates/books/new.html @@ -3,6 +3,10 @@ {% import "components/cards.html" as cards %} {% import "components/inputs.html" as form_helpers %} +{% block title %} + {{ t!("book.new.title_tag") }} +{% endblock %} + {% block main %} {{ typography::heading(t!("book.new.title")) }} diff --git a/templates/books/show.html b/templates/books/show.html index 88f8603..61042f2 100644 --- a/templates/books/show.html +++ b/templates/books/show.html @@ -4,12 +4,16 @@ {% import "components/fields.html" as fields %} {% import "components/cards.html" as cards %} +{% block title %} + {{ t!("book.show.title_tag") }} +{% endblock %} + {% block main %} {{ typography::book_heading(book.title, book, show = false) }} {% call cards::card() %} -
-
{{ t!("book.show.book_details") }}
+
+
{{ t!("book.show.book_details") }}
{{ fields::field(t!("book.attributes.title"), book.title) }} {{ fields::field(t!("book.attributes.authors"), book.authors) }} @@ -20,7 +24,7 @@ {{ fields::field(t!("book.attributes.description"), "-") }} {% endmatch %} -
{{ t!("book.show.user_details") }}
+
{{ t!("book.show.user_details") }}
{{ fields::field(t!("book.attributes.owner"), owner.name) }} {% match current_holder %} @@ -31,7 +35,7 @@ {% endmatch %} -
{{ t!("book.show.more_informations") }}
+
{{ t!("book.show.more_informations") }}
{% match book.comment %} {% when Some with (comment) %} {{ fields::field(t!("book.attributes.comment"), comment) }} diff --git a/templates/error.html b/templates/error.html index eba937a..abc0eee 100644 --- a/templates/error.html +++ b/templates/error.html @@ -1,4 +1,9 @@ {% extends "base.html" %} + +{% block title %} + {{ t!("error.generic.title_tag") }} +{% endblock %} + {% block main %}

{{ t!("error.generic.title") }}

diff --git a/templates/index.html b/templates/index.html index 4dc9640..641f7a7 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,6 +3,10 @@ {% import "components/dropdown.html" as dropdown %} {% import "components/cards.html" as cards %} +{% block title %} + {{ t!("book.index.title_tag") }} +{% endblock %} + {% block main %} {% call typography::heading(t!("book.index.title")) %} diff --git a/templates/users/edit.html b/templates/users/edit.html index 856f149..7d5d9b2 100644 --- a/templates/users/edit.html +++ b/templates/users/edit.html @@ -1,7 +1,11 @@ {% extends "base.html" %} {% import "components/typography.html" as typography %} {% import "components/cards.html" as cards %} -o{% import "components/inputs.html" as form_helpers %} +{% import "components/inputs.html" as form_helpers %} + +{% block title %} + {{ t!("book.edit.title_tag") }} +{% endblock %} {% block main %} {{ typography::heading(t!("user.edit.title")) }} diff --git a/templates/users/index.html b/templates/users/index.html index 6ee5e3d..ec3eb08 100644 --- a/templates/users/index.html +++ b/templates/users/index.html @@ -4,6 +4,10 @@ {% import "components/cards.html" as cards %} {% import "components/inputs.html" as form_helpers %} +{% block title %} + {{ t!("user.index.title_tag") }} +{% endblock %} + {% block main %} {% call typography::heading(t!("user.index.title")) %} {{ t!("user.index.button") }} diff --git a/templates/users/new.html b/templates/users/new.html index bdbc639..4e028af 100644 --- a/templates/users/new.html +++ b/templates/users/new.html @@ -1,7 +1,11 @@ {% extends "base.html" %} {% import "components/typography.html" as typography %} {% import "components/cards.html" as cards %} -o{% import "components/inputs.html" as form_helpers %} +{% import "components/inputs.html" as form_helpers %} + +{% block title %} + {{ t!("user.new.title_tag") }} +{% endblock %} {% block main %} {{ typography::heading(t!("user.new.title")) }}