diff --git a/src/components/Footer/Footer.css b/src/components/Footer/Footer.css index 6760a72..5cc13d2 100644 --- a/src/components/Footer/Footer.css +++ b/src/components/Footer/Footer.css @@ -2,7 +2,7 @@ padding: 2rem 0; margin-top: 4rem; border-top: 1px solid #333; - color: #B0B0B0; + color: var(--text-color); font-size: 0.9rem; } @@ -22,7 +22,7 @@ display: flex; align-items: center; justify-content: center; - color: #B0B0B0; + color: var(--text-color); transition: color 0.3s ease, transform 0.3s ease; svg{ width: 24px; @@ -32,6 +32,6 @@ } .footer-links a:hover { - color: #EAEAEA; + color: var(--title-color); transform: translateY(-3px); } \ No newline at end of file diff --git a/src/components/Home/Home.css b/src/components/Home/Home.css index 0d119bd..66469ca 100644 --- a/src/components/Home/Home.css +++ b/src/components/Home/Home.css @@ -16,19 +16,19 @@ #home-section h2 { font-size: 1.8rem; - color: #EAEAEA; + color: var(--title-color); margin-bottom: 1rem; } #home-section p { margin-bottom: 2rem; - color: #EAEAEA; + color: var(--title-color); max-width: 40%; } .highlight { - color: #D95F46; + color: var(--important-color); } .btn { @@ -37,8 +37,8 @@ border-radius: 5px; text-decoration: none; font-weight: bold; - background-color: #D95F46; - color: #fff; + background-color: var(--important-color); + color: white; transition: background-color 0.3s ease; margin-bottom: 200px; } diff --git a/src/components/NavBar/NavBar.css b/src/components/NavBar/NavBar.css index 934c704..03acbf4 100644 --- a/src/components/NavBar/NavBar.css +++ b/src/components/NavBar/NavBar.css @@ -25,7 +25,7 @@ text-decoration: none; padding: 0.3rem 0.8rem; border-radius: 20px; - color: #B0B0B0; + color: var(--text-color); transition: background-color 0.3s ease, color 0.3s ease; cursor: pointer; border: none; @@ -34,10 +34,10 @@ } .nav-link:hover { - color: #D95F46; + color: var(--important-color); } .nav-link.active { background-color: rgba(217, 95, 70, 0.3); - color: #D95F46; + color: var(--important-color); } \ No newline at end of file diff --git a/src/components/Projects/Projects.css b/src/components/Projects/Projects.css index 14c3872..d7a5d83 100644 --- a/src/components/Projects/Projects.css +++ b/src/components/Projects/Projects.css @@ -12,8 +12,8 @@ .projects-link { display: inline-block; - color: #B0B0B0; - border: 1px solid #B0B0B0; + color: var(--text-color); + border: 1px solid var(--text-color); background-color: transparent; padding: 12px 28px; border-radius: 8px; @@ -23,7 +23,7 @@ } .projects-link:hover { - background-color: #B0B0B0; + background-color: var(--text-color); color: #1E1E1E; transform: translateY(-3px); cursor: pointer; @@ -50,7 +50,7 @@ .projects-section-subtitle { font-size: 1.2rem; - color: #B0B0B0; + color: var(--title-color); } .projects-back-link { diff --git a/src/components/SingleExperience/SingleExperience.css b/src/components/SingleExperience/SingleExperience.css index f5bc9a2..1b55902 100644 --- a/src/components/SingleExperience/SingleExperience.css +++ b/src/components/SingleExperience/SingleExperience.css @@ -31,7 +31,7 @@ } .experience-company { - color: #D95F46; + color: var(--important-color); font-size: 1.2rem; margin: 0; } @@ -39,14 +39,14 @@ .experience-role { font-size: 1.5rem; font-weight: bold; - color: #EAEAEA; + color: var(--title-color); margin: 0; } .experience-location, .experience-duration { font-size: 0.95rem; - color: #B0B0B0; + color: var(--text-color); margin: 0.25rem 0 0; white-space: nowrap; } @@ -61,7 +61,7 @@ position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; - color: #B0B0B0; + color: var(--text-color); text-align: left; } @@ -70,7 +70,7 @@ position: absolute; left: 0; top: 0; - color: #D95F46; + color: var(--important-color); font-weight: bold; font-size: 1.2rem; line-height: 1; diff --git a/src/components/SingleProject/SingleProject.css b/src/components/SingleProject/SingleProject.css index cab8522..ef8fd25 100644 --- a/src/components/SingleProject/SingleProject.css +++ b/src/components/SingleProject/SingleProject.css @@ -42,7 +42,7 @@ display: flex; flex-direction: column; justify-content: space-between; - padding: 2rem 2rem 2rem 0rem; + padding: 2rem 2rem 2rem 0; align-items: flex-start; height: 100%; } @@ -96,7 +96,7 @@ .single-project-title { font-size: 2rem; - color: #EAEAEA; + color: var(--title-color); margin-top: 0; margin-bottom: 0; display: flex; @@ -105,7 +105,7 @@ } .single-project-description { - color: #B0B0B0; + color: var(--text-color); margin-bottom: 1.5rem; text-align: justify; } @@ -120,7 +120,7 @@ } .single-project-link { - color: #B0B0B0; + color: var(--text-color); text-decoration: none; font-weight: 600; margin-bottom : 0; @@ -128,7 +128,7 @@ .single-project-link:hover { cursor: pointer; - color: #EAEAEA; + color: var(--title-color); } .arrow { @@ -137,7 +137,7 @@ transform: translateY(-50%); background: none; border: none; - color: #EAEAEA; + color: var(--title-color); font-size: 35px; display: none; transition: all 0.3s ease; @@ -145,7 +145,7 @@ } .arrow:hover { - color: #D95F46; + color: var(--important-color); opacity: 0.8; transform: translateY(-50%) scale(1.2); cursor: pointer; @@ -165,7 +165,7 @@ .single-project-right-top-date{ - color : #B0B0B0; + color : var(--text-color); margin : 0; margin-left : 2em; font-weight: bold; diff --git a/src/components/SingleProject/SingleProject.jsx b/src/components/SingleProject/SingleProject.jsx index cd9d039..a6a08b4 100644 --- a/src/components/SingleProject/SingleProject.jsx +++ b/src/components/SingleProject/SingleProject.jsx @@ -58,7 +58,7 @@ function SingleProject({ image, title, description, skills, id, nbImage, school,

{title} {school ? ( - + ) : null} diff --git a/src/index.css b/src/index.css index 478784b..896d8d5 100644 --- a/src/index.css +++ b/src/index.css @@ -2,6 +2,9 @@ font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; font-weight: 400; background-color: #0D0D0D; + --title-color: #EAEAEA; + --text-color: #B0B0B0; + --important-color: #D95F46; } html{ @@ -25,9 +28,8 @@ h1{ } .section-title { - font-family: Arial; font-size: 2.5rem; - color: #f0f0f0; + color: var(--title-color); text-transform: uppercase; letter-spacing: 0.15rem; text-align: center; @@ -39,7 +41,7 @@ h1{ display: block; width: 60px; height: 3px; - background-color: #D95F46; + background-color: var(--important-color); margin: 1rem auto 0; border-radius: 2px; } @@ -47,5 +49,5 @@ h1{ h2{ - color: #f0f0f0; + color : var(--title-color); } \ No newline at end of file