From 404b51e7498efde503f665c5a378d5c4a589c8f8 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Thu, 10 Jul 2025 00:04:58 +0000 Subject: [PATCH] Improve the appearance and structure of the new sales registration page Enhance the UI of NewSaleForm.tsx and index.css with improved styling and section demarcation. Replit-Commit-Author: Agent Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e4b7aaf3-8a81-4637-b767-87169fd5dba1.jpg --- client/src/components/NewSaleForm.tsx | 40 +++++++++--------- client/src/index.css | 60 ++++++++++++++++++++++++--- 2 files changed, 74 insertions(+), 26 deletions(-) diff --git a/client/src/components/NewSaleForm.tsx b/client/src/components/NewSaleForm.tsx index 5ef60b3..1f67224 100644 --- a/client/src/components/NewSaleForm.tsx +++ b/client/src/components/NewSaleForm.tsx @@ -166,7 +166,7 @@ export default function NewSaleForm() {
{/* Seller Information */} -
+
@@ -204,9 +204,9 @@ export default function NewSaleForm() {
{/* Product Information */} -
+
-
+
Informations Produit @@ -223,7 +223,7 @@ export default function NewSaleForm() { form.setValue('categorie', ''); // Reset category when article changes }}> - + @@ -247,7 +247,7 @@ export default function NewSaleForm() { Catégorie réglementaire * + @@ -283,7 +283,7 @@ export default function NewSaleForm() { Gencode (EAN13) * - + @@ -306,9 +306,9 @@ export default function NewSaleForm() {
{/* Customer Information */} -
+
-
+
Informations Client @@ -321,7 +321,7 @@ export default function NewSaleForm() { Nom de famille * - + @@ -334,7 +334,7 @@ export default function NewSaleForm() { Prénom * - + @@ -347,7 +347,7 @@ export default function NewSaleForm() { Date de naissance * - + @@ -360,7 +360,7 @@ export default function NewSaleForm() { Lieu de naissance * - + @@ -374,7 +374,7 @@ export default function NewSaleForm() { Mode de paiement * - + @@ -435,7 +435,7 @@ export default function NewSaleForm() { Numéro de pièce d'identité * - + @@ -448,7 +448,7 @@ export default function NewSaleForm() { Autorité de délivrance * - + @@ -461,7 +461,7 @@ export default function NewSaleForm() { Date de délivrance * - + diff --git a/client/src/index.css b/client/src/index.css index 231da71..d9caf04 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -109,25 +109,31 @@ } .modern-input { - border: 1px solid hsl(var(--border)); + border: 2px solid hsl(var(--border)); background: hsl(var(--background)); color: hsl(var(--foreground)); - padding: 8px 12px; + padding: 10px 14px; font-size: 14px; - transition: border-color 0.2s ease; + transition: all 0.2s ease; + box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); } .modern-input:focus { outline: none; border-color: hsl(var(--primary)); - box-shadow: 0 0 0 1px hsl(var(--primary)); + box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2); +} + +.modern-input:hover { + border-color: hsl(var(--primary) / 0.5); } .modern-section { - border: 1px solid hsl(var(--border)); + border: 2px solid hsl(var(--border)); background: hsl(var(--card)); padding: 24px; margin-bottom: 24px; + box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.05); } .modern-section-header { @@ -136,7 +142,9 @@ gap: 12px; margin-bottom: 24px; padding-bottom: 12px; - border-bottom: 1px solid hsl(var(--border)); + border-bottom: 2px solid hsl(var(--border)); + font-weight: 600; + font-size: 16px; } .modern-icon-container { @@ -147,6 +155,46 @@ display: flex; align-items: center; justify-content: center; + border: 2px solid hsl(var(--primary)); + box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.1); +} + +/* Section-specific styles */ +.modern-section-vendor { + border-left: 4px solid hsl(var(--primary)); + background: hsl(var(--muted) / 0.3); +} + +.modern-section-product { + border-left: 4px solid hsl(210, 100%, 50%); + background: hsl(210, 100%, 98%); +} + +.modern-section-customer { + border-left: 4px solid hsl(142, 69%, 45%); + background: hsl(142, 69%, 98%); +} + +.modern-section-identity { + border-left: 4px solid hsl(38, 92%, 50%); + background: hsl(38, 92%, 98%); +} + +.modern-select-trigger { + border: 2px solid hsl(var(--border)); + background: hsl(var(--background)); + padding: 10px 14px; + transition: all 0.2s ease; + box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); +} + +.modern-select-trigger:hover { + border-color: hsl(var(--primary) / 0.5); +} + +.modern-select-trigger:focus { + border-color: hsl(var(--primary)); + box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2); } /* Enhanced keyframes for mobile animations */