mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-15 03:09:32 +02:00
Introduce a mobile-friendly phone mode with a bottom navigation bar
Add phone mode functionality with a new bottom navigation component and adjust layout styles for smaller screens. Includes logic for auto-detection and user preference saving for phone mode. Also, redirects authenticated users from `/auth` to the dashboard. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 95e8aab4-f39f-4b48-aa57-a759ec15ba3d Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/95e8aab4-f39f-4b48-aa57-a759ec15ba3d/oL3c3As
This commit is contained in:
1 parent
6f5b5cb054
commit
9930f40105
6 files changed
+397
-16
No files matched your search
@@ -396,3 +396,92 @@ button[data-day-weekend="true"],
|
||||
.bg-gray-150 {
|
||||
background-color: #f1f3f4;
|
||||
}
|
||||
|
||||
/* Styles pour le mode téléphone */
|
||||
.phone-mode {
|
||||
/* Classe principale pour le mode téléphone */
|
||||
}
|
||||
|
||||
/* Safe area pour la bottom navigation */
|
||||
.safe-area-pb {
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
|
||||
/* Optimisations pour le mode téléphone */
|
||||
.layout-container.phone-mode {
|
||||
/* Assurer que le layout prend toute la hauteur */
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.phone-mode main {
|
||||
/* Optimisation pour le scroll sur téléphone */
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.phone-mode .main-content {
|
||||
/* Padding bottom pour éviter que le contenu soit caché par la bottom nav */
|
||||
padding-bottom: calc(80px + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
/* Animation de transition pour le basculement de mode */
|
||||
.layout-container {
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
/* Styles spécifiques pour la bottom navigation */
|
||||
.bottom-nav {
|
||||
backdrop-filter: blur(10px);
|
||||
background-color: rgba(255, 255, 255, 0.95);
|
||||
}
|
||||
|
||||
/* Dark mode pour la bottom navigation */
|
||||
.dark .bottom-nav {
|
||||
background-color: rgba(26, 26, 26, 0.95);
|
||||
}
|
||||
|
||||
/* Optimisation des cartes pour le mode téléphone */
|
||||
.phone-mode .card {
|
||||
border-radius: 12px;
|
||||
margin-bottom: 16px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* Optimisation des boutons pour le mode téléphone */
|
||||
.phone-mode button {
|
||||
min-height: 48px;
|
||||
}
|
||||
|
||||
/* Style pour les éléments interactifs en mode téléphone */
|
||||
.phone-mode .interactive-element {
|
||||
min-height: 48px;
|
||||
min-width: 48px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
/* Adaptation des formulaires pour téléphone */
|
||||
.phone-mode .form-container {
|
||||
padding: 16px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.phone-mode input,
|
||||
.phone-mode select,
|
||||
.phone-mode textarea {
|
||||
min-height: 48px;
|
||||
font-size: 16px; /* Évite le zoom automatique sur iOS */
|
||||
}
|
||||
|
||||
/* Optimisation des modals pour téléphone */
|
||||
.phone-mode .modal-content {
|
||||
margin: 8px;
|
||||
max-height: calc(100vh - 16px);
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
/* Style pour les alertes en mode téléphone */
|
||||
.phone-mode .alert {
|
||||
margin: 8px;
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
}
|
||||
Reference in new issue
Block a user