Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

9 changes: 9 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import CertifRecipe from "./pages/CertifRecipe/page";
import CreateRecipe from "./pages/CreateRecipe/page";
import Home from "./pages/Home/page";
import Login from "./pages/Login/page";
import Planning from "./pages/Planning/page";
import Settings from "./pages/Settings/page";
import ShoppingList from "./pages/ShoppingList/page";
import Signup from "./pages/Signup/page";
Expand Down Expand Up @@ -53,6 +54,14 @@ const AppContent = () => {
</ProtectedRoute>
}
/>
<Route
path="/Planning"
element={
<ProtectedRoute>
<Planning />
</ProtectedRoute>
}
/>
<Route
path="/Catalogue"
element={
Expand Down
Empty file removed src/components/.gitkeep
Empty file.
85 changes: 56 additions & 29 deletions src/components/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,28 @@
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 4rem;
background-color: #ece0d1;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Ombre douce et moderne */
padding: 0.75rem 4rem;
background: linear-gradient(135deg, #eee2df 0%, #eed7c5 100%);
box-shadow: 0 4px 20px rgba(179, 106, 94, 0.15);
position: sticky;
top: 0;
z-index: 1000; /* Toujours au dessus */
z-index: 1000;
border-bottom: 1px solid rgba(202, 124, 92, 0.2);
}

/* Calibrage du logo */
/* Logo */
.logo {
display: flex;
align-items: center;
}

.logo img {
height: 60px; /* Taille fixe et professionnelle */
height: 55px;
width: auto;
object-fit: contain;
display: block;
transition: transform 0.3s ease;
filter: drop-shadow(0 2px 4px rgba(179, 106, 94, 0.2));
}

.logo img:hover {
Expand All @@ -31,34 +33,36 @@
.logo h1 {
margin: 0;
font-size: 1.5rem;
color: #2d2d2d;
margin-left: 10px; /* Espace si jamais il y a du texte à côté */
color: #b36a5e;
margin-left: 10px;
font-weight: 700;
}

/* Navigation propre */
/* Navigation */
.navigation ul {
list-style: none;
display: flex;
gap: 32px; /* Espacement aéré */
gap: 2rem;
margin: 0;
padding: 0;
align-items: center;
}

.navigation a {
text-decoration: none;
color: #5d4037; /* Marron foncé élégant */
color: #b36a5e;
font-weight: 600;
font-size: 1rem;
letter-spacing: 0.5px;
font-size: 0.95rem;
letter-spacing: 0.3px;
transition: all 0.3s ease;
position: relative;
padding: 5px 0;
padding: 0.5rem 0.75rem;
border-radius: 8px;
}

/* Effet au survol */
.navigation a:hover {
color: #c67a53; /* Ta couleur terracotta */
color: #ca7c5c;
background: rgba(202, 124, 92, 0.1);
}

.navigation a::after {
Expand All @@ -67,45 +71,63 @@
width: 0;
height: 2px;
bottom: 0;
left: 0;
background-color: #c67a53;
left: 50%;
transform: translateX(-50%);
background: linear-gradient(90deg, #ca7c5c, #b36a5e);
transition: width 0.3s ease;
border-radius: 2px;
}

.navigation a:hover::after {
width: 100%;
width: 80%;
}

/* Navigation items alignment */
/* Navigation items */
.navigation li {
display: flex;
align-items: center;
}

/* Active link style */
.navigation a.active {
color: #ca7c5c;
background: rgba(202, 124, 92, 0.15);
}

.navigation a.active::after {
width: 80%;
}

/* User icon */
.navigation a.user-link {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
padding: 0.5rem;
background: linear-gradient(135deg, #ca7c5c 0%, #b36a5e 100%);
border-radius: 50%;
width: 38px;
height: 38px;
}

.navigation a.user-link::after {
display: none;
}

.navigation a.user-link:hover {
background: linear-gradient(135deg, #b36a5e 0%, #9a5a50 100%);
transform: scale(1.05);
}

.user-icon {
width: 1rem;
height: 1rem;
width: 1.1rem;
height: 1.1rem;
vertical-align: middle;
transition: transform 0.2s ease;
filter: brightness(0) invert(1);
}

.navigation a.user-link:hover .user-icon {
transform: scale(1.1);
}

/* Responsive pour mobile */
/* Responsive */
@media (max-width: 768px) {
.header {
flex-direction: column;
Expand All @@ -114,8 +136,13 @@
}

.navigation ul {
gap: 15px;
gap: 1rem;
flex-wrap: wrap;
justify-content: center;
}

.navigation a {
font-size: 0.85rem;
padding: 0.4rem 0.6rem;
}
}
Empty file removed src/data/.gitkeep
Empty file.
82 changes: 60 additions & 22 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@
line-height: 1.5;
font-weight: 400;

color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
/* Color palette - improved contrast */
--color-bg-light: #faf7f5;
--color-bg-peach: #f5ebe6;
--color-rose: #c89f9c;
--color-terra: #ca7c5c;
--color-terra-dark: #a65a42;
--color-text: #3d2e2a;
--color-text-light: #6b5750;
--color-text-muted: #8b7b74;

color-scheme: light;
color: #3d2e2a;
background-color: #faf7f5;

font-synthesis: none;
text-rendering: optimizeLegibility;
Expand All @@ -15,58 +25,86 @@

a {
font-weight: 500;
color: #ca7c5c;
color: #a65a42;
text-decoration: inherit;
}

a:hover {
color: #b36a5e;
color: #8b4534;
}

body {
margin: 0;
display: block;
min-width: 320px;
min-height: 100vh;
background: #faf7f5;
}

h1 {
font-size: 3.2em;
font-size: 2.5em;
line-height: 1.1;
color: #3d2e2a;
}

h2 {
color: #3d2e2a;
}

h3 {
color: #3d2e2a;
}

p {
color: #3d2e2a;
}

button {
border-radius: 8px;
border-radius: 10px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
background-color: #fff;
color: #3d2e2a;
cursor: pointer;
transition: border-color 0.25s;
transition: all 0.25s;
}

button:hover {
border-color: #646cff;
border-color: #ca7c5c;
background-color: #f5ebe6;
}

button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
outline: 3px solid rgba(202, 124, 92, 0.3);
outline-offset: 2px;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
/* Scrollbar styling */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}

::-webkit-scrollbar-track {
background: #f5ebe6;
border-radius: 4px;
}

a:hover {
color: #747bff;
}
::-webkit-scrollbar-thumb {
background: #c89f9c;
border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
background: #ca7c5c;
}

button {
background-color: #f9f9f9;
}
/* Selection styling */
::selection {
background: rgba(202, 124, 92, 0.3);
color: #5d4037;
}
Loading