From e47db8b070ecd9d338668be443c87b3f017b471d Mon Sep 17 00:00:00 2001 From: Romulus21 Date: Thu, 5 Nov 2026 22:39:42 +0100 Subject: [PATCH] Remplace Tailwind par une feuille de style classique MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit style/main.css est désormais servi tel quel par cargo-leptos (style-file) : remise à zéro des styles du navigateur, couleurs en variables CSS et classes nommées par composant à la place des classes utilitaires. Co-Authored-By: Claude Opus 5.5 --- Cargo.toml | 2 +- src/app/account.rs | 40 +- src/app/admin.rs | 51 ++- src/app/mod.rs | 75 ++-- src/app/sheets.rs | 146 +++---- src/app/tiles.rs | 23 +- src/model.rs | 2 +- style/main.css | 954 ++++++++++++++++++++++++++++++++++++++++++--- 8 files changed, 1060 insertions(+), 233 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b6aa36b..8ee9291 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,7 +61,7 @@ panic = "abort" output-name = "lisette" site-root = "target/site" site-pkg-dir = "pkg" -tailwind-input-file = "style/main.css" +style-file = "style/main.css" assets-dir = "public" site-addr = "127.0.0.1:3002" reload-port = 3001 diff --git a/src/app/account.rs b/src/app/account.rs index 810e860..039b680 100644 --- a/src/app/account.rs +++ b/src/app/account.rs @@ -83,13 +83,13 @@ fn RedirectIfSignedIn() -> impl IntoView { fn AuthLayout(title: &'static str, children: Children) -> impl IntoView { view! { -
-

+
+

"mes listes"

-
-

"Lisette · Courses"

-

{title}

+
+

"Lisette · Courses"

+

{title}

{children()}
@@ -101,7 +101,7 @@ pub fn FormError(#[prop(into)] error: Signal>) -> impl IntoView { move || { error.get().map(|msg| { view! { - } @@ -114,7 +114,7 @@ pub fn LoginPage() -> impl IntoView { let auth = expect_context::(); view! { - + @@ -135,9 +135,9 @@ pub fn LoginPage() -> impl IntoView { matches!(auth.registration.await, Ok(true)) .then(|| { view! { -

+

"Pas encore de compte ? " - + "Créer un compte"

@@ -158,14 +158,14 @@ pub fn RegisterPage() -> impl IntoView { {move || Suspend::new(async move { if !matches!(auth.registration.await, Ok(true)) { return view! { -

+

"Les inscriptions sont fermées pour le moment."

} .into_any(); } view! { - + impl IntoView { .into_any() })} -

+

"Déjà inscrit·e ? " - + "Se connecter"

@@ -209,8 +209,8 @@ pub fn RegisterPage() -> impl IntoView { #[component] pub fn Field(label: &'static str, children: Children) -> impl IntoView { view! { -