diff --git a/src/assets/styles/theme.scss b/src/assets/styles/theme.scss new file mode 100644 index 0000000..7d1cd8d --- /dev/null +++ b/src/assets/styles/theme.scss @@ -0,0 +1,17 @@ +$bg-primary: white; +$bg-secondary: #343434; +$bg-footer: #222222; +$bg-form: #EDEDED; +$bg-card-lab: black; +$bg-image: rgba(0, 0, 0, .75); + +$text-primary: black; +$text-secondary: white; +$text-card-project: #767676; +$text-card-project-bg: rgba(255, 255, 255, 0.75); + +$shadow-primary: rgba(0, 0, 0, 0.25); + +$btn-primary-text: white; +$btn-primary-bg: linear-gradient(93.25deg, #4942E4 0%, #11009E 50%, #4942E4 100%), + linear-gradient(0deg, #585858, #585858); \ No newline at end of file diff --git a/src/components/ContactForm/ContactForm.styles.scss b/src/components/ContactForm/ContactForm.styles.scss index fdcecc8..9ab5580 100644 --- a/src/components/ContactForm/ContactForm.styles.scss +++ b/src/components/ContactForm/ContactForm.styles.scss @@ -1,8 +1,10 @@ +@import "../../assets/styles/theme.scss"; + .contact-form { padding: 24px 26px; border-radius: 16px; - background-color: #EDEDED; + background-color: $bg-form; h2 { margin-top: 0; diff --git a/src/components/Footer/Footer.styles.scss b/src/components/Footer/Footer.styles.scss index 24d9372..a24ea08 100755 --- a/src/components/Footer/Footer.styles.scss +++ b/src/components/Footer/Footer.styles.scss @@ -1,3 +1,5 @@ +@import "../../assets/styles/theme.scss"; + .footer { display: flex; justify-content: space-between; @@ -5,7 +7,7 @@ height: 160px; padding: 0 10%; - background: #222222; + background: $bg-footer; .logo-container { height: 80px; @@ -18,7 +20,7 @@ } .contacts { - color: white; + color: $text-secondary; font-size: 18px; font-weight: 400; line-height: 22px; @@ -36,7 +38,7 @@ width: 60px; aspect-ratio: 1; border-radius: 100%; - background-color: white; + background-color: $bg-primary; .icon { width: 80%; diff --git a/src/components/Navbar/Navbar.styles.scss b/src/components/Navbar/Navbar.styles.scss index 18fe798..22c9a02 100755 --- a/src/components/Navbar/Navbar.styles.scss +++ b/src/components/Navbar/Navbar.styles.scss @@ -1,5 +1,4 @@ -$primary-bg-color: #343434; -$primary-text-color: white; +@import "../../assets/styles/theme.scss"; .navbar { position: absolute; @@ -8,7 +7,7 @@ $primary-text-color: white; height: 60px; max-height: 80px; padding: 1em 10%; - background: $primary-bg-color; + background: $bg-secondary; display: flex; @@ -35,13 +34,13 @@ $primary-text-color: white; letter-spacing: 0em; padding: .25em; margin-left: 40px; - color: $primary-text-color; + color: $text-secondary; text-decoration: none; text-wrap: nowrap; } .nav-link::after { - background: white; + background: $text-secondary; } } } \ No newline at end of file diff --git a/src/components/Slider/components/Arrows.styles.scss b/src/components/Slider/components/Arrows.styles.scss index 75eb597..1f9f7ae 100644 --- a/src/components/Slider/components/Arrows.styles.scss +++ b/src/components/Slider/components/Arrows.styles.scss @@ -1,3 +1,5 @@ +@import "../../../assets/styles/theme.scss"; + .arrows { position: absolute; z-index: 1; @@ -10,7 +12,6 @@ width: calc(100% - 30% + 60px); left: calc(15% - 30px); margin: 0 auto; - color: white; .arrow { display: flex; @@ -21,7 +22,8 @@ width: 60px; padding-right: 5px; border-radius: 100%; - background: #D9D9D9; + background: $bg-primary; + box-shadow: 0px 4px 4px 0px $shadow-primary; font-size: 30px; box-sizing: border-box; diff --git a/src/pages/Main/components/Labs/Labs.styles.scss b/src/pages/Main/components/Labs/Labs.styles.scss index 53a7a56..9301c63 100755 --- a/src/pages/Main/components/Labs/Labs.styles.scss +++ b/src/pages/Main/components/Labs/Labs.styles.scss @@ -1,3 +1,5 @@ +@import "../../../../assets/styles/theme.scss"; + .labs { .row { display: flex; @@ -13,12 +15,9 @@ position: relative; border-radius: 8px; - border-width: 1px; - border-style: solid; - border-color: #D9D9D9; - color: white; - background: black; + color: $text-secondary; + background: $bg-card-lab; .image { position: absolute; diff --git a/src/pages/Main/components/Partners/Partners.styles.scss b/src/pages/Main/components/Partners/Partners.styles.scss index a724d2e..26e499d 100644 --- a/src/pages/Main/components/Partners/Partners.styles.scss +++ b/src/pages/Main/components/Partners/Partners.styles.scss @@ -17,7 +17,6 @@ height: 100%; aspect-ratio: 1; border-radius: 100%; - background: #D9D9D9; .logo { width: 100%; diff --git a/src/pages/Main/components/Projects/Projects.styles.scss b/src/pages/Main/components/Projects/Projects.styles.scss index a2b68a3..14d2be4 100755 --- a/src/pages/Main/components/Projects/Projects.styles.scss +++ b/src/pages/Main/components/Projects/Projects.styles.scss @@ -1,3 +1,5 @@ +@import "../../../../assets/styles/theme.scss"; + .projects { .row { @@ -38,9 +40,9 @@ font-size: 20px; font-weight: 500; line-height: 24px; - color: #767676; + color: $text-card-project; - background-color: rgba(255, 255, 255, 0.75); + background-color: $text-card-project-bg; } } } diff --git a/src/pages/Root/Root.styles.scss b/src/pages/Root/Root.styles.scss index ab3581c..fd2e29b 100755 --- a/src/pages/Root/Root.styles.scss +++ b/src/pages/Root/Root.styles.scss @@ -1,7 +1,4 @@ -$primary-bg: #343434; -$secondary-bg: white; -$primary-text: white; -$btn-dark: #585858; +@import "../../assets/styles/theme.scss"; #page { margin-top: calc(60px + 2em); @@ -13,9 +10,9 @@ $btn-dark: #585858; display: flex; flex-direction: column; - color: $primary-text; + color: $text-secondary; background-image: url(/assets/images/car.jpeg); - background-color: rgba(0, 0, 0, .75); + background-color: $bg-image; background-blend-mode: multiply; background-position: center; background-size: cover; @@ -37,7 +34,7 @@ $btn-dark: #585858; } .content { - background: $secondary-bg; + background: $bg-primary; .block { margin: 0 10% 32px; @@ -61,7 +58,7 @@ $btn-dark: #585858; font-weight: 400; line-height: 29px; text-align: right; - color: black; + color: $text-primary; } } } @@ -78,8 +75,14 @@ $btn-dark: #585858; font-weight: 600; line-height: 24px; - color: white; - background-color: $btn-dark; + color: $btn-primary-text; + background: $btn-primary-bg; + background-size: 200%; + transition: .5s; +} + +.btn:hover { + background-position: 100%; } .block .heading a, @@ -101,7 +104,7 @@ $btn-dark: #585858; } .block .heading a::after { - background: black; + background: $text-primary; } .block .heading a:hover:after,